aboutsummaryrefslogtreecommitdiff
path: root/databases/p5-DBD-ODBC
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2014-05-05 16:24:00 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2014-05-05 16:24:00 +0000
commitf4f46a920e21b409b3f3b16873c6cef1eb4af378 (patch)
tree111c3e996440f35b3a05e66700954340c9919761 /databases/p5-DBD-ODBC
parent4007e179a6cb2c28428cd709099b5c1ff6b65402 (diff)
downloadports-f4f46a920e21b409b3f3b16873c6cef1eb4af378.tar.gz
ports-f4f46a920e21b409b3f3b16873c6cef1eb4af378.zip
Notes
Diffstat (limited to 'databases/p5-DBD-ODBC')
-rw-r--r--databases/p5-DBD-ODBC/Makefile24
1 files changed, 1 insertions, 23 deletions
diff --git a/databases/p5-DBD-ODBC/Makefile b/databases/p5-DBD-ODBC/Makefile
index 4ce61b4a8253..6270a9eb7944 100644
--- a/databases/p5-DBD-ODBC/Makefile
+++ b/databases/p5-DBD-ODBC/Makefile
@@ -3,6 +3,7 @@
PORTNAME= DBD-ODBC
PORTVERSION= 1.45
+PORTREVISION= 1
CATEGORIES= databases perl5
MASTER_SITES= CPAN
MASTER_SITE_SUBDIR= CPAN:MJEVANS
@@ -18,9 +19,6 @@ BUILD_DEPENDS= p5-DBI>=1.609:${PORTSDIR}/databases/p5-DBI
RUN_DEPENDS:= ${BUILD_DEPENDS}
OPTIONS_DEFINE= DOCS
-OPTIONS_SINGLE= ODBC
-OPTIONS_SINGLE_ODBC= IODBC UNIXODBC
-OPTIONS_DEFAULT= ODBC IODBC
USES= perl5
USE_PERL5= configure
@@ -28,38 +26,18 @@ CONFIGURE_ARGS= -o ${LOCALBASE}
PORTDOCS= Changes README README.adabas README.informix
-IODBC_LIB_DEPENDS= libiodbc.so:${PORTSDIR}/databases/libiodbc
-UNIXODBC_LIB_DEPENDS= libodbc.so:${PORTSDIR}/databases/unixODBC
-
-.include <bsd.port.options.mk>
-
-.if !${PORT_OPTIONS:MODBC}
-IGNORE= an ODBC driver (iODBC or unixODBC) is required
-.endif
-
-.if ${PORT_OPTIONS:MIODBC}
-MYODBC= iodbc
-.endif
-
-.if ${PORT_OPTIONS:MUNIXODBC}
MYODBC= unixodbc
-.endif
post-patch:
@${REINPLACE_CMD} -e '/my $$myodbc/ s|q{}|"${MYODBC}"|' ${WRKSRC}/Makefile.PL
-.if ${PORT_OPTIONS:MUNIXODBC}
post-configure:
@${PERL} -pi -e 's/-lodbc/-lodbc ${PTHREAD_LIBS}/g;' \
-e 's/$$/ ${PTHREAD_CFLAGS}/ if (/^CCFLAGS/);' \
${WRKSRC}/Makefile
-.endif
-.if ${PORT_OPTIONS:MDOCS}
post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR})
- @${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
-.endif
.include <bsd.port.mk>