diff options
author | bapt <bapt@FreeBSD.org> | 2013-03-06 14:28:57 +0000 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2013-03-06 14:28:57 +0000 |
commit | 60001306c379d81bf9d2a62ded5df2f3a26a3381 (patch) | |
tree | ff1c99fff77ba1d8a0c6327b2caa4d142ff34781 /Mk/bsd.port.mk | |
parent | dd0d94aabe3f01b4cd362dc8387b6c5615181817 (diff) | |
download | FreeBSD-ports-60001306c379d81bf9d2a62ded5df2f3a26a3381.zip FreeBSD-ports-60001306c379d81bf9d2a62ded5df2f3a26a3381.tar.gz |
New USES macros that loads "features" on demand.
First feature implemented: pathfix which will lookup in WRKSRC for Makefile.in
and configure and fix common path that doesn't fit with FreeBSD hier(7)
This is an extract of bsd.gnome.mk's gnomehack to avoid porters to have to load
the full bsd.gnome.mk just for this feature
More features to come...
Diffstat (limited to 'Mk/bsd.port.mk')
-rw-r--r-- | Mk/bsd.port.mk | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk index 5d71ce5..7d8b891 100644 --- a/Mk/bsd.port.mk +++ b/Mk/bsd.port.mk @@ -1153,6 +1153,7 @@ DISTDIR?= ${PORTSDIR}/distfiles _DISTDIR?= ${DISTDIR}/${DIST_SUBDIR} INDEXDIR?= ${PORTSDIR} SRC_BASE?= /usr/src +USESDIR?= ${PORTSDIR}/Mk/Uses .include "${PORTSDIR}/Mk/bsd.commands.mk" @@ -1544,6 +1545,15 @@ check-makefile:: _POSTMKINCLUDED= yes +# Loading features +.for f in ${USES} +_f=${f:C/\:.*//g} +.if ${_f} != ${f} +${_f}_ARGS:= ${f:C/^[^\:]*\://g} +.endif +.include "${USESDIR}/${_f}.mk" +.endfor + WRKDIR?= ${WRKDIRPREFIX}${.CURDIR}/work .if !defined(IGNORE_MASTER_SITE_GITHUB) && defined(USE_GITHUB) WRKSRC?= ${WRKDIR}/${GH_ACCOUNT}-${GH_PROJECT}-${GH_COMMIT} |