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 | dd255677e07ccf16a0d36d657750b323d17efac9 (patch) | |
tree | 8901b5b81e86ae99eb8adaf01eb01d975dd84205 | |
parent | 1ad90c5cab08ec9423e7bb2e3f57af68896efc9d (diff) | |
download | pkgsrc-dd255677e07ccf16a0d36d657750b323d17efac9.tar.gz |
don't break stuff on !NetBSD
-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 \ |