aboutsummaryrefslogtreecommitdiff
path: root/converters/libiconv
diff options
context:
space:
mode:
authorAlexander Nedotsukov <bland@FreeBSD.org>2007-10-10 13:29:42 +0000
committerAlexander Nedotsukov <bland@FreeBSD.org>2007-10-10 13:29:42 +0000
commit7be646eaae2951f0436ee798eec911375b7558eb (patch)
tree9a003895ba8d1f30aa5a7393ce1abfcfb899f801 /converters/libiconv
parentf4eaa5d10dcec45ed05f720eab131832a524fafb (diff)
downloadports-7be646eaae2951f0436ee798eec911375b7558eb.tar.gz
ports-7be646eaae2951f0436ee798eec911375b7558eb.zip
- Convert to OPTIONS.
- Pet portlint (spaces -> tab). PR: 117063
Notes
Notes: svn path=/head/; revision=201260
Diffstat (limited to 'converters/libiconv')
-rw-r--r--converters/libiconv/Makefile16
1 files changed, 7 insertions, 9 deletions
diff --git a/converters/libiconv/Makefile b/converters/libiconv/Makefile
index 9dddcb811093..f10d1ac4dfa6 100644
--- a/converters/libiconv/Makefile
+++ b/converters/libiconv/Makefile
@@ -26,11 +26,16 @@ USE_LDCONFIG= yes
MAN1= iconv.1
MAN3= iconv.3 iconv_open.3 iconv_close.3
+OPTIONS= EXTRA_ENCODINGS "Include extra character sets" on \
+ EXTRA_PATCHES "Apply patches to fix CP932, add EUCJP-MS" off
+
.ifdef USE_ICONV
.error USE_ICONV is defined as an environment variable, or in the arguments \
to "make". Please unset it and restart the build.
.endif
+.include <bsd.port.pre.mk>
+
.if !defined(WITHOUT_EXTRA_ENCODINGS)
CONFIGURE_ARGS+= --enable-extra-encodings
.endif
@@ -38,19 +43,12 @@ CONFIGURE_ARGS+= --enable-extra-encodings
.if defined(WITH_EXTRA_PATCHES)
PATCH_SITES+= http://www2d.biglobe.ne.jp/~msyk/software/libiconv/
PATCH_SITES+= ${MASTER_SITE_LOCAL}
-PATCH_SITE_SUBDIR= nork
+PATCH_SITE_SUBDIR= nork
PATCHFILES+= ${DISTNAME}-cp932.patch.gz
PATCH_DIST_STRIP+= -p1
.endif
-pre-everything::
- @${ECHO_MSG} ""
- @${ECHO_MSG} "libiconv has the following tunable option(s):"
- @${ECHO_MSG} " WITHOUT_EXTRA_ENCODINGS=yes Disable extra character sets"
- @${ECHO_MSG} " WITH_EXTRA_PATCHES=yes Apply extra patches (fixes cp932, adds EUCJP-MS)"
- @${ECHO_MSG} ""
-
post-patch:
@${REINPLACE_CMD} -e 's:ei_ksc5601:ei_euc_kr:g' ${WRKSRC}/lib/aliases.h
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>