blob: adf417d1fc0635ed79f7d0eb68d4c0e18d8d81f0 (
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
|
# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
# $FreeBSD$
PORTNAME= xapian
PORTVERSION= 1.4.5
DISTVERSIONPREFIX= bindings-
CATEGORIES= databases
MASTER_SITES= http://oligarchy.co.uk/xapian/${PORTVERSION}/ \
LOCAL/sunpoet
PKGNAMEPREFIX= php-
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= PHP binding for Xapian
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= xapian-core>=${PORTVERSION}:databases/xapian-core
LIB_DEPENDS= libxapian.so:databases/xapian-core
CONFLICTS_INSTALL= xapian-bindings12
OPTIONS_DEFINE= DOCS
PORTSCOUT= limitw:1,even
CONFIGURE_ARGS= --datarootdir=${DATADIR} --docdir=${DOCSDIR} \
--enable-static \
--with-php \
--without-csharp --without-java --without-lua --without-perl \
--without-python --without-python3 --without-ruby --without-tcl
CONFIGURE_ENV= PHP_CONFIG=${LOCALBASE}/bin/php-config
GNU_CONFIGURE= yes
INSTALL_TARGET= install-strip
USES= libtool php:build tar:xz
PLIST_SUB= PHP_EXT_DIR=${PHP_EXT_DIR} PHP_MAJOR_VER=${PHP_VER:C|.$||}
.include <bsd.port.pre.mk>
.if ${PHP_VER} >= 70
CONFIGURE_ARGS+=--with-php7 --without-php
.else
CONFIGURE_ARGS+=--with-php --without-php7
.endif
post-patch:
@${REINPLACE_CMD} -e 's|-lstdc++||g' ${WRKSRC}/configure
.include <bsd.port.post.mk>
|