diff options
author | schmonz <schmonz@pkgsrc.org> | 2006-01-11 09:26:52 +0000 |
---|---|---|
committer | schmonz <schmonz@pkgsrc.org> | 2006-01-11 09:26:52 +0000 |
commit | 24b4409868879c82911a1f65d6e22b23a8b1b8bb (patch) | |
tree | 691bc9864ad21d16ed8ca80eff8c61675f90445c /mk/djbware.mk | |
parent | ae8a1c813ac480c3097f9a99bcf8131656d5f5ea (diff) | |
download | pkgsrc-24b4409868879c82911a1f65d6e22b23a8b1b8bb.tar.gz |
Introduce DJB_SLASHPACKAGE, defaulting to NO. /package is DJB's
scheme for the installation and maintenance of software. Over time,
more software will follow /package.
For now, setting DJB_SLASHPACKAGE to YES has two effects:
* DJB_CONFIG_DIR is set to ${WRKSRC}/src
* A do-build target is defined to call package/compile.
Diffstat (limited to 'mk/djbware.mk')
-rw-r--r-- | mk/djbware.mk | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/mk/djbware.mk b/mk/djbware.mk index 790a34d12a4..4145f8ac74a 100644 --- a/mk/djbware.mk +++ b/mk/djbware.mk @@ -1,4 +1,4 @@ -# $NetBSD: djbware.mk,v 1.13 2005/12/18 20:25:35 joerg Exp $ +# $NetBSD: djbware.mk,v 1.14 2006/01/11 09:26:52 schmonz Exp $ # # Makefile fragment for packages with djb-style build machinery # @@ -30,6 +30,12 @@ DJB_RESTRICTED?= YES DJB_MAKE_TARGETS?= YES DJB_BUILD_TARGETS?= # empty DJB_INSTALL_TARGETS?= # empty +DJB_SLASHPACKAGE?= NO +.if !empty(DJB_SLASHPACKAGE:M[yY][eE][sS]) +DJB_CONFIG_DIR?= ${WRKSRC}/src +.else +DJB_CONFIG_DIR?= ${WRKSRC} +.endif DJB_CONFIG_PREFIX?= ${PREFIX} DJB_CONFIG_HOME?= conf-home DJB_CONFIG_CMDS?= ${DO_NADA} @@ -47,7 +53,7 @@ INSTALL_TARGET?= setup check ${DJB_INSTALL_TARGETS} .if !defined(NO_CONFIGURE) && !target(do-configure) do-configure: - ${_PKG_SILENT}${_PKG_DEBUG}cd ${WRKSRC}; \ + ${_PKG_SILENT}${_PKG_DEBUG}cd ${DJB_CONFIG_DIR}; \ for i in conf-*; do ${CP} $${i} $${i}.orig_dist; done; \ [ -f ${DJB_CONFIG_HOME} ] && \ ${ECHO} ${DJB_CONFIG_PREFIX} > ${DJB_CONFIG_HOME}; \ @@ -68,6 +74,11 @@ do-configure: ${DJB_CONFIG_CMDS} .endif +.if !target(do-build) && !empty(DJB_SLASHPACKAGE:M[yY][eE][sS]) +do-build: + cd ${WRKSRC} && package/compile +.endif + PKG_SUPPORTED_OPTIONS+= djbware-errno-hack PKG_SUGGESTED_OPTIONS+= djbware-errno-hack |