aboutsummaryrefslogtreecommitdiff
path: root/multimedia
diff options
context:
space:
mode:
authorGrzegorz Blach <gblach@FreeBSD.org>2014-06-26 21:49:06 +0000
committerGrzegorz Blach <gblach@FreeBSD.org>2014-06-26 21:49:06 +0000
commit2631cd03cf7858151c2766851759a147b5bfe747 (patch)
treec15dae199944ac1c0a23356696c6b79a8fbeac26 /multimedia
parent1c37c37284a9891eb7480f3df7dbda30d01356dd (diff)
downloadports-2631cd03cf7858151c2766851759a147b5bfe747.tar.gz
ports-2631cd03cf7858151c2766851759a147b5bfe747.zip
Notes
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/mpv/Makefile33
-rw-r--r--multimedia/mpv/distinfo4
-rw-r--r--multimedia/mpv/pkg-plist14
3 files changed, 30 insertions, 21 deletions
diff --git a/multimedia/mpv/Makefile b/multimedia/mpv/Makefile
index b47820fcbb36..2bed29bb178f 100644
--- a/multimedia/mpv/Makefile
+++ b/multimedia/mpv/Makefile
@@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= mpv
-PORTVERSION= 0.3.11
+PORTVERSION= 0.4.0
PORTEPOCH= 1
CATEGORIES= multimedia audio
MASTER_SITES= GH:0 GHC:0 http://ftp.waf.io/pub/release/:1 \
@@ -17,40 +17,45 @@ LICENSE= GPLv2
LIB_DEPENDS= libavcodec.so:${PORTSDIR}/multimedia/ffmpeg \
libass.so:${PORTSDIR}/multimedia/libass \
- libdvdread.so:${PORTSDIR}/multimedia/libdvdread
+ libdvdread.so:${PORTSDIR}/multimedia/libdvdread \
+ libdvdnav.so:${PORTSDIR}/multimedia/libdvdnav
BUILD_DEPENDS= rst2man:${PORTSDIR}/textproc/py-docutils
USE_GITHUB= yes
GH_ACCOUNT= mpv-player
GH_TAGNAME= v${PORTVERSION}
-GH_COMMIT= c6bb684
+GH_COMMIT= 49275b2
WAF_VERSION= 1.7.16
-USES= compiler:c11 desktop-file-utils gmake iconv lua pkgconfig
+USES= compiler:c11 desktop-file-utils iconv lua pkgconfig
USE_PYTHON_BUILD= yes
USE_XORG= x11 xv xxf86vm
+USE_LDCONFIG= yes
INSTALLS_ICONS= yes
+CPPFLAGS+= -I.. -I${LOCALBASE}/include
+LDFLAGS+= -L${LOCALBASE}/lib
+
CONFIGURE_ARGS= --prefix=${PREFIX} \
--mandir=${MANPREFIX}/man \
--lua=${LUA_VER_STR}fbsd \
--disable-debug-build \
+ --enable-libmpv-shared \
--disable-mpg123 \
--disable-alsa \
--disable-portaudio \
- --disable-libguess \
--disable-pdf
-OPTIONS_DEFINE= BS2B ENCA LADSPA LCMS2 LIRC
+OPTIONS_DEFINE= BS2B ENCA LADSPA LCMS2 LIBGUESS LIRC
OPTIONS_GROUP= IN VO AO
-OPTIONS_GROUP_IN= CDIO DVDNAV LIBBLURAY V4L QUVI SMB
+OPTIONS_GROUP_IN= CDIO LIBBLURAY V4L QUVI SMB
OPTIONS_GROUP_VO= CACA OPENGL VAAPI VDPAU XINERAMA
OPTIONS_GROUP_AO= JACK PULSEAUDIO
BS2B_DESC= Enable Bauer Stereophonic-to-Binaural DSP support
-DVDNAV_DESC= Enable DVD navigation menus support
ENCA_DESC= Enable encoding detection support
+LIBGUESS_DESC= Enable high-speed character set detection support
QUVI_DESC= Enable flash media stream support
IN_DESC= Input
VO_DESC= Video Output
@@ -68,15 +73,15 @@ LADSPA_CONFIGURE_ENABLE= ladspa
LCMS2_LIB_DEPENDS= liblcms2.so:${PORTSDIR}/graphics/lcms2
LCMS2_CONFIGURE_ENABLE= lcms2
+LIBGUESS_LIB_DEPENDS= libguess.so:${PORTSDIR}/textproc/libguess
+LIBGUESS_CONFIGURE_ENABLE= libguess
+
LIRC_LIB_DEPENDS= liblirc_client.so:${PORTSDIR}/comms/lirc
LIRC_CONFIGURE_ENABLE= lirc
CDIO_LIB_DEPENDS= libcdio.so:${PORTSDIR}/sysutils/libcdio
CDIO_CONFIGURE_ENABLE= cdda
-DVDNAV_LIB_DEPENDS= libdvdnav.so:${PORTSDIR}/multimedia/libdvdnav
-DVDNAV_CONFIGURE_ENABLE= dvdnav
-
LIBBLURAY_LIB_DEPENDS= libbluray.so:${PORTSDIR}/multimedia/libbluray
LIBBLURAY_CONFIGURE_ENABLE= libbluray
@@ -119,6 +124,8 @@ post-extract:
@${CHMOD} +x ${WRKSRC}/waf
post-patch:
+ @${REINPLACE_CMD} -e 's|/pkgconfig/mpv.pc|data/pkgconfig/mpv.pc|g' \
+ ${WRKSRC}/wscript_build.py
@${FIND} ${WRKSRC}/DOCS/man -name '*.rst' | ${XARGS} ${REINPLACE_CMD} \
-e 's|/usr/local|${PREFIX}|g'
@@ -139,4 +146,8 @@ post-install:
${INSTALL_DATA} ${WRKSRC}/etc/example.conf ${STAGEDIR}${PREFIX}/etc/mpv/mpv.conf.sample
${INSTALL_DATA} ${WRKSRC}/etc/input.conf ${STAGEDIR}${PREFIX}/etc/mpv/input.conf.sample
+post-stage:
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/mpv
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libmpv.so
+
.include <bsd.port.mk>
diff --git a/multimedia/mpv/distinfo b/multimedia/mpv/distinfo
index 49582c36ab48..eee4ee99236a 100644
--- a/multimedia/mpv/distinfo
+++ b/multimedia/mpv/distinfo
@@ -1,4 +1,4 @@
-SHA256 (mpv-0.3.11.tar.gz) = 4062e79b9967080afa70183f2f418962d1017ae4fc10aa4d88edfd948186d86d
-SIZE (mpv-0.3.11.tar.gz) = 2521337
+SHA256 (mpv-0.4.0.tar.gz) = 9069df077bc8b03417b22803c664290644523369a2c2d42de2423ba4f7ee9d38
+SIZE (mpv-0.4.0.tar.gz) = 2561713
SHA256 (waf-1.7.16) = b64dc26c882572415fd450b745006107965f3fe17b357e3eb43d6676c9635a61
SIZE (waf-1.7.16) = 91846
diff --git a/multimedia/mpv/pkg-plist b/multimedia/mpv/pkg-plist
index b0fda449b150..9eda5a7789b1 100644
--- a/multimedia/mpv/pkg-plist
+++ b/multimedia/mpv/pkg-plist
@@ -2,17 +2,15 @@ bin/mpv
etc/mpv/encoding-profiles.conf
etc/mpv/input.conf.sample
etc/mpv/mpv.conf.sample
+include/mpv/client.h
+lib/libmpv.so
+lib/libmpv.so.1
+lib/libmpv.so.1.0.0
+libdata/pkgconfig/mpv.pc
man/man1/mpv.1.gz
share/applications/mpv.desktop
share/icons/hicolor/16x16/apps/mpv.png
share/icons/hicolor/32x32/apps/mpv.png
share/icons/hicolor/64x64/apps/mpv.png
-@dirrmtry share/icons/hicolor/64x64/apps
-@dirrmtry share/icons/hicolor/64x64
-@dirrmtry share/icons/hicolor/32x32/apps
-@dirrmtry share/icons/hicolor/32x32
-@dirrmtry share/icons/hicolor/16x16/apps
-@dirrmtry share/icons/hicolor/16x16
-@dirrmtry share/icons/hicolor
-@dirrmtry share/icons
+@dirrm include/mpv
@dirrmtry etc/mpv