1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-25 00:51:21 +00:00
freebsd-ports/devel/m17n-db/Makefile
Baptiste Daroussin 32484fb733 Support stage
Add a NLS option
use options helpers
2014-01-29 07:59:11 +00:00

41 lines
1020 B
Makefile

# Created by: Kimura Fuyuki <fuyuki@hadaly.org>
# $FreeBSD$
PORTNAME= m17n-db
PORTVERSION= 1.6.4
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_SAVANNAH}:m17n \
${MASTER_SITE_GNU:S/$/:glibc/}
MASTER_SITE_SUBDIR= m17n/:m17n \
glibc/:glibc
DISTFILES= ${M17N_DISTFILE}:m17n \
${GLIBC_DISTFILE}:glibc
EXTRACT_ONLY= ${M17N_DISTFILE}
MAINTAINER= nikola.lecic@anthesphoria.net
COMMENT= Data files for the m17n library
OPTIONS_DEFINE= NLS
USES= gmake pathfix pkgconfig
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-charmaps=${CHARMAPSDIR}
OPTIONS_SUB= yes
NLS_USES= gettext
NLS_CONFIGURE_ENABLE= nls
M17N_DISTFILE= ${DISTNAME}${EXTRACT_SUFX}
GLIBC_VERSION= 2.3.6
GLIBC_DISTFILE= glibc-${GLIBC_VERSION}.tar.bz2
CHARMAPSDIR= glibc-${GLIBC_VERSION}/localedata/charmaps
post-extract:
cd ${WRKSRC}; ${TAR} xjf ${DISTDIR}/${GLIBC_DISTFILE} ${CHARMAPSDIR}
post-patch:
@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
's|$${datadir}/pkgconfig|$${prefix}/libdata/pkgconfig|g'
.include <bsd.port.mk>