aboutsummaryrefslogtreecommitdiff
path: root/databases/p5-DBD-Oracle
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2012-05-31 11:19:32 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2012-05-31 11:19:32 +0000
commit0cb47f77537c2b13f5acb82c1ad559fbfe26a829 (patch)
treeca9945973b3815f11f68140f3be1ab0a2cb34abb /databases/p5-DBD-Oracle
parent604cf10be2fdf875d9d65a0ecd7cc4e9ec54a2cf (diff)
downloadports-0cb47f77537c2b13f5acb82c1ad559fbfe26a829.tar.gz
ports-0cb47f77537c2b13f5acb82c1ad559fbfe26a829.zip
Notes
Diffstat (limited to 'databases/p5-DBD-Oracle')
-rw-r--r--databases/p5-DBD-Oracle/Makefile29
1 files changed, 15 insertions, 14 deletions
diff --git a/databases/p5-DBD-Oracle/Makefile b/databases/p5-DBD-Oracle/Makefile
index a49328bc38af..244a9eb23be8 100644
--- a/databases/p5-DBD-Oracle/Makefile
+++ b/databases/p5-DBD-Oracle/Makefile
@@ -15,7 +15,8 @@ PKGNAMEPREFIX= p5-
MAINTAINER= perl@FreeBSD.org
COMMENT= DBI driver for Oracle RDBMS server
-OPTIONS= OCI8 "Use OCI8" off
+OPTIONS_DEFINE= OCI8 DOCS
+OCI8_DESC= Use OCI8
BUILD_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI
RUN_DEPENDS:= ${BUILD_DEPENDS}
@@ -26,19 +27,9 @@ CONFIGURE_ENV= ORACLE_HOME="${ORACLE_HOME}"
MAN1= ora_explain.1
MAN3= DBD::Oracle.3 DBD::Oraperl.3
-post-install:
-.ifndef(NOPORTDOCS)
- @${ECHO_MSG} "===> Installing examples for ${PKGNAME}"
- @${MKDIR} ${EXAMPLESDIR}
- @${INSTALL_DATA} ${WRKSRC}/Oracle.ex/Readme ${EXAMPLESDIR}
- @${INSTALL_SCRIPT} ${WRKSRC}/Oracle.ex/*.pl ${EXAMPLESDIR}
- @${INSTALL_SCRIPT} ${WRKSRC}/Oracle.ex/japh ${EXAMPLESDIR}
- @${INSTALL_SCRIPT} ${WRKSRC}/Oracle.ex/sql ${EXAMPLESDIR}
-.endif
+.include <bsd.port.options.mk>
-.include <bsd.port.pre.mk>
-
-.ifdef WITH_OCI8
+.if ${PORT_OPTIONS:MOCI8}
PORTVERSION= 1.19
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
ORACLE_HOME= ${LOCALBASE}/oracle8-client
@@ -58,4 +49,14 @@ post-patch:
@${PERL} -pi -e 's!\(void\*\)(SvOK)!$$1!g' ${WRKSRC}/oci7.c
.endif
-.include <bsd.port.post.mk>
+post-install:
+.if ${PORT_OPTIONS:MDOCS}
+ @${ECHO_MSG} "===> Installing examples for ${PKGNAME}"
+ @${MKDIR} ${EXAMPLESDIR}
+ @${INSTALL_DATA} ${WRKSRC}/Oracle.ex/Readme ${EXAMPLESDIR}
+ @${INSTALL_SCRIPT} ${WRKSRC}/Oracle.ex/*.pl ${EXAMPLESDIR}
+ @${INSTALL_SCRIPT} ${WRKSRC}/Oracle.ex/japh ${EXAMPLESDIR}
+ @${INSTALL_SCRIPT} ${WRKSRC}/Oracle.ex/sql ${EXAMPLESDIR}
+.endif
+
+.include <bsd.port.mk>