# Created by: Kimura Fuyuki # $FreeBSD$ PORTNAME= m17n-db PORTVERSION= 1.6.5 CATEGORIES= devel textproc 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 M17N_DATADIR= ${PREFIX}/share/m17n 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' @${REINPLACE_CMD} -E 's|(m17n_scriptdir = ).*|\1${PREFIX}/bin|' \ ${WRKSRC}/Makefile.in post-install: @${MKDIR} ${STAGEDIR}${M17N_DATADIR}/icons @${MV} ${STAGEDIR}${M17N_DATADIR}/*.png ${STAGEDIR}${M17N_DATADIR}/icons/ .include