aboutsummaryrefslogtreecommitdiffstats
path: root/converters/libiconv
diff options
context:
space:
mode:
authormat <mat@FreeBSD.org>2015-08-19 21:29:59 +0800
committermat <mat@FreeBSD.org>2015-08-19 21:29:59 +0800
commit9d30f78a00bed11384c7259f662e9352754275db (patch)
treeac5a462edc3d85d5f0b20a594802ce4b12f0bf9f /converters/libiconv
parent996088dedaf9d22bcd7c90caa96d33c0f68b08e7 (diff)
downloadfreebsd-ports-gnome-9d30f78a00bed11384c7259f662e9352754275db.tar.gz
freebsd-ports-gnome-9d30f78a00bed11384c7259f662e9352754275db.tar.zst
freebsd-ports-gnome-9d30f78a00bed11384c7259f662e9352754275db.zip
Convert ports to use the options helpers in categories [abc]*, and minor fixes.
Sponsored by: Absolight Differential Revision: https://reviews.freebsd.org/D3412?
Diffstat (limited to 'converters/libiconv')
-rw-r--r--converters/libiconv/Makefile17
1 files changed, 5 insertions, 12 deletions
diff --git a/converters/libiconv/Makefile b/converters/libiconv/Makefile
index b23318638e55..ac6c4baf32c4 100644
--- a/converters/libiconv/Makefile
+++ b/converters/libiconv/Makefile
@@ -26,18 +26,11 @@ OPTIONS_DEFAULT=ENCODINGS
ENCODINGS_DESC= Include extra character sets
PATCHES_DESC= Apply patches to fix CP932, add EUCJP-MS
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MENCODINGS}
-CONFIGURE_ARGS+= --enable-extra-encodings
-.endif
-
-.if ${PORT_OPTIONS:MPATCHES}
-PATCH_SITES+= http://apolloron.org/software/libiconv-1.14-ja/
-PATCH_SITES+= LOCAL/kwm
-PATCHFILES+= ${DISTNAME}-ja-1.patch.gz
-PATCH_DIST_STRIP+= -p1
-.endif
+ENCODINGS_CONFIGURE_ENABLE= extra-encodings
+
+PATCHES_PATCH_SITES= http://apolloron.org/software/libiconv-1.14-ja/ \
+ LOCAL/kwm
+PATCHES_PATCHFILES= ${DISTNAME}-ja-1.patch.gz:-p1
post-patch:
@${REINPLACE_CMD} -e 's:ei_ksc5601:ei_euc_kr:g' ${WRKSRC}/lib/aliases.h