diff options
author | jlam <jlam> | 2000-10-23 17:32:06 +0000 |
---|---|---|
committer | jlam <jlam> | 2000-10-23 17:32:06 +0000 |
commit | 48fdb7a65e45240ec0b40efa84ef9fcb95cac3c2 (patch) | |
tree | cfbcf370a71a57d4b04810664b49d82b649d418d /mk | |
parent | b35db218b56ad56e4578eca12403c264e4215d66 (diff) | |
download | pkgsrc-48fdb7a65e45240ec0b40efa84ef9fcb95cac3c2.tar.gz |
Update xpkgwedge to 1.0 and make appropriate changes to bsd.pkg.mk to handle
the new version of xpkgwedge. Changes from xpkgwedge 0.4:
* Redefine ImakeCmd to "imake -I$(PREFIX)/lib/X11/config" to
pick up X11 config files in $(PREFIX)/lib/X11/config before the
ones in the standard X11 tree.
* Install a program called "pkgxmkmf" that's actually xmkmf, but
checks in $(PREFIX)/lib/X11/config before the standard X11 config
directory.
* Create the host.def file in $(PREFIX)/lib/X11/config instead of
always in ${X11BASE}/lib/X11/config.
The benefits of this are:
1) xpkgwedge can now install into $(PREFIX) instead of always into
$(X11BASE).
2) Keeps the X11 tree "pure", and doesn't affect people who want
to run xmkmf and not include all the xpkgwedge stuff, even if
it's installed.
3) Packages that install config files (lesstif, xview-config) can
now do so in $(PREFIX).
4) People only have to use 'pkgxmkmf' instead of 'xmkmf', and
(hopefully) no other changes, if they want to use the config
files in xpkgwedge'd packages.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/bsd.pkg.mk | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index fdcb1558b2f..1d8423e7c14 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.591 2000/10/22 14:05:24 fredb Exp $ +# $NetBSD: bsd.pkg.mk,v 1.592 2000/10/23 17:32:06 jlam Exp $ # # This file is in the public domain. # @@ -89,11 +89,18 @@ CONFIGURE_ENV+= CLASSPATH=${CLASSPATH} JAVA_HOME=${JAVA_HOME} SCRIPTS_ENV+= CLASSPATH=${CLASSPATH} JAVA_HOME=${JAVA_HOME} .endif -# set X11PREFIX to reflect installed dir of X11 packages -.if exists(${X11BASE}/lib/X11/config/xpkgwedge.def) +# Set X11PREFIX to reflect the install directory of X11 packages. +# +# The check for the existence of ${X11BASE}/lib/X11/config/xpkgwedge.def +# is to catch users of xpkgwedge<1.0. +# +.if exists(${LOCALBASE}/lib/X11/config/xpkgwedge.def) || \ + exists(${X11BASE}/lib/X11/config/xpkgwedge.def) X11PREFIX= ${LOCALBASE} +XMKMF?= pkgxmkmf -a .else X11PREFIX= ${X11BASE} +XMKMF?= xmkmf -a .endif .if defined(USE_MOTIF12) @@ -117,6 +124,14 @@ MOTIFBASE?= ${X11PREFIX} .endif # USE_MOTIF .if defined(USE_IMAKE) || defined(USE_MOTIF) || defined(USE_X11BASE) +.if exists(${LOCALBASE}/lib/X11/config/xpkgwedge.def) || \ + exists(${X11BASE}/lib/X11/config/xpkgwedge.def) +# XXX: actually, here we would need something like +# BUILD_DEPENDS+=xpkgwedge>=1.0:../../pkgtools/xpkgwedge +.if make(install-run-depends) +DEPENDS+= xpkgwedge>=1.0:../../pkgtools/xpkgwedge +.endif +.endif PREFIX= ${X11PREFIX} .elif defined(USE_CROSSBASE) PREFIX= ${CROSSBASE} @@ -246,7 +261,6 @@ PACKAGE_COOKIE= ${WRKDIR}/.package_done # Miscellaneous overridable commands: SHCOMMENT?= ${ECHO_MSG} >/dev/null '***' -XMKMF?= xmkmf -a .if exists(/sbin/md5) MD5?= /sbin/md5 .elif exists(/bin/md5) |