summaryrefslogtreecommitdiff
path: root/multimedia
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2011-02-20 21:39:22 +0000
committerwiz <wiz@pkgsrc.org>2011-02-20 21:39:22 +0000
commit6b4a613389628bc31017046a75a678fd0375304c (patch)
tree77c1b32c0d391739f4e048bcdd5bf18b2219880f /multimedia
parent35b750b3ceea81e61d799a9fba9ebce0cdab67c5 (diff)
downloadpkgsrc-6b4a613389628bc31017046a75a678fd0375304c.tar.gz
Restrict availability even more. From Aleksey Cheusov in answer to PR 44615.
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/libvdpau/available.mk11
1 files changed, 8 insertions, 3 deletions
diff --git a/multimedia/libvdpau/available.mk b/multimedia/libvdpau/available.mk
index 3033c5cd489..64b1cf67f2f 100644
--- a/multimedia/libvdpau/available.mk
+++ b/multimedia/libvdpau/available.mk
@@ -1,4 +1,4 @@
-# $NetBSD: available.mk,v 1.1.1.1 2010/09/01 20:41:45 wiz Exp $
+# $NetBSD: available.mk,v 1.2 2011/02/20 21:39:22 wiz Exp $
.include "../../mk/bsd.prefs.mk"
@@ -6,8 +6,13 @@
# [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.
-VDPAU_AVAILABLE_ON= Linux FreeBSD SunOS
-.if !empty(VDPAU_AVAILABLE_ON:M${OPSYS})
+
+.if ${OPSYS} == "Linux" && (${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "amd64")
+VDPAU_AVAILABLE= yes
+.elif ${OPSYS} == "FreeBSD" && (${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "amd64")
+VDPAU_AVAILABLE= yes
+.elif ${OPSYS} == "SunOS" && (${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "amd64") \
+ && !empty(OS_VERSION:M5.1[0-9]*)
VDPAU_AVAILABLE= yes
.else
VDPAU_AVAILABLE= no