summaryrefslogtreecommitdiff
path: root/databases
diff options
context:
space:
mode:
authorgrant <grant@pkgsrc.org>2007-12-04 00:31:41 +0000
committergrant <grant@pkgsrc.org>2007-12-04 00:31:41 +0000
commitca295a7bd166c10fd2c6987b87d28707f522ee32 (patch)
tree519622b3b3c733f1c159f91e0e2cedaf5d085160 /databases
parent5dcaefc2fbc19046ebedbdaf3a78bb4bf1218799 (diff)
downloadpkgsrc-ca295a7bd166c10fd2c6987b87d28707f522ee32.tar.gz
Initial import of php-oci8.
This PHP module provides access to Oracle 8 (and above) databases.
Diffstat (limited to 'databases')
-rw-r--r--databases/php-oci8/DESCR1
-rw-r--r--databases/php-oci8/Makefile21
2 files changed, 22 insertions, 0 deletions
diff --git a/databases/php-oci8/DESCR b/databases/php-oci8/DESCR
new file mode 100644
index 00000000000..9aa1a4d9237
--- /dev/null
+++ b/databases/php-oci8/DESCR
@@ -0,0 +1 @@
+This PHP module provides access to Oracle 8 (and above) databases.
diff --git a/databases/php-oci8/Makefile b/databases/php-oci8/Makefile
new file mode 100644
index 00000000000..316b807ca34
--- /dev/null
+++ b/databases/php-oci8/Makefile
@@ -0,0 +1,21 @@
+# $NetBSD: Makefile,v 1.1.1.1 2007/12/04 00:31:41 grant Exp $
+
+MODNAME= oci8
+CATEGORIES+= databases
+COMMENT= PHP extension for Oracle 8 (and above) databases
+
+USE_PHP_EXT_PATCHES= yes
+
+.include "../../mk/bsd.prefs.mk"
+
+.if !defined(ORACLE_HOME)
+PKG_FAIL_REASON+= "You must set ORACLE_HOME to the location of your Oracle installation"
+.elif !exists(${ORACLE_HOME})
+PKG_FAIL_REASON+= "The location of ORACLE_HOME does not exist"
+.endif
+
+BUILDLINK_PASSTHRU_DIRS+= ${ORACLE_HOME}
+CONFIGURE_ARGS+= --with-${MODNAME}=shared,${ORACLE_HOME}
+
+.include "../../lang/php/ext.mk"
+.include "../../mk/bsd.pkg.mk"