diff options
author | jlam <jlam> | 2001-08-22 17:34:19 +0000 |
---|---|---|
committer | jlam <jlam> | 2001-08-22 17:34:19 +0000 |
commit | f10802c13ef9e8f4699f07266797b6b7fabc4b41 (patch) | |
tree | 8d4c96523574b06d2663b5fa91f93a4e03e5ed98 /mk | |
parent | 53d22483d10376dede18a90adb980d9e5fb451e3 (diff) | |
download | pkgsrc-f10802c13ef9e8f4699f07266797b6b7fabc4b41.tar.gz |
By default, don't use pkgtools/buildlink-x11 to cause packages that use
imake to be buildlinked as it's not necessary for those packages. Many
thanks to Frederick Bruckman <fredb@immanent.net> for pointing this out.
This is accomplished by ripping out all of the Makefile logic related to
buildlink-x11. It will be added back in a separate file (as noted by the
additional check for X11_BUILDLINK_MK, but will still not be the default.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/bsd.pkg.mk | 30 |
1 files changed, 4 insertions, 26 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index a97675a7571..df3f5a0eeeb 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.798 2001/08/20 14:41:48 tv Exp $ +# $NetBSD: bsd.pkg.mk,v 1.799 2001/08/22 17:34:19 jlam Exp $ # # This file is in the public domain. # @@ -100,8 +100,7 @@ SCRIPTS_ENV+= JAVA_HOME=${JAVA_HOME} .endif # Set X11PREFIX to reflect the install directory of X11 packages. -# Set XMKMF_CMD properly for all combinations of whether xpkgwedge and -# buildlink-x11 are installed. +# Set XMKMF_CMD properly if xpkgwedge is installed. # # The check for the existence of ${X11BASE}/lib/X11/config/xpkgwedge.def # is to catch users of xpkgwedge<1.0. @@ -114,17 +113,7 @@ X11PREFIX= ${LOCALBASE} XMKMF_CMD?= ${X11PREFIX}/bin/pkgxmkmf .else X11PREFIX= ${X11BASE} -. if exists(${X11PREFIX}/lib/X11/config/buildlinkX11.def) -XMKMF_CMD?= ${X11PREFIX}/bin/buildlink-xmkmf -. else XMKMF_CMD?= ${X11PREFIX}/bin/xmkmf -. endif -.endif -.if defined(USE_BUILDLINK_ONLY) -XMKMF_FLAGS+= -DBuildLink -. if defined(USE_BUILDLINK_X11) -XMKMF_FLAGS+= -DBuildLinkX11 -. endif .endif .if defined(USE_MOTIF12) @@ -152,15 +141,6 @@ MOTIFBASE?= ${X11PREFIX} exists(${X11BASE}/lib/X11/config/xpkgwedge.def) BUILD_DEPENDS+= xpkgwedge>=1.5:../../pkgtools/xpkgwedge . endif -. if defined(USE_BUILDLINK_ONLY) -BUILD_DEPENDS+= buildlink-x11>=0.7:../../pkgtools/buildlink-x11 -BUILDLINK_DIR?= ${WRKDIR}/.buildlink -MAKE_ENV+= BUILDLINK_DIR="${BUILDLINK_DIR}" -MAKE_ENV+= PKGSRC_CPPFLAGS="${CPPFLAGS}" -MAKE_ENV+= PKGSRC_CFLAGS="${CFLAGS}" -MAKE_ENV+= PKGSRC_CXXFLAGS="${CXXFLAGS}" -MAKE_ENV+= PKGSRC_LDFLAGS="${LDFLAGS}" -. endif PREFIX= ${X11PREFIX} .elif defined(USE_CROSSBASE) PREFIX= ${CROSSBASE} @@ -351,7 +331,7 @@ LDFLAGS+= -L${MOTIFBASE}/lib . endif . endif LDFLAGS+= -Wl,-R${X11BASE}/lib -. if !defined(USE_BUILDLINK_X11) +. if !defined(X11_BUILDLINK_MK) LDFLAGS+= -L${X11BASE}/lib . endif .endif @@ -974,9 +954,7 @@ CONFIGURE_ENV+= PATH=${PATH}:${LOCALBASE}/bin:${X11BASE}/bin CONFIGURE_ARGS+= --host=${MACHINE_GNU_PLATFORM} --prefix=${PREFIX} HAS_CONFIGURE= yes . if ${X11PREFIX} == ${LOCALBASE} -. if defined(USE_BUILDLINK_X11) -CONFIGURE_ARGS+= --x-libraries=${BUILDLINK_DIR}/lib --x-includes=${BUILDLINK_DIR}/include -. else +. if !defined(X11_BUILDLINK_MK) CONFIGURE_ARGS+= --x-libraries=${X11BASE}/lib --x-includes=${X11BASE}/include . endif . endif |