diff options
author | jlam <jlam> | 2001-09-13 08:37:28 +0000 |
---|---|---|
committer | jlam <jlam> | 2001-09-13 08:37:28 +0000 |
commit | 44dc7b64806deeec0da2d45a9dfa3d7e63778e09 (patch) | |
tree | 8b52d5962523e14510b788ad79e78b38f33dd26c /mk | |
parent | aaf32875f11b6ee6bd29cc93d2eb84ee6e99d33b (diff) | |
download | pkgsrc-44dc7b64806deeec0da2d45a9dfa3d7e63778e09.tar.gz |
Set MOTIFBASE within the scope of the Motif-compatible package's
buildlink.mk as it uses values from the buildlink.mk for it's own value.
Also don't pass MOTIFBASE to the MAKE_ENV as it causes the correct package
buildlink.mk file to not be included.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/motif.buildlink.mk | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/mk/motif.buildlink.mk b/mk/motif.buildlink.mk index a5039a7b6b7..e93eef6f6d6 100644 --- a/mk/motif.buildlink.mk +++ b/mk/motif.buildlink.mk @@ -1,4 +1,4 @@ -# $NetBSD: motif.buildlink.mk,v 1.2 2001/09/13 08:05:10 jlam Exp $ +# $NetBSD: motif.buildlink.mk,v 1.3 2001/09/13 08:37:28 jlam Exp $ # # This Makefile fragment is included by packages that use Motif. # @@ -65,17 +65,15 @@ _MOTIF_TYPE= none MOTIFBASE= /usr/dt . elif ${_MOTIF_TYPE} == "none" MOTIFBASE= ${X11BASE} -. elif ${_MOTIF_TYPE} == "openmotif" -MOTIFBASE= ${X11PREFIX} -. elif ${_MOTIF_TYPE} == "lesstif" -MOTIFBASE= ${X11PREFIX} . endif .endif .if ${_MOTIF_TYPE} == "openmotif" . include "../../x11/openmotif/buildlink.mk" +MOTIFBASE= ${BUILDLINK_PREFIX.openmotif} .elif ${_MOTIF_TYPE} == "lesstif" . include "../../x11/lesstif/buildlink.mk" +MOTIFBASE= ${BUILDLINK_PREFIX.lesstif} .else # # Link the pre-existing Motif libraries and headers in ${MOTIFBASE} into @@ -98,7 +96,6 @@ motif-buildlink: _BUILDLINK_USE .endif USE_X11= # defined -MAKE_ENV+= MOTIFBASE="${MOTIFBASE}" MAKE_ENV+= MOTIFLIB="${MOTIFLIB}" LDFLAGS+= -Wl,-R${MOTIFBASE}/lib MOTIFLIB?= -Wl,-R${MOTIFBASE}/lib -Wl,-R${X11BASE}/lib -L${BUILDLINK_DIR}/lib -lXm -lXp |