blob: 95568e4ec89d8782e6fb63a5899e7dd32c93d952 (
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
|
PORTNAME= Xapian
PORTVERSION= 1.4.20.0
CATEGORIES= databases perl5
MASTER_SITES= https://oligarchy.co.uk/xapian/${PORTVERSION:R}/ \
LOCAL/sunpoet
PKGNAMEPREFIX= p5-
DISTNAME= xapian-bindings-${PORTVERSION:R}
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Perl binding for Xapian
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= xapian-core>=${PORTVERSION:R}:databases/xapian-core
LIB_DEPENDS= libxapian.so:databases/xapian-core
USES= compiler:c++11-lang libtool perl5 tar:xz
CONFIGURE_ARGS= --datarootdir=${DATADIR} \
--docdir=${DOCSDIR} \
--enable-shared \
--enable-static \
--with-perl \
--without-csharp \
--without-java \
--without-lua \
--without-php \
--without-php7 \
--without-python \
--without-python3 \
--without-ruby \
--without-tcl
GNU_CONFIGURE= yes
INSTALL_TARGET= install-strip
LDFLAGS+= -L${LOCALBASE}/lib/perl5/${PERL_VER}/mach/CORE -lperl
USE_CXXSTD= c++11
PORTSCOUT= limitw:1,even
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e 's|-lstdc++||g' ${WRKSRC}/configure
post-patch-DOCS-off:
@${REINPLACE_CMD} -e 's| install-dist_exampledataDATA install-docdataDATA||' ${WRKSRC}/perl/Makefile.in
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Xapian/Xapian.so
.include <bsd.port.mk>
|