aboutsummaryrefslogtreecommitdiff
path: root/archivers/unzip/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'archivers/unzip/Makefile')
-rw-r--r--archivers/unzip/Makefile10
1 files changed, 10 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