pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/x11/libdrm don't break stuff on !NetBSD



details:   https://anonhg.NetBSD.org/pkgsrc/rev/caa846cc339b
branches:  trunk
changeset: 574545:caa846cc339b
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Mon Apr 19 18:49:30 2010 +0000

description:
don't break stuff on !NetBSD

diffstat:

 x11/libdrm/Makefile |  12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diffs (28 lines):

diff -r 55e45c85efd0 -r caa846cc339b x11/libdrm/Makefile
--- a/x11/libdrm/Makefile       Mon Apr 19 18:46:15 2010 +0000
+++ b/x11/libdrm/Makefile       Mon Apr 19 18:49:30 2010 +0000
@@ -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_STAGE.atomic=    pre-configure
 SUBST_VARS.atomic=     ATOMIC_OPS_CHECK
 
-.if ${OPSYS} == "NetBSD" && exists(/usr/include/sys/atomic.h)
+ATOMIC_OPS_CHECK=      0
+.if ${OPSYS} == "NetBSD"
+. if exists(/usr/include/sys/atomic.h)
 ATOMIC_OPS_CHECK=      1
-.else
-ATOMIC_OPS_CHECK=      0
-.include "../../devel/libatomic_ops/buildlink3.mk"
+. else
+. include "../../devel/libatomic_ops/buildlink3.mk"
 CONFIGURE_ENV+=                drm_cv_atomic_primitives=libatomic-ops
+. endif
 .endif
 
 CONFIGURE_ARGS+=       PTHREADSTUBS_CFLAGS=-I${PREFIX}/include \



Home | Main Index | Thread Index | Old Index