summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormaya <maya@pkgsrc.org>2017-03-16 19:21:09 +0000
committermaya <maya@pkgsrc.org>2017-03-16 19:21:09 +0000
commit54691be3f3aebbe3f31ae209d8d6ca4d9bd2ec5f (patch)
tree17dd7ba2063d79a36ea79cec509f0bd5f4159824
parent6f014fab02ae85685e2c314e3e0e01a8ea9aabba (diff)
downloadpkgsrc-54691be3f3aebbe3f31ae209d8d6ca4d9bd2ec5f.tar.gz
libvdpau: add an option 'x11' (default enabled) in available.mk, so non-X11
users can avoid all of Xorg being pulled in for a dependency with ease, without needing to know about vdpau, for example in the case of ffmpeg3 which shouldn't require X11. Feel free to propose alternatives. Clean some commented out bits. PR pkg/52021
-rw-r--r--multimedia/libvdpau/available.mk22
1 files changed, 7 insertions, 15 deletions
diff --git a/multimedia/libvdpau/available.mk b/multimedia/libvdpau/available.mk
index 8a01c985b9b..9b013873d77 100644
--- a/multimedia/libvdpau/available.mk
+++ b/multimedia/libvdpau/available.mk
@@ -1,24 +1,16 @@
-# $NetBSD: available.mk,v 1.5 2017/01/23 18:20:59 adam Exp $
+# $NetBSD: available.mk,v 1.6 2017/03/16 19:21:09 maya Exp $
.include "../../mk/bsd.prefs.mk"
-# At the moment VDPAU is available only for Linux, FreeBSD and
-# [Open]Solaris. The following condition is here to NOT list these
-# platforms in multiple places, i.e. in mplayer, xine, xbmc etc.
-# Have a look at buildlink3.mk too.
+PKG_SUPPORTED_OPTIONS+= x11
+PKG_SUGGESTED_OPTIONS= x11
+
+.include "../../mk/bsd.options.mk"
-#.if ${OPSYS} == "Linux" && (${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64")
-#VDPAU_AVAILABLE= yes
-#.elif ${OPSYS} == "FreeBSD" && (${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64")
-#VDPAU_AVAILABLE= yes
-#.elif ${OPSYS} == "SunOS" && (${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64") \
-# && !empty(OS_VERSION:M5.1[0-9]*)
-#VDPAU_AVAILABLE= yes
-#.else
VDPAU_AVAILABLE= no
-#.endif
-# XXX even these restrictions seem arbitrary
+.if !empty(PKG_OPTIONS:Mx11)
.if ${OPSYS} != "Darwin" && (${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64")
VDPAU_AVAILABLE= yes
.endif
+.endif