aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--archivers/unzip/Makefile10
-rw-r--r--archivers/unzip/distinfo3
2 files changed, 13 insertions, 0 deletions
diff --git a/archivers/unzip/Makefile b/archivers/unzip/Makefile
index 5ef946c432c1..38dee5290920 100644
--- a/archivers/unzip/Makefile
+++ b/archivers/unzip/Makefile
@@ -36,6 +36,16 @@ EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
LOCAL_UNZIP+= -DUSE_SMITH_CODE
.endif
+.if defined(WITH_ICONV)
+PATCH_SITES= ${MASTER_SITE_LOCAL}
+PATCH_SITE_SUBDIR= nork
+PATCHFILES= unzip60-alt-iconv-utf8.patch
+PATCH_DIST_STRIP= -p1
+USE_ICONV= yes
+CFLAGS+= -I${LOCALBASE}/include -DNATIVE
+MAKE_ARGS+= LFLAGS1="-L${LOCALBASE}/lib -liconv"
+.endif
+
MAKE_ENV= LOCAL_UNZIP="${LOCAL_UNZIP}" \
D_USE_BZ2=-DUSE_BZIP2 L_BZ2=-lbz2
diff --git a/archivers/unzip/distinfo b/archivers/unzip/distinfo
index 214d9a5d1354..3d7e8db53b5a 100644
--- a/archivers/unzip/distinfo
+++ b/archivers/unzip/distinfo
@@ -4,3 +4,6 @@ SIZE (unzip60.tar.gz) = 1376845
MD5 (unreduce_full.zip) = b7cde206d69b403e7551b9b0c25bd345
SHA256 (unreduce_full.zip) = 1f4d93d2250dc1a1d1d2b8aac09d9989d4f9dd2cb0967373bf41fdf5f108cec1
SIZE (unreduce_full.zip) = 2849
+MD5 (unzip60-alt-iconv-utf8.patch) = 4dcfb2084e9db5a3f411f470d92ab2a4
+SHA256 (unzip60-alt-iconv-utf8.patch) = 6abf9d5e538b948ddb43f11000162348ce46ac0fa93826e6c8edae4ffa488f00
+SIZE (unzip60-alt-iconv-utf8.patch) = 13369