summaryrefslogtreecommitdiff
path: root/mk/x11.buildlink3.mk
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2006-12-01 13:05:53 +0000
committerjoerg <joerg@pkgsrc.org>2006-12-01 13:05:53 +0000
commit9e9158a6965fb136fca7be1420e8cf20e9525f7b (patch)
tree52c602bde3d733c8728e95c591e9228e9353075a /mk/x11.buildlink3.mk
parentdbaec98045f6de1920696801b121c43a6d21d656 (diff)
downloadpkgsrc-9e9158a6965fb136fca7be1420e8cf20e9525f7b.tar.gz
Proper include guards to unbreak nautilus. This wasn't such a big
problem before, but the move to Xorg increased the including of this file a lot.
Diffstat (limited to 'mk/x11.buildlink3.mk')
-rw-r--r--mk/x11.buildlink3.mk8
1 files changed, 5 insertions, 3 deletions
diff --git a/mk/x11.buildlink3.mk b/mk/x11.buildlink3.mk
index fce714be1cc..52c4c638522 100644
--- a/mk/x11.buildlink3.mk
+++ b/mk/x11.buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: x11.buildlink3.mk,v 1.6 2006/11/17 09:50:54 rillig Exp $
+# $NetBSD: x11.buildlink3.mk,v 1.7 2006/12/01 13:05:53 joerg Exp $
#
# This Makefile fragment is meant to be included by packages that
# require an X11 distribution. x11.buildlink3.mk will include the
@@ -7,7 +7,9 @@
X11_BUILDLINK3_MK:= ${X11_BUILDLINK3_MK}+
-.if ${X11_BUILDLINK3_MK} == "+"
+.if !defined(_X11_BUILDLINK3_MK)
+_X11_BUILDLINK3_MK= 1
+
USE_X11= yes
. include "../../mk/bsd.prefs.mk"
@@ -32,7 +34,7 @@ CONFIGURE_ARGS+= --x-libraries=${X11BASE:Q}/lib${LIBABISUFFIX:Q}
X11_LDFLAGS+= ${COMPILER_RPATH_FLAG}${X11BASE}/lib${LIBABISUFFIX}
X11_LDFLAGS+= -L${X11BASE}/lib${LIBABISUFFIX}
-.endif # X11_BUILDLINK3_MK
+.endif # _X11_BUILDLINK3_MK
.include "${X11_PKGSRCDIR.${X11_TYPE}}/buildlink3.mk"