freebsd-ports/japanese/mecab/Makefile
Marcus von Appen a3a0715f38 - Convert USE_ICONV=yes to USES=iconv
- Change USE_GNOME=pkgconfig|gnomehack to USES=pathfix|pkgconfig while here

Reviewed by:	zeising
2013-04-27 11:59:28 +00:00

59 lines
1.3 KiB
Makefile

# Created by: Akinori MUSHA aka knu <knu@idaemons.org>
# $FreeBSD$
PORTNAME= mecab
PORTVERSION= 0.995
CATEGORIES= japanese textproc
MASTER_SITES= GOOGLE_CODE
MAINTAINER= clsung@FreeBSD.org
COMMENT= Yet Another Part-of-Speech and Morphological Analyzer
LICENSE= BSD GPLv2 LGPL21
LICENSE_COMB= dual
LICENSE_FILE_BSD= ${WRKSRC}/BSD
LICENSE_FILE_GPLv2= ${WRKSRC}/GPL
LICENSE_FILE_LGPL21= ${WRKSRC}/LGPL
USE_AUTOTOOLS= libtool
USES= iconv
USE_PERL5_BUILD= yes
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
CPPFLAGS+= ${PTHREAD_CFLAGS} -I ${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
MAN1= mecab.1
PORTDOCS= AUTHORS README *.html
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
post-patch:
${REINPLACE_CMD} -e 's/-lpthread/${PTHREAD_LIBS}/g' \
-e 's/-O3/${CFLAGS}/' ${WRKSRC}/${CONFIGURE_SCRIPT}
${REINPLACE_CMD} -e 's/conf_DATA = mecabrc/conf_DATA = mecabrc.dist/' ${WRKSRC}/Makefile.in
post-configure:
${CP} ${WRKSRC}/mecabrc ${WRKSRC}/mecabrc.dist
pre-install:
${CHMOD} a+x ${WRKSRC}/install-sh
post-install:
@if [ ! -f ${PREFIX}/etc/mecabrc ]; then \
${INSTALL_DATA} ${PREFIX}/etc/mecabrc.dist ${PREFIX}/etc/mecabrc; \
fi
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
.for f in ${PORTDOCS:N*.html}
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/
.endfor
${INSTALL_DATA} ${WRKSRC}/doc/*.html ${DOCSDIR}/
.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>