freebsd-ports/databases/php-xapian/Makefile
Gerald Pfeifer a9f015d155 Bump PORTREVISION for ports depending on the canonical version of GCC
defined via Mk/bsd.default-versions.mk which has moved from GCC 7.4 t
GCC 8.2 under most circumstances.

This includes ports
 - with USE_GCC=yes or USE_GCC=any,
 - with USES=fortran,
 - using Mk/bsd.octave.mk which in turn features USES=fortran, and
 - with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang,
   c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib
plus, as a double check, everything INDEX-11 showed depending on lang/gcc7.

PR:		231590
2018-12-12 01:35:33 +00:00

55 lines
1.3 KiB
Makefile

# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
# $FreeBSD$
PORTNAME= xapian
PORTVERSION= 1.4.9
PORTREVISION= 1
DISTVERSIONPREFIX= bindings-
CATEGORIES= databases
MASTER_SITES= https://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
USES= compiler:c++11-lang libtool php:build tar:xz
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
USE_CXXSTD= c++11
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
PLIST_SUB+= PHP5="@comment " PHP7=""
.else
CONFIGURE_ARGS+=--with-php --without-php7
PLIST_SUB+= PHP5="" PHP7="@comment "
.endif
post-patch:
@${REINPLACE_CMD} -e 's|-lstdc++||g' ${WRKSRC}/configure
.include <bsd.port.post.mk>