summaryrefslogtreecommitdiff
path: root/multimedia
diff options
context:
space:
mode:
authormaya <maya>2017-03-16 19:21:09 +0000
committermaya <maya>2017-03-16 19:21:09 +0000
commit713dd3eaa489eb5b26f4031012db490d89e3a351 (patch)
treebbdde348526b0a22b83f6b4f41b6f1781983dda6 /multimedia
parentb139b94feee4829bb8ddc56126b6722e55fbfe91 (diff)
downloadpkgsrc-713dd3eaa489eb5b26f4031012db490d89e3a351.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
Diffstat (limited to 'multimedia')
-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