summaryrefslogtreecommitdiff
path: root/databases
diff options
context:
space:
mode:
authorgrant <grant@pkgsrc.org>2007-03-11 16:46:17 +0000
committergrant <grant@pkgsrc.org>2007-03-11 16:46:17 +0000
commit44833e850d49698cdb050e14b055758344de7d7c (patch)
tree0c0e00933dfba3dd9a82e7f4899e244b85ffc0bb /databases
parent27e8036ff1294be0c71bfd3131bf5acbf992dd24 (diff)
downloadpkgsrc-44833e850d49698cdb050e14b055758344de7d7c.tar.gz
Initial import of php-oracle.
This PHP module provides access to Oracle databases.
Diffstat (limited to 'databases')
-rw-r--r--databases/php-oracle/DESCR1
-rw-r--r--databases/php-oracle/Makefile21
2 files changed, 22 insertions, 0 deletions
diff --git a/databases/php-oracle/DESCR b/databases/php-oracle/DESCR
new file mode 100644
index 00000000000..010f2df6697
--- /dev/null
+++ b/databases/php-oracle/DESCR
@@ -0,0 +1 @@
+This PHP module provides access to Oracle databases.
diff --git a/databases/php-oracle/Makefile b/databases/php-oracle/Makefile
new file mode 100644
index 00000000000..1ca9be145d8
--- /dev/null
+++ b/databases/php-oracle/Makefile
@@ -0,0 +1,21 @@
+# $NetBSD: Makefile,v 1.1.1.1 2007/03/11 16:46:17 grant Exp $
+
+MODNAME= oracle
+CATEGORIES+= databases
+COMMENT= PHP extension for Oracle 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"