- Chase SHLIB in qdbm
- Disable mecab support by default and only use on >5.x
This commit is contained in:
parent
910274d654
commit
2c323ff2f3
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=123432
2 changed files with 14 additions and 8 deletions
|
@ -7,6 +7,7 @@
|
|||
|
||||
PORTNAME= estraier
|
||||
PORTVERSION= 1.2.25
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= japanese textproc
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
MASTER_SITE_SUBDIR= ${PORTNAME}
|
||||
|
@ -14,7 +15,7 @@ MASTER_SITE_SUBDIR= ${PORTNAME}
|
|||
MAINTAINER= ahze@FreeBSD.org
|
||||
COMMENT= A full-text search system for personal use
|
||||
|
||||
LIB_DEPENDS= qdbm.3:${PORTSDIR}/databases/qdbm
|
||||
LIB_DEPENDS= qdbm.4:${PORTSDIR}/databases/qdbm
|
||||
|
||||
USE_ICONV= yes
|
||||
|
||||
|
@ -25,11 +26,11 @@ CONFIGURE_ARGS= --with-sysqdbm \
|
|||
--enable-dlfilter \
|
||||
--enable-devel
|
||||
|
||||
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
||||
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
|
||||
LDFLAGS="-L${LOCALBASE}/include ${PTHREAD_LIBS}"
|
||||
|
||||
OPTIONS= CHASEN "Japanese Morphological Analysis Support" On \
|
||||
MECAB "Part-of-Speech and Morphological Analyzer" On \
|
||||
MECAB "Part-of-Speech and Morphological Analyzer" Off \
|
||||
KAKASI "Language processing filter/converter" On
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
@ -40,11 +41,13 @@ LIB_DEPENDS+= chasen.0:${PORTSDIR}/japanese/chasen-base
|
|||
CONFIGURE_ARGS+= --enable-chasen
|
||||
.endif
|
||||
|
||||
.if ${ARCH} == i386 && !defined(WITHOUT_MECAB)
|
||||
.if ${OSVERSION} > 500000
|
||||
.if ${ARCH} == i386 && defined(WITH_MECAB)
|
||||
LIB_DEPENDS+= mecab.0:${PORTSDIR}/japanese/mecab
|
||||
|
||||
CONFIGURE_ARGS+= --enable-mecab
|
||||
.endif
|
||||
.endif
|
||||
|
||||
.if !defined(WITHOUT_KAKASI)
|
||||
LIB_DEPENDS+= kakasi.3:${PORTSDIR}/japanese/kakasi
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
|
||||
PORTNAME= estraier
|
||||
PORTVERSION= 1.2.25
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= japanese textproc
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
MASTER_SITE_SUBDIR= ${PORTNAME}
|
||||
|
@ -14,7 +15,7 @@ MASTER_SITE_SUBDIR= ${PORTNAME}
|
|||
MAINTAINER= ahze@FreeBSD.org
|
||||
COMMENT= A full-text search system for personal use
|
||||
|
||||
LIB_DEPENDS= qdbm.3:${PORTSDIR}/databases/qdbm
|
||||
LIB_DEPENDS= qdbm.4:${PORTSDIR}/databases/qdbm
|
||||
|
||||
USE_ICONV= yes
|
||||
|
||||
|
@ -25,11 +26,11 @@ CONFIGURE_ARGS= --with-sysqdbm \
|
|||
--enable-dlfilter \
|
||||
--enable-devel
|
||||
|
||||
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
||||
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
|
||||
LDFLAGS="-L${LOCALBASE}/include ${PTHREAD_LIBS}"
|
||||
|
||||
OPTIONS= CHASEN "Japanese Morphological Analysis Support" On \
|
||||
MECAB "Part-of-Speech and Morphological Analyzer" On \
|
||||
MECAB "Part-of-Speech and Morphological Analyzer" Off \
|
||||
KAKASI "Language processing filter/converter" On
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
@ -40,11 +41,13 @@ LIB_DEPENDS+= chasen.0:${PORTSDIR}/japanese/chasen-base
|
|||
CONFIGURE_ARGS+= --enable-chasen
|
||||
.endif
|
||||
|
||||
.if ${ARCH} == i386 && !defined(WITHOUT_MECAB)
|
||||
.if ${OSVERSION} > 500000
|
||||
.if ${ARCH} == i386 && defined(WITH_MECAB)
|
||||
LIB_DEPENDS+= mecab.0:${PORTSDIR}/japanese/mecab
|
||||
|
||||
CONFIGURE_ARGS+= --enable-mecab
|
||||
.endif
|
||||
.endif
|
||||
|
||||
.if !defined(WITHOUT_KAKASI)
|
||||
LIB_DEPENDS+= kakasi.3:${PORTSDIR}/japanese/kakasi
|
||||
|
|
Loading…
Reference in a new issue