# Created by: Po-Chuan Hsieh # $FreeBSD: head/databases/p5-Xapian/Makefile 562756 2021-01-26 17:23:00Z sunpoet $ PORTNAME= Xapian PORTVERSION= 1.4.18.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 PORTDOCS= * 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