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 | f769741f6794c9c9ce4ee97834f7dd6a3c6550b5 (patch) | |
tree | 691bc9864ad21d16ed8ca80eff8c61675f90445c | |
parent | 5f43d2a14b839f67355337dd70a17a0389b9472b (diff) | |
download | pkgsrc-f769741f6794c9c9ce4ee97834f7dd6a3c6550b5.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.
-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 |