summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjlam <jlam>2001-11-14 13:06:25 +0000
committerjlam <jlam>2001-11-14 13:06:25 +0000
commit8089ced795d148c0babab846166af162f43a874d (patch)
treeb2578f69893a7ba1a18e4af74764e9ce95a7ae77
parentcf525b50da74d07ad9a703825c54ee806990326d (diff)
downloadpkgsrc-8089ced795d148c0babab846166af162f43a874d.tar.gz
Wrap default values in a check for USE_BUILDLINK_ONLY, otherwise these
values are immediately used within buildlink.mk, even though the values are overridden in another file that is included later. This behaviour occurs on make(1) from 20010826 userland.
-rw-r--r--x11/kde2/buildlink.mk11
1 files changed, 6 insertions, 5 deletions
diff --git a/x11/kde2/buildlink.mk b/x11/kde2/buildlink.mk
index c25c9702383..79450508089 100644
--- a/x11/kde2/buildlink.mk
+++ b/x11/kde2/buildlink.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink.mk,v 1.1 2001/11/13 21:08:56 jlam Exp $
+# $NetBSD: buildlink.mk,v 1.2 2001/11/14 13:06:25 jlam Exp $
#
# This Makefile fragment is included by packages that use the KDE2
# configure-and-build process.
@@ -55,16 +55,18 @@ KDE2_BUILDLINK_MK= # defined
#
USE_X11BASE= YES
-# Default values so that even if the package using this file is not
+.if !defined(USE_BUILDLINK_ONLY)
+#
+# Default values so that even if the package using this file is not strongly
# buildlinkified, there are sensible values for finding the KDE2 and Qt2
# headers and libraries.
#
KDEDIR?= ${X11PREFIX}
-QTDIR?= ${X11PREFIX}
+QTDIR?= ${X11PREFIX}/qt2
BUILDLINK_KDEDIR?= ${KDEDIR}
BUILDLINK_QTDIR?= ${QTDIR}
+.endif
-.if defined(GNU_CONFIGURE)
CONFIGURE_ARGS+= --datadir="${KDEDIR}/share/kde"
CONFIGURE_ARGS+= --with-qt-dir="${BUILDLINK_QTDIR}"
CONFIGURE_ARGS+= --with-extra-includes="${_KDE2_EXTRA_INCLUDES}"
@@ -104,5 +106,4 @@ CONFIGURE_ENV+= kde_sounddir="${KDEDIR}/share/kde/sounds"
CONFIGURE_ENV+= kde_templatesdir="${KDEDIR}/share/kde/templates"
CONFIGURE_ENV+= kde_toolbardir="${KDEDIR}/share/kde/toolbar"
CONFIGURE_ENV+= kde_wallpaperdir="${KDEDIR}/share/kde/wallpapers"
-.endif # GNU_CONFIGURE
.endif # KDE2_BUILDLINK_MK