diff options
author | arved <arved@FreeBSD.org> | 2012-06-11 13:41:08 +0800 |
---|---|---|
committer | arved <arved@FreeBSD.org> | 2012-06-11 13:41:08 +0800 |
commit | 6d31c15777b8844a813887837f7216e649d93493 (patch) | |
tree | 040322b35afc73b1002f935a06fdf0c5bfc25f7c /textproc | |
parent | b1679478210de76a7d57257e84f54f50d8f5f80d (diff) | |
download | freebsd-ports-gnome-6d31c15777b8844a813887837f7216e649d93493.tar.gz freebsd-ports-gnome-6d31c15777b8844a813887837f7216e649d93493.tar.zst freebsd-ports-gnome-6d31c15777b8844a813887837f7216e649d93493.zip |
convert to new options framework
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/estraier/Makefile | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/textproc/estraier/Makefile b/textproc/estraier/Makefile index e43d6cf3202e..af2227ac8ff9 100644 --- a/textproc/estraier/Makefile +++ b/textproc/estraier/Makefile @@ -16,9 +16,11 @@ COMMENT= A full-text search system for personal use LIB_DEPENDS= qdbm.14:${PORTSDIR}/databases/qdbm -OPTIONS= CHASEN "Japanese Morphological Analysis Support" Off \ - MECAB "Part-of-Speech and Morphological Analyzer" Off \ - KAKASI "Language processing filter/converter" On +OPTIONS_DEFINE= CHASEN MECAB KAKASI +OPTIONS_DEFAULT= KAKASI +CHASEN_DESC= Japanese Morphological Analysis Support +MECAB_DESC= Part-of-Speech and Morphological Analyzer +KAKASI_DESC= Language processing filter/converter USE_ICONV= yes GNU_CONFIGURE= yes @@ -30,17 +32,17 @@ LDFLAGS+= -L${LOCALBASE}/include ${PTHREAD_LIBS} .include <bsd.port.pre.mk> -.if defined(WITH_CHASEN) +.if ${PORT_OPTIONS:MCHASEN} LIB_DEPENDS+= chasen.2:${PORTSDIR}/japanese/chasen-base CONFIGURE_ARGS+= --enable-chasen .endif -.if defined(WITH_MECAB) && ${ARCH} == "i386" +.if ${PORT_OPTIONS:MMECAB} && ${ARCH} == "i386" LIB_DEPENDS+= mecab.1:${PORTSDIR}/japanese/mecab CONFIGURE_ARGS+= --enable-mecab .endif -.if !defined(WITHOUT_KAKASI) +.if ${PORT_OPTIONS:MKAKASI} LIB_DEPENDS+= kakasi.3:${PORTSDIR}/japanese/kakasi CONFIGURE_ARGS+= --enable-kakasi .endif |