blob: acacd416abd5c4b99a9e7ea61a453ce79d254425 (
plain) (
blame)
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
|
# New ports collection makefile for: xapian-bindings
# Date created: 2007-05-26
# Whom: Gea-Suan Lin <gslin@gslin.org>
#
# $FreeBSD$
#
PORTNAME= xapian-bindings
PORTVERSION= 1.0.18
PORTREVISION= 1
CATEGORIES= databases
MASTER_SITES= http://oligarchy.co.uk/xapian/${PORTVERSION}/
MAINTAINER= gslin@gslin.org
COMMENT= Bindings allowing Xapian to be used from various programming languages
RUN_DEPENDS= xapian-core>=1.0.18:${PORTSDIR}/databases/xapian-core
BUILD_DEPENDS:= ${RUN_DEPENDS}
BROKEN= does not build
CONFIGURE_ARGS+= --datarootdir="${DATADIR}" --docdir="${DOCSDIR}" \
--without-csharp --without-java --without-tcl
GNU_CONFIGURE= yes
.ifdef(WITHOUT_PHP)
CONFIGURE_ARGS+= --without-php
PLIST_SUB+= BINDING_PHP="@comment "
.else
CONFIGURE_ARGS+= --with-php
CONFIGURE_ENV+= PHP_CONFIG="${LOCALBASE}/bin/php-config"
PLIST_SUB+= BINDING_PHP=""
USE_PHP= yes
USE_PHP_BUILD= yes
.endif
.ifdef(WITHOUT_PYTHON)
CONFIGURE_ARGS+= --without-python
PLIST_SUB+= BINDING_PYTHON="@comment "
.else
CONFIGURE_ARGS+= --with-python
CONFIGURE_ENV+= PYTHON_LIB="${PYTHON_SITELIBDIR}"
PLIST_SUB+= BINDING_PYTHON=""
USE_PYTHON= yes
.endif
.ifdef(WITHOUT_RUBY)
CONFIGURE_ARGS+= --without-ruby
PLIST_SUB+= BINDING_RUBY="@comment "
.else
CONFIGURE_ARGS+= --with-ruby
USE_RUBY_RDOCS= no
PLIST_SUB+= BINDING_RUBY=""
USE_RUBY= yes
.endif
post-install:
.ifdef(NOPORTDOCS)
${RM} -fr ${DOCSDIR}
.endif
.ifndef(WITHOUT_RUBY)
${RM} -fr ${DOCSDIR}/ruby/rdocs
.endif
.include <bsd.port.mk>
|