Thu Jan 23 05:59:14 2014 UTC ()
fixes wrong dependency path.


(obache)
diff -r1.6 -r1.7 pkgsrc/textproc/groonga/options.mk

cvs diff -r1.6 -r1.7 pkgsrc/textproc/groonga/options.mk (switch to unified diff)

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