summaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorjmcneill <jmcneill>2008-12-22 02:50:09 +0000
committerjmcneill <jmcneill>2008-12-22 02:50:09 +0000
commit800109782ca5930f76d6ab4510f9835cfa452f10 (patch)
tree0d35249d4ac0b581402a769a97a748ec4f377a18 /audio
parent3564c6f31a0dc970ef81192996465c4153e56fa5 (diff)
downloadpkgsrc-800109782ca5930f76d6ab4510f9835cfa452f10.tar.gz
Pull in libatomic_ops if NetBSD native atomic ops are not available, should
fix build on NetBSD < 5.0 and other platforms.
Diffstat (limited to 'audio')
-rw-r--r--audio/pulseaudio/Makefile9
1 files changed, 3 insertions, 6 deletions
diff --git a/audio/pulseaudio/Makefile b/audio/pulseaudio/Makefile
index 8952dd88c47..a67be82e31d 100644
--- a/audio/pulseaudio/Makefile
+++ b/audio/pulseaudio/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2008/12/22 01:17:51 dsainty Exp $
+# $NetBSD: Makefile,v 1.8 2008/12/22 02:50:09 jmcneill Exp $
#
DISTNAME= pulseaudio-0.9.13
@@ -70,13 +70,10 @@ BUILDLINK_TRANSFORM+= rm:-Wl,--gc-sections
# Needs libatomic_ops if the compiler is not >=GCC4.1
# We can use native atomic operation on 5.0 and newer.
#
-.if exists(/usr/include/sys/atomic.h) # NetBSD >=5.0
+.if ${OPSYS} == "NetBSD" && exists(/usr/include/sys/atomic.h)
CONFIGURE_ARGS+= --enable-netbsd-atomic-ops
.else # NetBSD <5.0 and other OS
-. include "../../mk/compiler.mk"
-. if empty(CC_VERSION:Mgcc-4.[1-9]*) && empty(CC_VERSION:Mgcc-[5-9]*)
-. include "../../devel/libatomic_ops/buildlink3.mk"
-. endif
+. include "../../devel/libatomic_ops/buildlink3.mk"
.endif
# avahi support