-
Notifications
You must be signed in to change notification settings - Fork 114
/
Makefile
executable file
·74 lines (54 loc) · 1.55 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
COMMENT-main= perl bindings for Xapian
COMMENT-python= python bindings for Xapian
COMMENT-ruby= ruby bindings for Xapian
V= 1.4.25
DISTNAME= xapian-bindings-${V}
PKGNAME-main= xapian-bindings-perl-${V}
PKGNAME-python= xapian-bindings-python-${V}
PKGNAME-ruby= ruby${MODRUBY_BINREV}-xapian-${V}
REVISION-main= 0
REVISION-python=0
REVISION-ruby= 0
CATEGORIES= databases textproc
HOMEPAGE= https://xapian.org/
# GPLv2
PERMIT_PACKAGE= Yes
WANTLIB += ${COMPILER_LIBCXX} m z xapian
WANTLIB-main = ${WANTLIB} c perl
SITES= https://oligarchy.co.uk/xapian/${V}/
EXTRACT_SUFX= .tar.xz
# -std=gnu++11
COMPILER= base-clang ports-gcc
# base libtool doesn't support -shrext
USE_LIBTOOL= gnu
LIB_DEPENDS= databases/xapian-core
BUILD_DEPENDS= textproc/py-sphinx${MODPY_FLAVOR}
MODULES= lang/python \
lang/ruby
MULTI_PACKAGES= -main -python -ruby
MODRUBY_RUNDEP= No
MODPY_RUNDEP= No
RUN_DEPENDS-python= ${MODPY_RUN_DEPENDS}
RUN_DEPENDS-ruby= ${MODRUBY_RUN_DEPENDS}
SUBST_VARS+= MODRUBY_BINREV
CONFIGURE_STYLE= autoconf
AUTOCONF_VERSION= 2.71
CONFIGURE_ENV= RUBY="${RUBY}" RDOC="${RUBY:S/ruby/rdoc/}"
CONFIGURE_ARGS= --with-perl \
--with-python3 \
--with-ruby \
--without-php \
--without-tcl \
--without-csharp \
--without-java \
--without-lua
pre-configure:
sed -i 's/\(rb_funcall(.*, 0\), NULL);/\1);/' \
${WRKSRC}/ruby/xapian_wrap.cc
post-install:
mv ${PREFIX}/share/doc/xapian-bindings/ruby{,${MODRUBY_BINREV}}
.include <bsd.port.arch.mk>
.if ${PROPERTIES:Mclang}
CONFIGURE_ENV += CXXFLAGS="${CXXFLAGS} -fdeclspec"
.endif
.include <bsd.port.mk>