diff options
author | bjs <bjs@pkgsrc.org> | 2008-08-17 09:41:35 +0000 |
---|---|---|
committer | bjs <bjs@pkgsrc.org> | 2008-08-17 09:41:35 +0000 |
commit | 005289556f8738d321d9a9ad7b221b0513458664 (patch) | |
tree | eaeb73b9ed1431fa0b0a5198fd153adc11aabd00 /graphics/MesaLib/Makefile | |
parent | 8faff32f8b2b7af86fb34b5d1d93b72e5ed75ae4 (diff) | |
download | pkgsrc-005289556f8738d321d9a9ad7b221b0513458664.tar.gz |
#define bswap_32 bswap32 for NetBSD in the mach64 driver; also, for the
sis driver, use either NetBSD's atomic ops if we have them, else
check for gcc's __sync_synchronize. I suppose the right thing to do is
split the dri drivers out of this package, but hopefully this will
resolve [pkg/39359]. No revision bump, as I just updated the package
a few hours ago.
Diffstat (limited to 'graphics/MesaLib/Makefile')
-rw-r--r-- | graphics/MesaLib/Makefile | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/graphics/MesaLib/Makefile b/graphics/MesaLib/Makefile index 4db6c975777..9a0f5cf5f23 100644 --- a/graphics/MesaLib/Makefile +++ b/graphics/MesaLib/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.69 2008/08/17 08:25:50 bjs Exp $ +# $NetBSD: Makefile,v 1.70 2008/08/17 09:41:35 bjs Exp $ PKGNAME= MesaLib-${MESA_PKGVERSION} COMMENT= Graphics library similar to SGI's OpenGL @@ -21,6 +21,17 @@ BUILDLINK_API_DEPENDS.driproto+= xf86driproto>=2.0.4 .include "../../mk/bsd.prefs.mk" CFLAGS.NetBSD+= -D_NETBSD_SOURCE +CFLAGS.NetBSD+= ${ATOMIC_OPS_CHECK}HAVE_NETBSD_ATOMIC_OPS + +.if ${OPSYS} == "NetBSD" && !target(netbsd-atomic-ops-check) +netbsd-atomic-ops-check: +ATOMIC_OPS_CHECK!=\ + if ( ${NM} /usr/lib/libc.so | ${GREP} -q atomic_cas_uint ); then \ + ${ECHO} "-D"; \ + else \ + ${ECHO} "-U"; \ + fi +.endif .if (${MACHINE_ARCH} == "x86_64" || \ ${MACHINE_ARCH} == "sparc64" || \ |