# Created by: Serge Gagnon <gagnon__s@videotron.ca>
# $FreeBSD$

PORTNAME=	libutf
PORTVERSION=	2.10
PORTREVISION=	3
CATEGORIES=	misc
MASTER_SITES=	ftp://ftp.cs.yorku.ca/pub/wily/misc/ \
		http://www.westley.demon.co.uk/src/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	UTF-8 character set support library, including regular expressions

LICENSE=	BSD4CLAUSE

GNU_CONFIGURE=	yes
MAKE_ARGS=	ETCDIR="${DATADIR}"
ALL_TARGET=	tst

PLIST_FILES=	include/ure.h include/utf.h lib/libutf.a \
		man/man3/ure.3.gz man/man3/utf.3.gz %%DATADIR%%/langcoll.utf

do-install:
	${INSTALL_DATA} ${WRKSRC}/ure.h ${STAGEDIR}${PREFIX}/include
	${INSTALL_DATA} ${WRKSRC}/utf.h ${STAGEDIR}${PREFIX}/include
	${INSTALL_DATA} ${WRKSRC}/libutf.a ${STAGEDIR}${PREFIX}/lib
	${INSTALL_MAN} ${WRKSRC}/utf.3 ${STAGEDIR}${MAN3PREFIX}/man/man3
	${INSTALL_MAN} ${WRKSRC}/ure.3 ${STAGEDIR}${MAN3PREFIX}/man/man3
	@${MKDIR} ${STAGEDIR}${DATADIR}
	${INSTALL_DATA} ${WRKSRC}/langcoll.utf ${STAGEDIR}${DATADIR}

.include <bsd.port.mk>