From bc04aff0957bd46cd4265a42f6974054c53fdcef Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Tue, 11 Jul 2006 13:21:54 +0000 Subject: Add databases/php5-oci8: This port adds support for OCI8 PHP shared extension. It replaces the old Oracle shared extension which is obsolete and will be dropped (moved to PECL) in PHP 5.1. This patch also corrects dependency for the Oracle shared extension (added Oracle client in RUN_DEPENDS). PR: ports/86580 Submitted by: Simun Mikecin --- lang/php5/Makefile.ext | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'lang/php5') diff --git a/lang/php5/Makefile.ext b/lang/php5/Makefile.ext index 796a7b19df53..02aadbc30f08 100644 --- a/lang/php5/Makefile.ext +++ b/lang/php5/Makefile.ext @@ -204,6 +204,14 @@ BROKEN_WITH_MYSQL= 323 40 CONFIGURE_ARGS+=--with-ncurses=/usr .endif +.if ${PHP_MODNAME} == "oci8" +BUILD_DEPENDS+= ${LOCALBASE}/oracle8-client/lib/libclntsh.a:${PORTSDIR}/databases/oracle8-client + +RUN_DEPENDS+= ${BUILD_DEPENDS} + +CONFIGURE_ARGS+=--with-oci8=${LOCALBASE}/oracle8-client +.endif + .if ${PHP_MODNAME} == "odbc" LIB_DEPENDS+= odbc.1:${PORTSDIR}/databases/unixODBC @@ -459,6 +467,19 @@ post-extract: @${MV} ${WRKSRC}/config0.m4 ${WRKSRC}/config.m4 .endif +.if ${PHP_MODNAME} == "oci8" +. if ${OSVERSION} < 500000 +BROKEN= Doesn't work on FreeBSD 4.x +. endif + +pre-configure: + @cd ${WRKSRC}; \ + for lib in ${LOCALBASE}/oracle8-client/lib/libclntsh /usr/lib/libpthread; do \ + /usr/bin/ar x $${lib}.a; \ + done; \ + /usr/bin/ar rcs liboci8.a *.o +.endif + .if ${PHP_MODNAME} == "snmp" . if defined(WITH_SNMP4) || exists(${LOCALBASE}/lib/libsnmp.so.4) LIB_DEPENDS+= snmp.4:${PORTSDIR}/net-mgmt/net-snmp4 -- cgit v1.2.3