PORTNAME=	iconv
PORTVERSION=	2.0
PORTREVISION=	7
CATEGORIES=	converters
MASTER_SITES=	LOCAL/bland

MAINTAINER=	bofh@FreeBSD.org
COMMENT=	Charset conversion library and utilities

LICENSE=	BSD3CLAUSE
LICENSE_FILE=	${WRKSRC}/COPYING

USES=		shebangfix perl5 uidfix
USE_LDCONFIG=	yes
USE_PERL5=	build
SHEBANG_FILES=	iconv_builtin ccs/iconv_mktbl

OPTIONS_DEFINE=	CCSUTIL
OPTIONS_DEFAULT=CCSUTIL

OPTIONS_SUB=	yes

CCSUTIL_DESC=	Install Coded character set (CCS) util

CCSUTIL_USE=	PERL5=run
CCSUTIL_EXTRA_PATCHES_OFF=	${FILESDIR}/extra-patch-ccs_Makefile

.include <bsd.port.pre.mk>

.if defined(NO_PROFILE) || ${OSVERSION} > 1400001
PLIST_SUB+=	PROFILE="@comment "
.else
PLIST_SUB+=	PROFILE=""
.endif

.include <bsd.port.post.mk>
