summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjlam <jlam>2005-07-28 16:20:52 +0000
committerjlam <jlam>2005-07-28 16:20:52 +0000
commit1a4348ad230c5b3d43721e87f2e8ef681c04ddc4 (patch)
tree6bbc6487995413af898dd383503102d75a513e80 /mk
parent0a6e43f7d4b25c2b2edf09356a5e376c034196b2 (diff)
downloadpkgsrc-1a4348ad230c5b3d43721e87f2e8ef681c04ddc4.tar.gz
Add an inclusion guard for parts of x11.buildlink3.mk that we don't
want to be seen over and over again each time that file is included. This stops us from appending the same bits over and over again to CONFIGURE_ARGS and to X11_LDFLAGS.
Diffstat (limited to 'mk')
-rw-r--r--mk/x11.buildlink3.mk12
1 files changed, 8 insertions, 4 deletions
diff --git a/mk/x11.buildlink3.mk b/mk/x11.buildlink3.mk
index 4ab3c82e865..56e7ed49527 100644
--- a/mk/x11.buildlink3.mk
+++ b/mk/x11.buildlink3.mk
@@ -1,22 +1,26 @@
-# $NetBSD: x11.buildlink3.mk,v 1.1 2005/06/01 18:03:06 jlam Exp $
+# $NetBSD: x11.buildlink3.mk,v 1.2 2005/07/28 16:20:52 jlam Exp $
#
# This Makefile fragment is meant to be included by packages that
# require an X11 distribution. x11.buildlink3.mk will include the
# buildlink3.mk file from the appropriate X11 distribution.
#
+X11_BUILDLINK3_MK:= ${X11_BUILDLINK3_MK}+
+
.include "../../mk/bsd.prefs.mk"
+.if !empty(X11_BUILDLINK3_MK:M+)
USE_X11= yes
-.include "../../mk/x11.version.mk"
+. include "../../mk/x11.version.mk"
-.if defined(GNU_CONFIGURE)
+. if defined(GNU_CONFIGURE)
CONFIGURE_ARGS+= --x-includes=${X11BASE:Q}/include
CONFIGURE_ARGS+= --x-libraries=${X11BASE:Q}/lib${LIBABISUFFIX:Q}
-.endif
+. endif
X11_LDFLAGS+= ${COMPILER_RPATH_FLAG}${X11BASE}/lib${LIBABISUFFIX}
X11_LDFLAGS+= -L${X11BASE}/lib${LIBABISUFFIX}
+.endif # X11_BUILDLINK3_MK
.sinclude "${X11_PKGSRCDIR.${X11_TYPE}}/buildlink3.mk"