summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--x11/libdrm/Makefile9
-rw-r--r--x11/libdrm/buildlink3.mk3
2 files changed, 6 insertions, 6 deletions
diff --git a/x11/libdrm/Makefile b/x11/libdrm/Makefile
index 7068ec88783..abaf1df83dc 100644
--- a/x11/libdrm/Makefile
+++ b/x11/libdrm/Makefile
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.29 2013/04/21 14:34:37 wiz Exp $
+# $NetBSD: Makefile,v 1.30 2013/05/16 05:43:14 richard Exp $
DISTNAME= libdrm-2.4.44
+PKGREVISION= 1
CATEGORIES= x11 graphics
MASTER_SITES= http://dri.freedesktop.org/libdrm/
EXTRACT_SUFX= .tar.bz2
@@ -27,13 +28,11 @@ SUBST_STAGE.atomic= pre-configure
SUBST_VARS.atomic= ATOMIC_OPS_CHECK
ATOMIC_OPS_CHECK= 0
-.if ${OPSYS} == "NetBSD"
-. if exists(/usr/include/sys/atomic.h)
+.if exists(/usr/include/sys/atomic.h)
ATOMIC_OPS_CHECK= 1
-. else
+.else
. include "../../devel/libatomic_ops/buildlink3.mk"
CONFIGURE_ENV+= drm_cv_atomic_primitives=libatomic-ops
-. endif
.endif
CONFIGURE_ARGS+= PTHREADSTUBS_CFLAGS=-I${PREFIX}/include \
diff --git a/x11/libdrm/buildlink3.mk b/x11/libdrm/buildlink3.mk
index b378ec16e83..1a1f3f203cd 100644
--- a/x11/libdrm/buildlink3.mk
+++ b/x11/libdrm/buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.6 2012/05/03 11:52:33 obache Exp $
+# $NetBSD: buildlink3.mk,v 1.7 2013/05/16 05:43:14 richard Exp $
BUILDLINK_TREE+= libdrm
@@ -7,6 +7,7 @@ LIBDRM_BUILDLINK3_MK:=
BUILDLINK_API_DEPENDS.libdrm+= libdrm>=2.4.15
BUILDLINK_PKGSRCDIR.libdrm?= ../../x11/libdrm
+BUILDLINK_INCDIRS.libdrm?= include/libdrm
.endif # LIBDRM_BUILDLINK3_MK
BUILDLINK_TREE+= -libdrm