From 53fa631ae3eac3d82a40402f2af72eb7eb2ab37b Mon Sep 17 00:00:00 2001 From: Alexander Nedotsukov Date: Tue, 27 Jul 2004 03:28:14 +0000 Subject: [PATCH] Add knob WITH_EXTRA_PATCHES which brings in: - Fixes for cp932 roundtrip issue (Microsoft KB: Q170559). - EUCJP-MS encoding. - A number of aliases for cp932 and EUCJP-MS encodings. Requested by: NAKAJI Hiroyuki Patches by: MORIYAMA Masayuki --- converters/libiconv/Makefile | 8 ++++++++ converters/libiconv/distinfo | 2 ++ 2 files changed, 10 insertions(+) diff --git a/converters/libiconv/Makefile b/converters/libiconv/Makefile index 4fd15c2ca627..624fd55b54ef 100644 --- a/converters/libiconv/Makefile +++ b/converters/libiconv/Makefile @@ -7,6 +7,7 @@ PORTNAME= libiconv PORTVERSION= 1.9.2 +PORTREVISION= 1 CATEGORIES= converters devel MASTER_SITES= ${MASTER_SITE_GNU} MASTER_SITE_SUBDIR= ${PORTNAME} @@ -34,10 +35,17 @@ MAN3= iconv.3 iconv_open.3 iconv_close.3 CONFIGURE_ARGS+= --enable-extra-encodings .endif +.if defined(WITH_EXTRA_PATCHES) +PATCH_SITES+= http://www2d.biglobe.ne.jp/~msyk/software/libiconv/ +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: diff --git a/converters/libiconv/distinfo b/converters/libiconv/distinfo index 6ce76e6b7da4..93ce2db969bf 100644 --- a/converters/libiconv/distinfo +++ b/converters/libiconv/distinfo @@ -1,2 +1,4 @@ MD5 (libiconv-1.9.2.tar.gz) = 6bc300365053c815b10b800a21e0bc7e SIZE (libiconv-1.9.2.tar.gz) = 3919945 +MD5 (libiconv-1.9.2-cp932.patch.gz) = e792be53c6feb6b41cd386e6feb725c9 +SIZE (libiconv-1.9.2-cp932.patch.gz) = 106981