aboutsummaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authorahze <ahze@FreeBSD.org>2006-12-08 21:16:35 +0800
committerahze <ahze@FreeBSD.org>2006-12-08 21:16:35 +0800
commitd96a1cc3a94ed3daedf61bed32a6502b1a8eba67 (patch)
tree36c05326641c9c9b3b96158f0b7e406e7717c6b5 /textproc
parentaefa6f9d6cd8b13e136a938896e8fe2c839841b4 (diff)
downloadfreebsd-ports-gnome-d96a1cc3a94ed3daedf61bed32a6502b1a8eba67.tar.gz
freebsd-ports-gnome-d96a1cc3a94ed3daedf61bed32a6502b1a8eba67.tar.zst
freebsd-ports-gnome-d96a1cc3a94ed3daedf61bed32a6502b1a8eba67.zip
- Add support for bzip2 and zlib
- Add optional support for lzo and mecab (WITH_LZO, WITH_MECAB) PR: ports/105592 ports/106467 Submitted by: Gea-Suan Lin <gslin@gslin.org> Jun MUKAI <mukai@jmuk.org>
Diffstat (limited to 'textproc')
-rw-r--r--textproc/hyperestraier/Makefile26
1 files changed, 22 insertions, 4 deletions
diff --git a/textproc/hyperestraier/Makefile b/textproc/hyperestraier/Makefile
index 78802619bc72..8a3bcb3512e9 100644
--- a/textproc/hyperestraier/Makefile
+++ b/textproc/hyperestraier/Makefile
@@ -7,6 +7,7 @@
PORTNAME= hyperestraier
PORTVERSION= 1.4.9
+PORTREVISION= 1
CATEGORIES= textproc
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -21,16 +22,33 @@ LIB_DEPENDS= qdbm.14:${PORTSDIR}/databases/qdbm
USE_ICONV= yes
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_ARGS= --enable-bzip2 --disable-zlib
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}"
-MAN1= estcall.1 estcmd.1 estconfig.1 estmaster.1 estwaver.1
-MAN3= estnode.3 estraier.3
+OPTIONS= LZO "Enable lzo support" off \
+ MECAB "Enable mecab support" off
+
+MAN1= estcall.1 estcmd.1 estconfig.1 estmaster.1 estwaver.1
+MAN3= estnode.3 estraier.3
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_LZO)
+CONFIGURE_ARGS+= --enable-lzo
+LIB_DEPENDS+= lzo2:${PORTSDIR}/archivers/lzo2
+.endif
+
+.if defined(WITH_MECAB)
+CONFIGURE_ARGS+= --enable-mecab
+LIB_DEPENDS+= mecab:${PORTSDIR}/japanese/mecab
+RUN_DEPENDS+= ${LOCALBASE}/lib/mecab/dic/ipadic/matrix.bin:${PORTSDIR}/japanese/mecab-ipadic
+.endif
post-patch:
@${REINPLACE_CMD} -e 's|@libdir@/pkgconfig|${PREFIX}/libdata/pkgconfig|' \
${WRKSRC}/Makefile.in
${RM} -f ${WRKSRC}/doc/intro-en.html~ ${WRKSRC}/doc/intro-ja.html~
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>