diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2013-03-08 15:04:18 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2013-03-08 15:04:18 +0000 |
commit | 051cbebcc8048ad3e56ad943504c537077e0d5e3 (patch) | |
tree | a2b2c7a6d1334fad63bde8e2f68ffa4fd74dcfc1 /Mk/Uses | |
parent | cae3e57d97328b039f4beaf12995e4d78f898beb (diff) | |
download | ports-051cbebcc8048ad3e56ad943504c537077e0d5e3.tar.gz ports-051cbebcc8048ad3e56ad943504c537077e0d5e3.zip |
- Add a short usage description inside each Uses/*.mk
- Simplify logic for Uses/bison.mk and make error message more informative
- Add error handler for Uses/fuse.mk and Uses/pathfix.mk
Submitted by: ak@, az@
Notes
Notes:
svn path=/head/; revision=313652
Diffstat (limited to 'Mk/Uses')
-rw-r--r-- | Mk/Uses/bison.mk | 19 | ||||
-rw-r--r-- | Mk/Uses/fuse.mk | 9 | ||||
-rw-r--r-- | Mk/Uses/pathfix.mk | 9 |
3 files changed, 30 insertions, 7 deletions
diff --git a/Mk/Uses/bison.mk b/Mk/Uses/bison.mk index a11b76e63b62..57e491fb5528 100644 --- a/Mk/Uses/bison.mk +++ b/Mk/Uses/bison.mk @@ -4,24 +4,29 @@ # # MAINTAINER: portmgr@FreeBSD.org # +# Feature: bison +# Usage: USES=bison or USES=bison:ARGS +# Valid ARGS build (default, implicit), run, both +# +# .if !defined(_INCLUDE_BISON_MK) _INCLUDE_BISON_MK= yes _BISON_DEPENDS= bison:${PORTSDIR}/devel/bison .if !defined(bison_ARGS) -BUILD_DEPENDS+= ${_BISON_DEPENDS} -.else +bison_ARGS=build +.endif + .if ${bison_ARGS} == "build" -BUILD_DEPENDS+= ${_BUILD_DEPENDS} +BUILD_DEPENDS+= ${_BISON_DEPENDS} .elif ${bison_ARGS} == "run" -RUN_DEPENDS+= ${_BUILD_DEPENDS} +RUN_DEPENDS+= ${_BISON_DEPENDS} .elif ${bison_ARGS} == "both" BUILD_DEPENDS+= ${_BISON_DEPENDS} -RUN_DEPENDS+= ${_BUILD_DEPENDS} +RUN_DEPENDS+= ${_BISON_DEPENDS} .else -IGNORE= Bad usage of USES= bison -.endif +IGNORE= USES=bison - invalid args: [${bison_ARGS}] specifed .endif .endif diff --git a/Mk/Uses/fuse.mk b/Mk/Uses/fuse.mk index 3f58941fb884..892770c707a8 100644 --- a/Mk/Uses/fuse.mk +++ b/Mk/Uses/fuse.mk @@ -4,9 +4,18 @@ # # MAINTAINER: portmgr@FreeBSD.org # +# Feature: fuse +# Usage: USES=fuse +# Valid ARGS does not require args +# +# .if !defined(_INCLUDE_FUSE_MK) _INCLUDE_FUSE_MK= yes +.if defined(fuse_ARGS) +IGNORE= USES=fuse does not require args +.endif + LIB_DEPENDS+= fuse:${PORTSDIR}/sysutils/fusefs-libs .if !exists(/sbin/mount_fusefs) RUN_DEPENDS+= mount_fusefs:${PORTSDIR}/sysutils/fusefs-kmod diff --git a/Mk/Uses/pathfix.mk b/Mk/Uses/pathfix.mk index d29e9b211bb1..d6bb5694e361 100644 --- a/Mk/Uses/pathfix.mk +++ b/Mk/Uses/pathfix.mk @@ -5,9 +5,18 @@ # # MAINTAINER: portmgr@FreeBSD.org # +# Feature: pathfix +# Usage: USES=pathfix +# Valid ARGS does not require args +# +# .if !defined(_INCLUDE_PATHFIX_MK) _INCLUDE_PATHFIX_MK= yes +.if defined(pathfix_ARGS) +IGNORE= USES=pathfix does not require args +.endif + PATHFIX_MAKEFILEIN?= Makefile.in pre-patch: pathfix-pre-patch |