diff options
author | tv <tv@pkgsrc.org> | 2005-02-11 15:55:13 +0000 |
---|---|---|
committer | tv <tv@pkgsrc.org> | 2005-02-11 15:55:13 +0000 |
commit | 5655fbe984b6d3147f465e6bbbbcc589ddf77e70 (patch) | |
tree | dd570b8326e1044750b58d8be897d6eef21ceabb /mk/bsd.pkg.use.mk | |
parent | 4f02666f6ef0b6f18b75dc293e6cb377d51136ef (diff) | |
download | pkgsrc-5655fbe984b6d3147f465e6bbbbcc589ddf77e70.tar.gz |
Merge down some more visual cleanup from tv-derecurse to reduce divergence.
Part of this, introduce bsd.pkg.use.mk, where the Special Logic invoked
by various pkgsrc-wide USE_* variables will be migrated/consolidated.
Diffstat (limited to 'mk/bsd.pkg.use.mk')
-rw-r--r-- | mk/bsd.pkg.use.mk | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/mk/bsd.pkg.use.mk b/mk/bsd.pkg.use.mk new file mode 100644 index 00000000000..26acf3590c3 --- /dev/null +++ b/mk/bsd.pkg.use.mk @@ -0,0 +1,53 @@ +# $NetBSD: bsd.pkg.use.mk,v 1.2 2005/02/11 15:55:13 tv Exp $ +# +# Turn USE_* macros into proper depedency logic. Included near the top of +# bsd.pkg.mk, after bsd.prefs.mk. + +############################################################################ +# ${PREFIX} selection +############################################################################ + +.if defined(USE_IMAKE) +INSTALL_TARGET+= ${NO_INSTALL_MANPAGES:D:Uinstall.man} +USE_X11BASE?= implied +PLIST_SUBST+= IMAKE_MAN_SOURCE_PATH=${IMAKE_MAN_SOURCE_PATH} +PLIST_SUBST+= IMAKE_MAN_DIR=${IMAKE_MAN_DIR} +PLIST_SUBST+= IMAKE_LIBMAN_DIR=${IMAKE_LIBMAN_DIR} +PLIST_SUBST+= IMAKE_KERNMAN_DIR=${IMAKE_KERNMAN_DIR} +PLIST_SUBST+= IMAKE_FILEMAN_DIR=${IMAKE_FILEMAN_DIR} +PLIST_SUBST+= IMAKE_MISCMAN_DIR=${IMAKE_MISCMAN_DIR} +PLIST_SUBST+= IMAKE_MAN_SUFFIX=${IMAKE_MAN_SUFFIX} +PLIST_SUBST+= IMAKE_LIBMAN_SUFFIX=${IMAKE_LIBMAN_SUFFIX} +PLIST_SUBST+= IMAKE_KERNMAN_SUFFIX=${IMAKE_KERNMAN_SUFFIX} +PLIST_SUBST+= IMAKE_FILEMAN_SUFFIX=${IMAKE_FILEMAN_SUFFIX} +PLIST_SUBST+= IMAKE_MISCMAN_SUFFIX=${IMAKE_MISCMAN_SUFFIX} +PLIST_SUBST+= IMAKE_MANNEWSUFFIX=${IMAKE_MANNEWSUFFIX} +. if !empty(USE_BUILDLINK3:M[yY][eE][sS]) +MAKE_FLAGS+= CC="${CC}" CXX="${CXX}" +. endif +.endif + +.if defined(USE_X11BASE) +MTREE_FILE?= ${PKGSRCDIR}/mk/${OPSYS}.x11.dist +USE_X11?= implied +.endif + +.if ${PKG_INSTALLATION_TYPE} == "pkgviews" +PREFIX= ${DEPOTBASE}/${PKGNAME} +NO_MTREE= yes +.elif ${PKG_INSTALLATION_TYPE} == "overwrite" +. if defined(INSTALLATION_PREFIX) +PREFIX= ${INSTALLATION_PREFIX} +. elif defined(USE_X11BASE) +PREFIX= ${X11PREFIX} +. elif defined(USE_CROSSBASE) +PREFIX= ${CROSSBASE} +NO_MTREE= yes +. else +PREFIX= ${LOCALBASE} +. endif +.endif + +.if (${PKG_INSTALLATION_TYPE} == "pkgviews") && defined(INSTALLATION_PREFIX) +PKG_SKIP_REASON= "INSTALLATION_PREFIX can't be used in a pkgviews package" +.endif |