diff options
-rw-r--r-- | databases/Makefile | 1 | ||||
-rw-r--r-- | databases/php5-oci8/Makefile | 13 | ||||
-rw-r--r-- | databases/php5-oci8/files/patch-config.m4 | 12 | ||||
-rw-r--r-- | lang/php5/Makefile.ext | 21 | ||||
-rw-r--r-- | lang/php53/Makefile.ext | 21 |
5 files changed, 68 insertions, 0 deletions
diff --git a/databases/Makefile b/databases/Makefile index 128191bbd6ec..b11a7cd29f6d 100644 --- a/databases/Makefile +++ b/databases/Makefile @@ -333,6 +333,7 @@ SUBDIR += php5-mssql SUBDIR += php5-mysql SUBDIR += php5-mysqli + SUBDIR += php5-oci8 SUBDIR += php5-odbc SUBDIR += php5-pgsql SUBDIR += php5-propel diff --git a/databases/php5-oci8/Makefile b/databases/php5-oci8/Makefile new file mode 100644 index 000000000000..e60a802b9757 --- /dev/null +++ b/databases/php5-oci8/Makefile @@ -0,0 +1,13 @@ +# New ports collection makefile for: php5-oci8 +# Date created: 24 Sep 2004 +# Whom: Simun Mikecin <numisemis@yahoo.com> +# +# $FreeBSD$ +# + +CATEGORIES= databases +PKGNAMESUFFIX= -oci8 + +MASTERDIR= ${.CURDIR}/../../lang/php5 + +.include "${MASTERDIR}/Makefile" diff --git a/databases/php5-oci8/files/patch-config.m4 b/databases/php5-oci8/files/patch-config.m4 new file mode 100644 index 000000000000..d504cdf1c1bb --- /dev/null +++ b/databases/php5-oci8/files/patch-config.m4 @@ -0,0 +1,12 @@ +--- config.m4.orig Wed Apr 5 11:06:00 2006 ++++ config.m4 Tue Jul 11 08:20:27 2006 +@@ -177,8 +177,7 @@ + ;; + + 8.1) +- PHP_ADD_LIBRARY(clntsh, 1, OCI8_SHARED_LIBADD) +- PHP_ADD_LIBPATH($OCI8_DIR/$OCI8_LIB_DIR, OCI8_SHARED_LIBADD) ++ PHP_ADD_LIBRARY_WITH_PATH(oci8, ., OCI8_SHARED_LIBADD) + + PHP_CHECK_LIBRARY(clntsh, OCIEnvCreate, + [ 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 diff --git a/lang/php53/Makefile.ext b/lang/php53/Makefile.ext index 796a7b19df53..02aadbc30f08 100644 --- a/lang/php53/Makefile.ext +++ b/lang/php53/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 |