diff options
author | bsam <bsam@FreeBSD.org> | 2013-09-02 05:41:50 +0000 |
---|---|---|
committer | bsam <bsam@FreeBSD.org> | 2013-09-02 05:41:50 +0000 |
commit | 76068bedb30bd66dfe3e9cc6d7d202042d4f871c (patch) | |
tree | 329b9860cec2b8bc443912ad4a52d7732ffc9db3 /Mk | |
parent | c2ec996ddec2412e5140b829f58ba8dd3bb0a038 (diff) | |
download | FreeBSD-ports-76068bedb30bd66dfe3e9cc6d7d202042d4f871c.zip FreeBSD-ports-76068bedb30bd66dfe3e9cc6d7d202042d4f871c.tar.gz |
1. Introduce using iconv with arguments:
. lib (default, implicit);
. build,
. patch.
The default is the same, all existing ports stay valid.
2. Introduce variable ICONV_CMD with default to ${LOCALBASE}/bin/iconv.
It is intended to get the value of /usr/bin/iconv at recent 10.x.
3. Adopt all ports to using USES+= icomv:build and iconv:patch and
change iconv (executable) at Makefile commands to ${ICONV_CMD} at those ports.
Submitted by: bsam (me, via e-mail)
Approved by: portmgr (bapt)
Diffstat (limited to 'Mk')
-rw-r--r-- | Mk/Uses/iconv.mk | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/Mk/Uses/iconv.mk b/Mk/Uses/iconv.mk index f17ac11..60ee2f7 100644 --- a/Mk/Uses/iconv.mk +++ b/Mk/Uses/iconv.mk @@ -5,17 +5,25 @@ # MAINTAINER: portmgr@FreeBSD.org # # Feature: iconv -# Usage: USES=iconv -# Valid ARGS: does not require args +# Usage: USES=iconv or USES=iconv:ARGS +# Valid ARGS: lib (default, implicit), build, patch # # .if !defined(_INCLUDE_USES_ICONV_MK) _INCLUDE_USES_ICONV_MK= yes -.if defined(iconv_ARGS) -IGNORE= USES=iconv does not require args +ICONV_CMD= ${LOCALBASE}/bin/iconv + +.if !defined(iconv_ARGS) +iconv_ARGS= lib .endif +.if ${iconv_ARGS} == "lib" LIB_DEPENDS+= libiconv.so.3:${PORTSDIR}/converters/libiconv +.elif ${iconv_ARGS} == "build" +BUILD_DEPENDS+= ${ICONV_CMD}:${PORTSDIR}/converters/libiconv +.elif ${iconv_ARGS} == "patch" +PATCH_DEPENDS+= ${ICONV_CMD}:${PORTSDIR}/converters/libiconv +.endif .endif |