diff options
author | tnn <tnn@pkgsrc.org> | 2010-04-19 18:49:30 +0000 |
---|---|---|
committer | tnn <tnn@pkgsrc.org> | 2010-04-19 18:49:30 +0000 |
commit | f5a239aaaedab47cf4b0fd3aa0af907b716e596f (patch) | |
tree | 8901b5b81e86ae99eb8adaf01eb01d975dd84205 /x11/libdrm | |
parent | f5cab1ae295190e55510c43b6538da04c99c14f9 (diff) | |
download | pkgsrc-f5a239aaaedab47cf4b0fd3aa0af907b716e596f.tar.gz |
don't break stuff on !NetBSD
Diffstat (limited to 'x11/libdrm')
-rw-r--r-- | x11/libdrm/Makefile | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/x11/libdrm/Makefile b/x11/libdrm/Makefile index 4304d666a62..bbd55ec11c3 100644 --- a/x11/libdrm/Makefile +++ b/x11/libdrm/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.12 2010/04/19 18:46:15 tnn Exp $ +# $NetBSD: Makefile,v 1.13 2010/04/19 18:49:30 tnn Exp $ # DISTNAME= libdrm-2.4.20 @@ -26,12 +26,14 @@ SUBST_MESSAGE.atomic= Configuring xf86drm.h's atomic operations. SUBST_STAGE.atomic= pre-configure SUBST_VARS.atomic= ATOMIC_OPS_CHECK -.if ${OPSYS} == "NetBSD" && exists(/usr/include/sys/atomic.h) -ATOMIC_OPS_CHECK= 1 -.else ATOMIC_OPS_CHECK= 0 -.include "../../devel/libatomic_ops/buildlink3.mk" +.if ${OPSYS} == "NetBSD" +. if exists(/usr/include/sys/atomic.h) +ATOMIC_OPS_CHECK= 1 +. else +. include "../../devel/libatomic_ops/buildlink3.mk" CONFIGURE_ENV+= drm_cv_atomic_primitives=libatomic-ops +. endif .endif CONFIGURE_ARGS+= PTHREADSTUBS_CFLAGS=-I${PREFIX}/include \ |