pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/multimedia/libvdpau



Module Name:    pkgsrc
Committed By:   maya
Date:           Thu Mar 16 19:21:10 UTC 2017

Modified Files:
        pkgsrc/multimedia/libvdpau: available.mk

Log Message:
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


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 pkgsrc/multimedia/libvdpau/available.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/multimedia/libvdpau/available.mk
diff -u pkgsrc/multimedia/libvdpau/available.mk:1.5 pkgsrc/multimedia/libvdpau/available.mk:1.6
--- pkgsrc/multimedia/libvdpau/available.mk:1.5 Mon Jan 23 18:20:59 2017
+++ pkgsrc/multimedia/libvdpau/available.mk     Thu Mar 16 19:21:09 2017
@@ -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



Home | Main Index | Thread Index | Old Index