789d75c728
-Update libtool and libltdl to 2.2.6a. -Remove devel/libtool15 and devel/libltdl15. -Fix ports build with libtool22/libltdl22. -Bump ports that depend on libltdl22 due to shared library version change. -Explain what to do update in the UPDATING. It has been tested with GNOME2, XFCE4, KDE3, KDE4 and other many wm/desktop and applications in the runtime. With help: marcus and kwm Pointyhat-exp: a few times by pav Tested by: pgollucci, "Romain Tartière" <romain@blogreen.org>, and a few MarcusCom CVS users. Also, I might have missed a few. Repocopy by: marcus Approved by: portmgr
60 lines
1.3 KiB
Makefile
60 lines
1.3 KiB
Makefile
# New ports collection makefile for: mecab
|
|
# Date created: 2 April 2003
|
|
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= mecab
|
|
PORTVERSION= 0.97
|
|
CATEGORIES= japanese textproc
|
|
MASTER_SITES= SF
|
|
|
|
MAINTAINER= clsung@FreeBSD.org
|
|
COMMENT= Yet Another Part-of-Speech and Morphological Analyzer
|
|
|
|
USE_AUTOTOOLS= libtool:22
|
|
USE_ICONV= yes
|
|
USE_PERL5_BUILD= 5.8.0+
|
|
GNU_CONFIGURE= yes
|
|
USE_LDCONFIG= yes
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="${PTHREAD_CFLAGS} -I ${LOCALBASE}/include" \
|
|
LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib"
|
|
|
|
# Default charset (euc-jp/shift_jis/utf-8)
|
|
.if defined(WITH_CHARSET)
|
|
CONFIGURE_ARGS+= --with-charset=${WITH_CHARSET}
|
|
.endif
|
|
|
|
MAN1= mecab.1
|
|
|
|
DOCS= AUTHORS README doc/*.html
|
|
|
|
.include <bsd.port.pre.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 !defined(NOPORTDOCS)
|
|
${MKDIR} ${DOCSDIR}
|
|
.for f in ${DOCS}
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/
|
|
.endfor
|
|
.endif
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.post.mk>
|