diff options
author | tv <tv@pkgsrc.org> | 2005-02-11 16:11:36 +0000 |
---|---|---|
committer | tv <tv@pkgsrc.org> | 2005-02-11 16:11:36 +0000 |
commit | 4b3f94acc88bdcb36342464d3eb1c016c82e44c1 (patch) | |
tree | 51f07d7a66ab5c197c9e7d3e13b46619ff8902a0 /mk/bsd.pkg.use.mk | |
parent | c0a3d0489f781d2b315eaac7f88d12288f3e0db1 (diff) | |
download | pkgsrc-4b3f94acc88bdcb36342464d3eb1c016c82e44c1.tar.gz |
Migrate several USE_* logic blocks, previously sprinkled liberally
throughout bsd.pkg.mk, to labelled blocks in bsd.pkg.use.mk.
Diffstat (limited to 'mk/bsd.pkg.use.mk')
-rw-r--r-- | mk/bsd.pkg.use.mk | 90 |
1 files changed, 89 insertions, 1 deletions
diff --git a/mk/bsd.pkg.use.mk b/mk/bsd.pkg.use.mk index 26acf3590c3..af9419f710e 100644 --- a/mk/bsd.pkg.use.mk +++ b/mk/bsd.pkg.use.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.use.mk,v 1.2 2005/02/11 15:55:13 tv Exp $ +# $NetBSD: bsd.pkg.use.mk,v 1.3 2005/02/11 16:11:36 tv Exp $ # # Turn USE_* macros into proper depedency logic. Included near the top of # bsd.pkg.mk, after bsd.prefs.mk. @@ -51,3 +51,91 @@ PREFIX= ${LOCALBASE} .if (${PKG_INSTALLATION_TYPE} == "pkgviews") && defined(INSTALLATION_PREFIX) PKG_SKIP_REASON= "INSTALLATION_PREFIX can't be used in a pkgviews package" .endif + +############################################################################ +# General settings +############################################################################ + +### BUILD_USES_MSGFMT + +.if defined(BUILD_USES_MSGFMT) && \ + (!exists(/usr/bin/msgfmt) || ${_USE_GNU_GETTEXT} == "yes") +BUILD_DEPENDS+= gettext>=0.10.35nb1:../../devel/gettext +.endif + +### PKG_USE_KERBEROS + +.if defined(PKG_USE_KERBEROS) +CRYPTO?= uses Kerberos encryption code +BUILD_DEFS+= KERBEROS +.endif + +### USE_DIRS + +USE_DIRS?= # empty +.if !empty(USE_DIRS) && ${PKG_INSTALLATION_TYPE} == "overwrite" +. include "../../mk/dirs.mk" +.endif + +### USE_LIBTOOL, PKG_[SH]LIBTOOL + +# +# PKG_LIBTOOL is the path to the libtool script installed by libtool-base. +# _LIBTOOL is the path the libtool used by the build, which could be the +# path to a libtool wrapper script. +# LIBTOOL is the publicly-readable variable that should be used by +# Makefiles to invoke the proper libtool. +# +PKG_LIBTOOL?= ${LOCALBASE}/bin/libtool +PKG_SHLIBTOOL?= ${LOCALBASE}/bin/shlibtool +_LIBTOOL?= ${PKG_LIBTOOL} +_SHLIBTOOL?= ${PKG_SHLIBTOOL} +LIBTOOL?= ${PKG_LIBTOOL} +SHLIBTOOL?= ${PKG_SHLIBTOOL} +.if defined(USE_LIBTOOL) +. if defined(USE_LANGUAGES) && !empty(USE_LANGUAGES:Mfortran) +LIBTOOL_REQD?= 1.5.10nb7 +. endif +LIBTOOL_REQD?= 1.5.10nb1 +BUILD_DEPENDS+= libtool-base>=${_OPSYS_LIBTOOL_REQD:U${LIBTOOL_REQD}}:../../devel/libtool-base +CONFIGURE_ENV+= LIBTOOL="${LIBTOOL} ${LIBTOOL_FLAGS}" +MAKE_ENV+= LIBTOOL="${LIBTOOL} ${LIBTOOL_FLAGS}" +LIBTOOL_OVERRIDE?= libtool */libtool */*/libtool +.endif + +### USE_MAKEINFO, INFO_FILES + +INFO_FILES?= # empty +USE_MAKEINFO?= no + +.if !empty(INFO_FILES) || empty(USE_MAKEINFO:M[nN][oO]) +. include "../../mk/texinfo.mk" +.endif + +### USE_RMAN + +# Check if we got "rman" with XFree86, for packages that need "rman". +.if defined(USE_RMAN) +. if !exists(${X11BASE}/bin/rman) +DEPENDS+= rman-3.0.9:../../textproc/rman +RMAN?= ${LOCALBASE}/bin/rman +. else +RMAN?= ${X11BASE}/bin/rman +. endif +.endif + +### USE_X11 + +.if defined(USE_X11) +X11_LDFLAGS+= ${COMPILER_RPATH_FLAG}${X11BASE}/lib${LIBABISUFFIX} +X11_LDFLAGS+= -L${X11BASE}/lib${LIBABISUFFIX} +. if !empty(USE_BUILDLINK3:M[nN][oO]) +LDFLAGS+= ${X11_LDFLAGS} +. endif +.endif + +### USE_XPKGWEDGE + +.if defined(USE_X11BASE) && !empty(USE_XPKGWEDGE:M[yY][eE][sS]) +BUILD_DEPENDS+= xpkgwedge>=${_XPKGWEDGE_REQD:U1.5}:../../pkgtools/xpkgwedge +.endif |