summaryrefslogtreecommitdiffstats
path: root/converters/libiconv
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2002-05-23 05:57:20 +0000
committermarcus <marcus@FreeBSD.org>2002-05-23 05:57:20 +0000
commit7a5bc82175b9585ef6adf669cee7407926fd7c6d (patch)
tree96e8594d1ce4a0c24b80fae2cb1fa61758695bd3 /converters/libiconv
parent56435a0503963400ac02e9d290fe862d6ca63499 (diff)
downloadFreeBSD-ports-7a5bc82175b9585ef6adf669cee7407926fd7c6d.zip
FreeBSD-ports-7a5bc82175b9585ef6adf669cee7407926fd7c6d.tar.gz
* Add support for Korean real-world locales
* Allow libiconv to be built on FreeBSD < 4.3 * Bump PORTREVISION PR: 37271 Submitted by: Hye-Shik Chang <perky@fallin.lv> (Korean locale patch) me (build fix) Reviewed by: sobomax (build fix)
Diffstat (limited to 'converters/libiconv')
-rw-r--r--converters/libiconv/Makefile15
-rw-r--r--converters/libiconv/files/patch-lib_aliases.gperf23
2 files changed, 33 insertions, 5 deletions
diff --git a/converters/libiconv/Makefile b/converters/libiconv/Makefile
index 24764c8..541c571 100644
--- a/converters/libiconv/Makefile
+++ b/converters/libiconv/Makefile
@@ -7,7 +7,7 @@
PORTNAME= libiconv
PORTVERSION= 1.7
-PORTREVISION= 4
+PORTREVISION= 5
CATEGORIES= converters devel
MASTER_SITES= ${MASTER_SITE_GNU} \
ftp://ftp.ilog.fr/pub/Users/haible/gnu/
@@ -23,7 +23,16 @@ INSTALLS_SHLIB= yes
MAN1= iconv.1
MAN3= iconv.3 iconv_open.3 iconv_close.3
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 430000
+BUILD_DEPENDS= ${LOCALBASE}/bin/gperf:${PORTSDIR}/gperf
+GPERF= ${LOCALBASE}/bin/gperf
+.else
+GPERF= /usr/bin/gperf
+.endif
+
pre-build:
- @cd ${WRKSRC} ; /usr/bin/gperf -t -L ANSI-C -H aliases_hash -N aliases_lookup -7 -C -k '1,3-11,$$' -i 1 lib/aliases.gperf > lib/aliases.h
+ @cd ${WRKSRC} ; ${GPERF} -t -L ANSI-C -H aliases_hash -N aliases_lookup -7 -C -k '1,3-11,$$' -i 1 lib/aliases.gperf > lib/aliases.h
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/converters/libiconv/files/patch-lib_aliases.gperf b/converters/libiconv/files/patch-lib_aliases.gperf
index 25b8d6c..25f88e6 100644
--- a/converters/libiconv/files/patch-lib_aliases.gperf
+++ b/converters/libiconv/files/patch-lib_aliases.gperf
@@ -1,5 +1,5 @@
---- lib/aliases.gperf.orig Mon Jun 25 08:39:41 2001
-+++ lib/aliases.gperf Mon Apr 29 11:23:40 2002
+--- lib/aliases.gperf.orig Mon Jun 25 21:39:41 2001
++++ lib/aliases.gperf Sun May 19 21:08:32 2002
@@ -42,6 +42,7 @@
JAVA, ei_java
ISO-8859-1, ei_iso8859_1
@@ -105,3 +105,22 @@
ISO_8859-16:2000, ei_iso8859_16
ISO-IR-226, ei_iso8859_16
KOI8-R, ei_koi8_r
+@@ -251,12 +265,12 @@
+ CHINESE, ei_gb2312
+ ISO-IR-165, ei_isoir165
+ CN-GB-ISOIR165, ei_isoir165
+-KSC_5601, ei_ksc5601
+-KS_C_5601-1987, ei_ksc5601
+-KS_C_5601-1989, ei_ksc5601
+-ISO-IR-149, ei_ksc5601
+-CSKSC56011987, ei_ksc5601
+-KOREAN, ei_ksc5601
++KSC_5601, ei_euc_kr
++KS_C_5601-1987, ei_euc_kr
++KS_C_5601-1989, ei_euc_kr
++ISO-IR-149, ei_euc_kr
++CSKSC56011987, ei_euc_kr
++KOREAN, ei_euc_kr
+ EUC-JP, ei_euc_jp
+ EUCJP, ei_euc_jp
+ EXTENDED_UNIX_CODE_PACKED_FORMAT_FOR_JAPANESE, ei_euc_jp
OpenPOWER on IntegriCloud