| @@ -1,105 +1,105 @@ | | | @@ -1,105 +1,105 @@ |
1 | # $NetBSD: options.mk,v 1.6 2013/12/04 14:01:15 obache Exp $ | | 1 | # $NetBSD: options.mk,v 1.7 2014/01/23 05:59:14 obache Exp $ |
2 | # | | 2 | # |
3 | | | 3 | |
4 | PKG_OPTIONS_VAR= PKG_OPTIONS.groonga | | 4 | PKG_OPTIONS_VAR= PKG_OPTIONS.groonga |
5 | PKG_SUPPORTED_OPTIONS= mecab tests zlib lzo | | 5 | PKG_SUPPORTED_OPTIONS= mecab tests zlib lzo |
6 | PKG_SUPPORTED_OPTIONS+= groonga-suggest-learner groonga-httpd | | 6 | PKG_SUPPORTED_OPTIONS+= groonga-suggest-learner groonga-httpd |
7 | PKG_SUGGESTED_OPTIONS= mecab groonga-suggest-learner groonga-httpd | | 7 | PKG_SUGGESTED_OPTIONS= mecab groonga-suggest-learner groonga-httpd |
8 | | | 8 | |
9 | .include "../../mk/bsd.options.mk" | | 9 | .include "../../mk/bsd.options.mk" |
10 | | | 10 | |
11 | PLIST_VARS+= mecab learner httpd | | 11 | PLIST_VARS+= mecab learner httpd |
12 | | | 12 | |
13 | .if !empty(PKG_OPTIONS:Mmecab) | | 13 | .if !empty(PKG_OPTIONS:Mmecab) |
14 | CONFIGURE_ARGS+= --with-mecab | | 14 | CONFIGURE_ARGS+= --with-mecab |
15 | CONFIGURE_ARGS+= --with-mecab-config=${BUILDLINK_PREFIX.mecab}/bin/mecab-config | | 15 | CONFIGURE_ARGS+= --with-mecab-config=${BUILDLINK_PREFIX.mecab}/bin/mecab-config |
16 | .include "../../textproc/mecab/buildlink3.mk" | | 16 | .include "../../textproc/mecab/buildlink3.mk" |
17 | PLIST.mecab= yes | | 17 | PLIST.mecab= yes |
18 | .else | | 18 | .else |
19 | CONFIGURE_ARGS+= --without-mecab | | 19 | CONFIGURE_ARGS+= --without-mecab |
20 | .endif | | 20 | .endif |
21 | | | 21 | |
22 | .if !empty(PKG_OPTIONS:Mtests) | | 22 | .if !empty(PKG_OPTIONS:Mtests) |
23 | CONFIGURE_ARGS+= --with-cutter | | 23 | CONFIGURE_ARGS+= --with-cutter |
24 | USE_TOOLS+= gmake | | 24 | USE_TOOLS+= gmake |
25 | TEST_TARGET= check | | 25 | TEST_TARGET= check |
26 | TEST_ENV+= RUBYOPT="-Ku" | | 26 | TEST_ENV+= RUBYOPT="-Ku" |
27 | .include "../../lang/ruby/buildlink3.mk" | | 27 | .include "../../lang/ruby/buildlink3.mk" |
28 | BUILDLINK_API_DEPENDS.cutter+= cutter>=1.1.6 | | 28 | BUILDLINK_API_DEPENDS.cutter+= cutter>=1.1.6 |
29 | .include "../../devel/cutter/buildlink3.mk" | | 29 | .include "../../devel/cutter/buildlink3.mk" |
30 | # XXX: no way to add build dependency on json | | 30 | # XXX: no way to add build dependency on json |
31 | #RUBY_JSON_REQD= 1.8.0 | | 31 | #RUBY_JSON_REQD= 1.8.0 |
32 | #.include "../../lang/ruby/json.mk" | | 32 | #.include "../../lang/ruby/json.mk" |
33 | BUILD_DEPENDS+= ${RUBY_PKGPREFIX}-bundler-[0-9]*:../../misc/ruby-bundler | | 33 | BUILD_DEPENDS+= ${RUBY_PKGPREFIX}-bundler-[0-9]*:../../misc/ruby-bundler |
34 | BUILD_DEPENDS+= ${RUBY_PKGPREFIX}-msgpack>=0.5.6:../../devel/ruby-msgpack | | 34 | BUILD_DEPENDS+= ${RUBY_PKGPREFIX}-msgpack>=0.5.6:../../devel/ruby-msgpack |
35 | BUILD_DEPENDS+= ${RUBY_PKGPREFIX}-test-unit>=2.5.5:../../devel/ruby-msgpack | | 35 | BUILD_DEPENDS+= ${RUBY_PKGPREFIX}-test-unit>=2.5.5:../../devel/ruby-test-unit |
36 | BUILD_DEPENDS+= ${RUBY_PKGPREFIX}-test-unit-notify>=1.0.1:../../devel/ruby-test-unit-notify | | 36 | BUILD_DEPENDS+= ${RUBY_PKGPREFIX}-test-unit-notify>=1.0.1:../../devel/ruby-test-unit-notify |
37 | .else | | 37 | .else |
38 | CONFIGURE_ARGS+= --without-cutter | | 38 | CONFIGURE_ARGS+= --without-cutter |
39 | .endif | | 39 | .endif |
40 | | | 40 | |
41 | .if !empty(PKG_OPTIONS:Mzlib) | | 41 | .if !empty(PKG_OPTIONS:Mzlib) |
42 | CONFIGURE_ARGS+= --with-zlib | | 42 | CONFIGURE_ARGS+= --with-zlib |
43 | .include "../../devel/zlib/buildlink3.mk" | | 43 | .include "../../devel/zlib/buildlink3.mk" |
44 | .else | | 44 | .else |
45 | CONFIGURE_ARGS+= --without-zlib | | 45 | CONFIGURE_ARGS+= --without-zlib |
46 | .endif | | 46 | .endif |
47 | | | 47 | |
48 | .if !empty(PKG_OPTIONS:Mlzo) | | 48 | .if !empty(PKG_OPTIONS:Mlzo) |
49 | CONFIGURE_ARGS+= --with-lzo | | 49 | CONFIGURE_ARGS+= --with-lzo |
50 | .include "../../archivers/lzo/buildlink3.mk" | | 50 | .include "../../archivers/lzo/buildlink3.mk" |
51 | .else | | 51 | .else |
52 | CONFIGURE_ARGS+= --without-lzo | | 52 | CONFIGURE_ARGS+= --without-lzo |
53 | .endif | | 53 | .endif |
54 | | | 54 | |
55 | .if !empty(PKG_OPTIONS:Mgroonga-suggest-learner) | | 55 | .if !empty(PKG_OPTIONS:Mgroonga-suggest-learner) |
56 | .include "../../devel/libevent/buildlink3.mk" | | 56 | .include "../../devel/libevent/buildlink3.mk" |
57 | .include "../../devel/msgpack/buildlink3.mk" | | 57 | .include "../../devel/msgpack/buildlink3.mk" |
58 | .include "../../net/zeromq/buildlink3.mk" | | 58 | .include "../../net/zeromq/buildlink3.mk" |
59 | CONFIGURE_ARGS+= --with-libevent=${BUILDLINK_PREFIX.libevent} | | 59 | CONFIGURE_ARGS+= --with-libevent=${BUILDLINK_PREFIX.libevent} |
60 | CONFIGURE_ARGS+= --with-message-pack=${BUILDLINK_PREFIX.msgpack} | | 60 | CONFIGURE_ARGS+= --with-message-pack=${BUILDLINK_PREFIX.msgpack} |
61 | CONFIGURE_ARGS+= --enable-zeromq | | 61 | CONFIGURE_ARGS+= --enable-zeromq |
62 | PLIST.learner= yes | | 62 | PLIST.learner= yes |
63 | .else | | 63 | .else |
64 | CONFIGURE_ARGS+= --without-libevent | | 64 | CONFIGURE_ARGS+= --without-libevent |
65 | CONFIGURE_ARGS+= --without-message-pack | | 65 | CONFIGURE_ARGS+= --without-message-pack |
66 | CONFIGURE_ARGS+= --disable-zeromq | | 66 | CONFIGURE_ARGS+= --disable-zeromq |
67 | .endif | | 67 | .endif |
68 | | | 68 | |
69 | .if !empty(PKG_OPTIONS:Mgroonga-httpd) | | 69 | .if !empty(PKG_OPTIONS:Mgroonga-httpd) |
70 | .include "../../devel/pcre/buildlink3.mk" | | 70 | .include "../../devel/pcre/buildlink3.mk" |
71 | CONFIGURE_ARGS+= --enable-groonga-httpd | | 71 | CONFIGURE_ARGS+= --enable-groonga-httpd |
72 | PLIST.httpd= yes | | 72 | PLIST.httpd= yes |
73 | OWN_DIRS+= ${PKG_SYSCONFDIR}/httpd/html | | 73 | OWN_DIRS+= ${PKG_SYSCONFDIR}/httpd/html |
74 | OWN_DIRS+= ${PKG_SYSCONFDIR}/httpd | | 74 | OWN_DIRS+= ${PKG_SYSCONFDIR}/httpd |
75 | | | 75 | |
76 | CONF_FILES+= share/examples/${PKGBASE}/httpd/fastcgi.conf \ | | 76 | CONF_FILES+= share/examples/${PKGBASE}/httpd/fastcgi.conf \ |
77 | ${PKG_SYSCONFDIR}/httpd/fastcgi.conf | | 77 | ${PKG_SYSCONFDIR}/httpd/fastcgi.conf |
78 | CONF_FILES+= share/examples/${PKGBASE}/httpd/fastcgi_params \ | | 78 | CONF_FILES+= share/examples/${PKGBASE}/httpd/fastcgi_params \ |
79 | ${PKG_SYSCONFDIR}/httpd/fastcgi_params | | 79 | ${PKG_SYSCONFDIR}/httpd/fastcgi_params |
80 | CONF_FILES+= share/examples/${PKGBASE}/httpd/groonga-httpd.conf \ | | 80 | CONF_FILES+= share/examples/${PKGBASE}/httpd/groonga-httpd.conf \ |
81 | ${PKG_SYSCONFDIR}/httpd/groonga-httpd.conf | | 81 | ${PKG_SYSCONFDIR}/httpd/groonga-httpd.conf |
82 | CONF_FILES+= share/examples/${PKGBASE}/httpd/html/50x.html \ | | 82 | CONF_FILES+= share/examples/${PKGBASE}/httpd/html/50x.html \ |
83 | ${PKG_SYSCONFDIR}/httpd/html/50x.html | | 83 | ${PKG_SYSCONFDIR}/httpd/html/50x.html |
84 | CONF_FILES+= share/examples/${PKGBASE}/httpd/html/index.html \ | | 84 | CONF_FILES+= share/examples/${PKGBASE}/httpd/html/index.html \ |
85 | ${PKG_SYSCONFDIR}/httpd/html/index.html | | 85 | ${PKG_SYSCONFDIR}/httpd/html/index.html |
86 | CONF_FILES+= share/examples/${PKGBASE}/httpd/koi-utf \ | | 86 | CONF_FILES+= share/examples/${PKGBASE}/httpd/koi-utf \ |
87 | ${PKG_SYSCONFDIR}/httpd/koi-utf | | 87 | ${PKG_SYSCONFDIR}/httpd/koi-utf |
88 | CONF_FILES+= share/examples/${PKGBASE}/httpd/koi-win \ | | 88 | CONF_FILES+= share/examples/${PKGBASE}/httpd/koi-win \ |
89 | ${PKG_SYSCONFDIR}/httpd/koi-win | | 89 | ${PKG_SYSCONFDIR}/httpd/koi-win |
90 | CONF_FILES+= share/examples/${PKGBASE}/httpd/mime.types \ | | 90 | CONF_FILES+= share/examples/${PKGBASE}/httpd/mime.types \ |
91 | ${PKG_SYSCONFDIR}/httpd/mime.types | | 91 | ${PKG_SYSCONFDIR}/httpd/mime.types |
92 | CONF_FILES+= share/examples/${PKGBASE}/httpd/scgi_params \ | | 92 | CONF_FILES+= share/examples/${PKGBASE}/httpd/scgi_params \ |
93 | ${PKG_SYSCONFDIR}/httpd/scgi_params | | 93 | ${PKG_SYSCONFDIR}/httpd/scgi_params |
94 | CONF_FILES+= share/examples/${PKGBASE}/httpd/uwsgi_params \ | | 94 | CONF_FILES+= share/examples/${PKGBASE}/httpd/uwsgi_params \ |
95 | ${PKG_SYSCONFDIR}/httpd/uwsgi_params | | 95 | ${PKG_SYSCONFDIR}/httpd/uwsgi_params |
96 | CONF_FILES+= share/examples/${PKGBASE}/httpd/win-utf \ | | 96 | CONF_FILES+= share/examples/${PKGBASE}/httpd/win-utf \ |
97 | ${PKG_SYSCONFDIR}/httpd/win-utf | | 97 | ${PKG_SYSCONFDIR}/httpd/win-utf |
98 | | | 98 | |
99 | SUBST_CLASSES+= confpath | | 99 | SUBST_CLASSES+= confpath |
100 | SUBST_STAGE.confpath= post-configure | | 100 | SUBST_STAGE.confpath= post-configure |
101 | SUBST_FILES.confpath= vendor/nginx-1.4.4/objs/Makefile | | 101 | SUBST_FILES.confpath= vendor/nginx-1.4.4/objs/Makefile |
102 | SUBST_SED.confpath= -e 's,\$$(DESTDIR)${PKG_SYSCONFDIR}/httpd,\$$(DESTDIR)${PREFIX}/share/examples/${PKGBASE}/httpd,g' | | 102 | SUBST_SED.confpath= -e 's,\$$(DESTDIR)${PKG_SYSCONFDIR}/httpd,\$$(DESTDIR)${PREFIX}/share/examples/${PKGBASE}/httpd,g' |
103 | .else | | 103 | .else |
104 | CONFIGURE_ARGS+= --disable-groonga-httpd | | 104 | CONFIGURE_ARGS+= --disable-groonga-httpd |
105 | .endif | | 105 | .endif |