1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00
freebsd-ports/converters/libiconv/Makefile
Tijl Coosemans 96557119e2 - Remove indefinite article from COMMENT.
- Enable -fvisibility=hidden.
- Add USE_CSTD=gnu89 to fix compilation with -O0 and -Oz.
- Add DOCS option.

PR:		ports/186846
Approved by:	kwm, marcus
2014-03-23 13:26:20 +00:00

49 lines
1.2 KiB
Makefile

# Created by: Maxim Sobolev <sobomax@FreeBSD.org>
# $FreeBSD$
PORTNAME= libiconv
PORTVERSION= 1.14
PORTREVISION= 3
CATEGORIES= converters devel
MASTER_SITES= GNU
MAINTAINER= gnome@FreeBSD.org
COMMENT= Character set conversion library
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-static \
--without-libintl-prefix \
--docdir=${DOCSDIR}
CONFIGURE_ENV= am_cv_func_iconv="yes" \
am_cv_proto_iconv_arg1="const"
MAKE_JOBS_UNSAFE= yes
USE_CSTD= gnu89
USE_LDCONFIG= yes
OPTIONS_DEFINE= DOCS ENCODINGS PATCHES
OPTIONS_DEFAULT=ENCODINGS
ENCODINGS_DESC= Include extra character sets
PATCHES_DESC= Apply patches to fix CP932, add EUCJP-MS
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MENCODINGS}
CONFIGURE_ARGS+= --enable-extra-encodings
.endif
.if ${PORT_OPTIONS:MPATCHES}
PATCH_SITES+= http://apolloron.org/software/libiconv-1.14-ja/
PATCH_SITES+= ${MASTER_SITE_LOCAL}
PATCH_SITE_SUBDIR+= kwm
PATCHFILES+= ${DISTNAME}-ja-1.patch.gz
PATCH_DIST_STRIP+= -p1
.endif
post-patch:
@${REINPLACE_CMD} -e 's:ei_ksc5601:ei_euc_kr:g' ${WRKSRC}/lib/aliases.h
@${REINPLACE_CMD} -e 's:gawk:awk:g' ${WRKSRC}/configure \
${WRKSRC}/libcharset/configure \
${WRKSRC}/preload/configure
.include <bsd.port.mk>