aboutsummaryrefslogtreecommitdiffstats
path: root/databases
diff options
context:
space:
mode:
authorskv <skv@FreeBSD.org>2005-09-14 16:07:49 +0800
committerskv <skv@FreeBSD.org>2005-09-14 16:07:49 +0800
commit35efefda77ffd5222db2e998d3653ec646ac4028 (patch)
treed4c5cf429df9c02aa1633fb3cf1dde457373834c /databases
parent158b0237d27fd013ccd87dd3f45ae07cf51caf86 (diff)
downloadfreebsd-ports-gnome-35efefda77ffd5222db2e998d3653ec646ac4028.tar.gz
freebsd-ports-gnome-35efefda77ffd5222db2e998d3653ec646ac4028.tar.zst
freebsd-ports-gnome-35efefda77ffd5222db2e998d3653ec646ac4028.zip
* OPTIONSify port - add support for OCI8 (via databases/oracle8-client)
("off" by default) * make dual-version port: 1.14 for OCI7, 1.16 for OCI8
Diffstat (limited to 'databases')
-rw-r--r--databases/p5-DBD-Oracle/Makefile35
-rw-r--r--databases/p5-DBD-Oracle/distinfo2
2 files changed, 27 insertions, 10 deletions
diff --git a/databases/p5-DBD-Oracle/Makefile b/databases/p5-DBD-Oracle/Makefile
index e5c7314aeec2..dd24a7155ee0 100644
--- a/databases/p5-DBD-Oracle/Makefile
+++ b/databases/p5-DBD-Oracle/Makefile
@@ -6,8 +6,7 @@
#
PORTNAME= DBD-Oracle
-PORTVERSION= 1.14
-PORTREVISION= 1
+PORTVERSION= 1.16
CATEGORIES= databases perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= DBD
@@ -16,21 +15,17 @@ PKGNAMEPREFIX= p5-
MAINTAINER= skv@FreeBSD.org
COMMENT= DBI driver for Oracle RDBMS server
-BUILD_DEPENDS= ${LOCALBASE}/oracle7/rdbms/demo/oracle.mk:${PORTSDIR}/databases/oracle7-client
+OPTIONS= OCI8 "Use OCI8" off
+
RUN_DEPENDS= ${BUILD_DEPENDS}
-ORACLE_HOME= ${LOCALBASE}/oracle7
PERL_CONFIGURE= yes
-CONFIGURE_ARGS= -m ${ORACLE_HOME}/rdbms/demo/oracle.mk
CONFIGURE_ENV= ORACLE_HOME="${ORACLE_HOME}"
MAN1= ora_explain.1
MAN1PREFIX= ${PREFIX}
MAN3= DBD::Oracle.3 DBD::Oraperl.3
-post-patch:
- @${PERL} -pi -e 's!\(void\*\)(SvOK)!$$1!g' ${WRKSRC}/oci7.c
-
post-install:
.ifndef(NOPORTDOCS)
@${ECHO_MSG} "===> Installing examples for ${PKGNAME}"
@@ -43,12 +38,32 @@ post-install:
.include <bsd.port.pre.mk>
+.ifdef WITH_OCI8
+PORTVERSION= 1.16
+ORACLE_HOME= ${LOCALBASE}/oracle8-client
+BUILD_DEPENDS= ${ORACLE_HOME}/lib/libclntst8.a:${PORTSDIR}/databases/oracle8-client
+.else
+PORTVERSION= 1.14
+PORTREVISION= 2
+ORACLE_HOME= ${LOCALBASE}/oracle7
+BUILD_DEPENDS= ${ORACLE_HOME}/rdbms/demo/oracle.mk:${PORTSDIR}/databases/oracle7-client
+CONFIGURE_ARGS= -m ${ORACLE_HOME}/rdbms/demo/oracle.mk
+.endif
+
.if ${PERL_LEVEL} < 500600
+.ifdef WITH_OCI8
+IGNORE= Perl 5.6 or newer required. Install lang/perl5.8 or lang/perl5 and try again.
+.endif
BUILD_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI-137
-RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI-137
.else
BUILD_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI
-RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI
+.endif
+
+post-patch:
+.ifdef WITH_OCI8
+ @${MV} ${WRKSRC}/Oracle.ex/README ${WRKSRC}/Oracle.ex/Readme
+.else
+ @${PERL} -pi -e 's!\(void\*\)(SvOK)!$$1!g' ${WRKSRC}/oci7.c
.endif
.include <bsd.port.post.mk>
diff --git a/databases/p5-DBD-Oracle/distinfo b/databases/p5-DBD-Oracle/distinfo
index 270a6bcee630..f3545ebcba7f 100644
--- a/databases/p5-DBD-Oracle/distinfo
+++ b/databases/p5-DBD-Oracle/distinfo
@@ -1,2 +1,4 @@
+MD5 (DBD-Oracle-1.16.tar.gz) = 9711550ed0ebfc743920a6a357ed717c
+SIZE (DBD-Oracle-1.16.tar.gz) = 235224
MD5 (DBD-Oracle-1.14.tar.gz) = ec364509df5dfd57a4c05e2c410f358f
SIZE (DBD-Oracle-1.14.tar.gz) = 199667