freebsd-ports/dns/idnkit2/Makefile
Guido Falsi 642be1b81d - Make ports use the libc provided iconv implementation on 10-CURRENT
after r254273
- Fix a bunch of ports to properly work after this
- Mark converters/libiconv as IGNORE for systems with iconv in libc

Reviewed by:	bapt
Approved by:	portmgr (bapt)
Discussed with:	bapt, bsam (who both contributed ideas and code)
2013-09-04 18:06:07 +00:00

47 lines
1.2 KiB
Makefile

# Created by: Rafal Lesniak <fbsd@grid.einherjar.de>
# $FreeBSD$
PORTNAME= idnkit
PORTVERSION= 2.2
CATEGORIES= dns
MASTER_SITES= http://jprs.co.jp/idn/
MAINTAINER= fbsd@grid.einherjar.de
COMMENT= Internationalized Domain Name toolkit 2
LICENSE_PERMS= # permissive
LICENSE_NAME= OSCL
LICENSE_FILE= LICENSE.txt
LATEST_LINK= ${PORTNAME}${PORTVERSION:R}
CONFLICTS_INSTALL= idnkit-1.*
USE_AUTOTOOLS= libtool
USES= iconv
USE_BZIP2= yes
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
MAN1= idncheck.1 idncmp.1 idnconv2.1
MAN3= idn_checkname.3 idn_comparenames.3 idn_comparenames2.3 \
idn_decodename.3 idn_decodename2.3 idn_encodename.3 idn_nameinit.3 \
idn_result_tostring.3 idn_setlanguage.3 idn_setlocalcheckfile.3 \
idn_setlocalencoding.3 idn_version_getstring.3 idn_version_idnatable.3 \
idn_version_libidn.3 idn_version_unicode.3 libidnkit.3 libidnkitlite.3
MAN5= idn2.conf.5 idn2rc.5 idnalias.conf.5 idnlang.conf.5
MANCOMPRESSED= no
.include <bsd.port.pre.mk>
.if empty(ICONV_LIB)
CONFIGURE_ARGS= --with-libiconv=/usr
.else
CONFIGURE_ARGS= --with-libiconv=${LOCALBASE}
.endif
post-patch:
@${REINPLACE_CMD} -e 's|-liconv|${ICONV_LIB}|' \
${WRKSRC}/configure
.include <bsd.port.post.mk>