aboutsummaryrefslogtreecommitdiffstats
path: root/lang/php5
diff options
context:
space:
mode:
authorale <ale@FreeBSD.org>2014-05-14 18:20:08 +0800
committerale <ale@FreeBSD.org>2014-05-14 18:20:08 +0800
commit7c7a664a6406320b9ae6f6b98fb7a42a0b762d1c (patch)
treedda49a35162a024df437fa7d2cb9ac76c1d748f2 /lang/php5
parent8816ff1ec05f3e7d2a255aadff20c9106d50b0ca (diff)
downloadfreebsd-ports-gnome-7c7a664a6406320b9ae6f6b98fb7a42a0b762d1c.tar.gz
freebsd-ports-gnome-7c7a664a6406320b9ae6f6b98fb7a42a0b762d1c.tar.zst
freebsd-ports-gnome-7c7a664a6406320b9ae6f6b98fb7a42a0b762d1c.zip
Fix builds of a few extensions.
Diffstat (limited to 'lang/php5')
-rw-r--r--lang/php5/Makefile.ext26
1 files changed, 11 insertions, 15 deletions
diff --git a/lang/php5/Makefile.ext b/lang/php5/Makefile.ext
index b03a457377c7..9edf926ad540 100644
--- a/lang/php5/Makefile.ext
+++ b/lang/php5/Makefile.ext
@@ -126,7 +126,7 @@ CONFIGURE_ARGS+=--enable-hash \
.endif
.if ${PHP_MODNAME} == "iconv"
-CONFIGURE_ARGS+=--with-iconv
+CONFIGURE_ARGS+=--with-iconv=${LOCALBASE}
USES+= iconv:translit
.endif
@@ -206,7 +206,10 @@ MYSQLND_DESC= Use MySQL Native Driver
.endif
.if ${PHP_MODNAME} == "odbc"
-CONFIGURE_ARGS+=--enable-odbc
+LIB_DEPENDS+= libodbc.so:${PORTSDIR}/databases/unixODBC
+
+CONFIGURE_ARGS+=--enable-odbc \
+ --with-unixODBC=${LOCALBASE}
.endif
.if ${PHP_MODNAME} == "openssl"
@@ -255,6 +258,8 @@ USE_PHP_BUILD= yes
.endif
.if ${PHP_MODNAME} == "pdo_odbc"
+LIB_DEPENDS+= libodbc.so:${PORTSDIR}/databases/unixODBC
+CONFIGURE_ARGS+=--with-pdo-odbc=unixODBC,${LOCALBASE}
USE_PHP= pdo
USE_PHP_BUILD= yes
@@ -325,9 +330,9 @@ CONFIGURE_ARGS+=--enable-shmop
.if ${PHP_MODNAME} == "simplexml"
CONFIGURE_ARGS+=--enable-simplexml \
+ --with-pcre-dir=${LOCALBASE} \
--with-libxml-dir=${LOCALBASE}
-CFLAGS+= -I${LOCALBASE}/include
USES+= pkgconfig
USE_GNOME= libxml2
.endif
@@ -419,9 +424,10 @@ USE_PHP_BUILD= yes
.if ${PHP_MODNAME} == "xmlrpc"
CONFIGURE_ARGS+=--with-xmlrpc \
- --with-libxml-dir=${LOCALBASE}
+ --with-libxml-dir=${LOCALBASE} \
+ --with-iconv-dir=${LOCALBASE}
-USES+= iconv
+USES+= iconv::translit
USE_GNOME= libxml2
PHP_HEADER_DIRS=libxmlrpc
@@ -549,11 +555,6 @@ post-extract:
@${MV} ${WRKSRC}/config0.m4 ${WRKSRC}/config.m4
.endif
-.if ${PHP_MODNAME} == "odbc"
-LIB_DEPENDS+= libodbc.so:${PORTSDIR}/databases/unixODBC
-CONFIGURE_ARGS+=--with-unixODBC=${LOCALBASE}
-.endif
-
.if ${PHP_MODNAME} == "pdo_dblib"
. if ${PORT_OPTIONS:MMSSQL}
LIB_DEPENDS+= libsybdb.so:${PORTSDIR}/databases/freetds-msdblib
@@ -562,11 +563,6 @@ LIB_DEPENDS+= libct.so:${PORTSDIR}/databases/freetds
. endif
.endif
-.if ${PHP_MODNAME} == "pdo_odbc"
-LIB_DEPENDS+= libodbc.so:${PORTSDIR}/databases/unixODBC
-CONFIGURE_ARGS+=--with-pdo-odbc=unixODBC,${LOCALBASE}
-.endif
-
.if ${PHP_MODNAME} == "pdo_mysql"
. if ${PORT_OPTIONS:MMYSQLND}
CONFIGURE_ARGS+=--with-pdo-mysql=mysqlnd