diff options
author | jgh <jgh@FreeBSD.org> | 2013-04-23 15:27:18 +0800 |
---|---|---|
committer | jgh <jgh@FreeBSD.org> | 2013-04-23 15:27:18 +0800 |
commit | 62e1931957dfd84579934a6b59deaef7127f028e (patch) | |
tree | 41f96185743768386d18aab3d5a6a0e91fa63589 /Mk | |
parent | 83b039a2ada94a8667dd74f76140cf63ff86936b (diff) | |
download | freebsd-ports-gnome-62e1931957dfd84579934a6b59deaef7127f028e.tar.gz freebsd-ports-gnome-62e1931957dfd84579934a6b59deaef7127f028e.tar.zst freebsd-ports-gnome-62e1931957dfd84579934a6b59deaef7127f028e.zip |
Introduces USES= gettext to replace USE_GETTEXT
It can take 3 arguments:
build to add gettext into both RUN and BUILD DEPENDS
run to add gettext into RUN_DEPENDS
lib (default,implicit) to add gettext into LIB_DEPENDS
This deprecates USE_GETTEXT. Please convert your ports.
USE_GETTEXT will be removed as soon as it is no longer used in
the ports tree
Approved by: portmgr (bapt)
Diffstat (limited to 'Mk')
-rw-r--r-- | Mk/Uses/gettext.mk | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/Mk/Uses/gettext.mk b/Mk/Uses/gettext.mk new file mode 100644 index 000000000000..db93bd6de13f --- /dev/null +++ b/Mk/Uses/gettext.mk @@ -0,0 +1,31 @@ +# $FreeBSD$ +# +# handle dependency on the gettext (libintl) port +# +# MAINTAINER: portmgr@FreeBSD.org +# +# Feature: gettext +# Usage: USES=gettext or USES=gettext:ARGS +# Valid ARGS: build, run, lib (default, implicit) +# +# +.if !defined(_INCLUDE_USES_GETTEXT_MK) +_INCLUDE_USES_GETTEXT_MK= yes + +_GETTEXT_DEPENDS= xgettext:${PORTSDIR}/devel/gettext + +.if !defined(gettext_ARGS) +gettext_ARGS= lib +.endif + +.if ${gettext_ARGS} == "build" +BUILD_DEPENDS+= ${_GETTEXT_DEPENDS} +.elif ${gettext_ARGS} == "run" +RUN_DEPENDS+= ${_GETTEXT_DEPENDS} +.elif ${gettext_ARGS} == "lib" +LIB_DEPENDS+= intl:${PORTSDIR}/devel/gettext +.else +IGNORE= USES=gettext - invalid args: [${gettext_ARGS}] specifed +.endif + +.endif |