summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjmcneill <jmcneill@pkgsrc.org>2008-12-22 02:50:09 +0000
committerjmcneill <jmcneill@pkgsrc.org>2008-12-22 02:50:09 +0000
commit29ed68c84d7a14087b365f19ac31c09485f54844 (patch)
tree0d35249d4ac0b581402a769a97a748ec4f377a18
parent0c01a2785ef3095b5465a76c8ed99bb955485f54 (diff)
downloadpkgsrc-29ed68c84d7a14087b365f19ac31c09485f54844.tar.gz
Pull in libatomic_ops if NetBSD native atomic ops are not available, should
fix build on NetBSD < 5.0 and other platforms.
-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