aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia
diff options
context:
space:
mode:
authorgblach <gblach@FreeBSD.org>2014-08-17 05:15:20 +0800
committergblach <gblach@FreeBSD.org>2014-08-17 05:15:20 +0800
commitd7ba0f00ba87dbcba42719ed5d630d8bd42d91f7 (patch)
tree518ecc96d7fcd84d4c5fbc86a95a120afc9bcda5 /multimedia
parent66d868d9fa9ab63df95515a2562b634c07a52012 (diff)
downloadfreebsd-ports-gnome-d7ba0f00ba87dbcba42719ed5d630d8bd42d91f7.tar.gz
freebsd-ports-gnome-d7ba0f00ba87dbcba42719ed5d630d8bd42d91f7.tar.zst
freebsd-ports-gnome-d7ba0f00ba87dbcba42719ed5d630d8bd42d91f7.zip
- Add option to install zsh completions [1]
- Convert USE_PYTHON_BUILD=yes to USES=python:build - Bump PORTREVISION PR: 192702 [1] Submitted by: Jan Beich (jbeich <at> vfemail <dot> net) [1]
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/mpv/Makefile12
-rw-r--r--multimedia/mpv/pkg-plist3
2 files changed, 12 insertions, 3 deletions
diff --git a/multimedia/mpv/Makefile b/multimedia/mpv/Makefile
index 5bea47bc1e5a..fee8bed6a2e6 100644
--- a/multimedia/mpv/Makefile
+++ b/multimedia/mpv/Makefile
@@ -3,6 +3,7 @@
PORTNAME= mpv
PORTVERSION= 0.5.0
+PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= multimedia audio
MASTER_SITES= GH:0 GHC:0 http://ftp.waf.io/pub/release/:1 \
@@ -28,8 +29,7 @@ GH_COMMIT= 88f247c
WAF_VERSION= 1.7.16
-USES= compiler:c11 desktop-file-utils iconv lua pkgconfig
-USE_PYTHON_BUILD= yes
+USES= compiler:c11 desktop-file-utils iconv lua pkgconfig python:build
USE_XORG= x11 xv xxf86vm
USE_LDCONFIG= yes
INSTALLS_ICONS= yes
@@ -47,11 +47,12 @@ CONFIGURE_ARGS= --prefix=${PREFIX} \
--disable-portaudio \
--disable-pdf
-OPTIONS_DEFINE= BS2B ENCA LADSPA LCMS2 LIBGUESS LIRC
+OPTIONS_DEFINE= BS2B ENCA LADSPA LCMS2 LIBGUESS LIRC ZSH
OPTIONS_GROUP= IN VO AO
OPTIONS_GROUP_IN= CDIO LIBBLURAY V4L QUVI SMB
OPTIONS_GROUP_VO= CACA OPENGL VAAPI VDPAU XINERAMA
OPTIONS_GROUP_AO= JACK PULSEAUDIO
+OPTIONS_SUB= yes
BS2B_DESC= Enable Bauer Stereophonic-to-Binaural DSP support
ENCA_DESC= Enable encoding detection support
@@ -79,6 +80,10 @@ LIBGUESS_CONFIGURE_ENABLE= libguess
LIRC_LIB_DEPENDS= liblirc_client.so:${PORTSDIR}/comms/lirc
LIRC_CONFIGURE_ENABLE= lirc
+ZSH_USES= perl5
+ZSH_USE= PERL5=build
+ZSH_CONFIGURE_ENABLE= zsh-comp
+
CDIO_LIB_DEPENDS= libcdio_paranoia.so:${PORTSDIR}/sysutils/libcdio-paranoia
CDIO_CONFIGURE_ENABLE= cdda
@@ -125,6 +130,7 @@ post-extract:
post-patch:
@${REINPLACE_CMD} -e 's|/pkgconfig/mpv.pc|data/pkgconfig/mpv.pc|g' \
+ -e 's|/zsh/vendor-completions|/zsh/site-functions|' \
${WRKSRC}/wscript_build.py
@${FIND} ${WRKSRC}/DOCS/man -name '*.rst' | ${XARGS} ${REINPLACE_CMD} \
-e 's|/usr/local|${PREFIX}|g'
diff --git a/multimedia/mpv/pkg-plist b/multimedia/mpv/pkg-plist
index 0283eb25f50e..268c7aa652bd 100644
--- a/multimedia/mpv/pkg-plist
+++ b/multimedia/mpv/pkg-plist
@@ -12,5 +12,8 @@ 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
+%%ZSH%%share/zsh/site-functions/_mpv
+%%ZSH%%@dirrmtry share/zsh/site-functions
+%%ZSH%%@dirrmtry share/zsh
@dirrm include/mpv
@dirrmtry etc/mpv