From 04225b60bfb837367c0d297fc52dcf29187b5dcb Mon Sep 17 00:00:00 2001 From: Max Khon Date: Wed, 31 Aug 2005 19:03:43 +0000 Subject: [PATCH] New port: oracle_odbc_driver 0.5.5 Oracle Open Source ODBC driver. --- databases/oracle_odbc_driver/Makefile | 48 +++++++++++++++++++ databases/oracle_odbc_driver/distinfo | 2 + .../oracle_odbc_driver/files/patch-configure | 38 +++++++++++++++ .../files/patch-src-oracle_functions.c | 18 +++++++ .../files/patch-src-string_functions.c | 35 ++++++++++++++ databases/oracle_odbc_driver/pkg-descr | 3 ++ databases/oracle_odbc_driver/pkg-plist | 4 ++ 7 files changed, 148 insertions(+) create mode 100644 databases/oracle_odbc_driver/Makefile create mode 100644 databases/oracle_odbc_driver/distinfo create mode 100644 databases/oracle_odbc_driver/files/patch-configure create mode 100644 databases/oracle_odbc_driver/files/patch-src-oracle_functions.c create mode 100644 databases/oracle_odbc_driver/files/patch-src-string_functions.c create mode 100644 databases/oracle_odbc_driver/pkg-descr create mode 100644 databases/oracle_odbc_driver/pkg-plist diff --git a/databases/oracle_odbc_driver/Makefile b/databases/oracle_odbc_driver/Makefile new file mode 100644 index 000000000000..538d49b75798 --- /dev/null +++ b/databases/oracle_odbc_driver/Makefile @@ -0,0 +1,48 @@ +# New ports collection makefile for: oracle_odbc_driver +# Date created: 8 Aug 2005 +# Whom: Max Khon +# +# $FreeBSD$ +# + +PORTNAME= oracle_odbc_driver +PORTVERSION= 0.5.5 +CATEGORIES= databases +MASTER_SITES= http://fndapl.fnal.gov/~dbox/oracle/odbc/ +MASTER_SITE_SUBDIR= fjoe +DISTNAME= ${PORTNAME}.${PORTVERSION} + +MAINTAINER= fjoe@FreeBSD.org +COMMENT= Oracle Open Source ODBC driver + +OPTIONS= UNIXODBC "Build with unixODBC" on \ + IODBC "Build with iODBC" off \ + +.if !defined(WITH_UNIXODBC) && !defined(WITH_IODBC) +WITH_UNIXODBC= yes +.endif + +.if defined(WITH_UNIXODBC) +LIB_DEPENDS= odbc:${PORTSDIR}/databases/unixODBC +CONFIGURE_ARGS= --with-unixODBC=${LOCALBASE} +.endif + +.if defined(WITH_IODBC) +LIB_DEPENDS= iodbc:${PORTSDIR}/databases/libiodbc +CONFIGURE_ARGS= --without-unixODBC +.endif + +BUILD_DEPENDS= ${ORACLE_HOME}/lib/libclntst8.a:${PORTSDIR}/databases/oracle8-client +RUN_DEPENDS= ${BUILD_DEPENDS} + +WRKSRC= ${WRKDIR}/${PORTNAME} +ORACLE_HOME= ${LOCALBASE}/oracle8-client + +GNU_CONFIGURE= yes +CONFIGURE_ENV= ORACLE_HOME="${ORACLE_HOME}" \ + LIBS="`${CAT} ${ORACLE_HOME}/lib/sysliblist`" +CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL} +USE_AUTOTOOLS= libtool:13 +INSTALLS_SHLIB= yes + +.include diff --git a/databases/oracle_odbc_driver/distinfo b/databases/oracle_odbc_driver/distinfo new file mode 100644 index 000000000000..322b564fba29 --- /dev/null +++ b/databases/oracle_odbc_driver/distinfo @@ -0,0 +1,2 @@ +MD5 (oracle_odbc_driver.0.5.5.tar.gz) = 77a576b947437e915491ecd30f036c85 +SIZE (oracle_odbc_driver.0.5.5.tar.gz) = 483118 diff --git a/databases/oracle_odbc_driver/files/patch-configure b/databases/oracle_odbc_driver/files/patch-configure new file mode 100644 index 000000000000..bdf64962c667 --- /dev/null +++ b/databases/oracle_odbc_driver/files/patch-configure @@ -0,0 +1,38 @@ +--- configure.orig Thu Jun 9 07:30:50 2005 ++++ configure Thu Jun 9 19:03:32 2005 +@@ -4719,7 +4719,7 @@ + echo $ECHO_N "checking for libclntsh.so ... $ECHO_C" >&6 + for d in $oraclehome/lib /usr/lib /usr/local/lib + do +-if test -f $d/libclntsh.so || test -f $d/libclntsh.a ++if test -f $d/libclntsh.so || test -f $d/libclntsh.a || test -f $d/libclntst8.a + then + echo "$as_me:$LINENO: result: found libclntsh.so in $d" >&5 + echo "${ECHO_T}found libclntsh.so in $d" >&6 +@@ -4756,7 +4756,7 @@ + echo $ECHO_N "(cached) $ECHO_C" >&6 + else + ac_check_lib_save_LIBS=$LIBS +-LIBS="-lclntsh "-L$oraldir" $LIBS" ++LIBS="-lclntst8 "-L$oraldir" $LIBS" + cat >conftest.$ac_ext <<_ACEOF + #line $LINENO "configure" + /* confdefs.h. */ +@@ -4812,7 +4812,7 @@ + fi + + +- ORALIB="-lclntsh" ++ ORALIB="-lclntst8 -lcompat -lpthread -lm" + + + +@@ -4822,7 +4822,7 @@ + echo $ECHO_N "(cached) $ECHO_C" >&6 + else + ac_check_lib_save_LIBS=$LIBS +-LIBS="-lclntsh "-L$oraldir" $LIBS" ++LIBS="-lclntst8 "-L$oraldir" $LIBS" + cat >conftest.$ac_ext <<_ACEOF + #line $LINENO "configure" + /* confdefs.h. */ diff --git a/databases/oracle_odbc_driver/files/patch-src-oracle_functions.c b/databases/oracle_odbc_driver/files/patch-src-oracle_functions.c new file mode 100644 index 000000000000..e11fec3729ed --- /dev/null +++ b/databases/oracle_odbc_driver/files/patch-src-oracle_functions.c @@ -0,0 +1,18 @@ +--- src/oracle_functions.c.orig Wed Jun 8 19:39:20 2005 ++++ src/oracle_functions.c Wed Jun 8 19:39:32 2005 +@@ -48,6 +48,7 @@ + + long local_min(long a, long b){if(a=0) + { + local_str=ORAMALLOC(str_len+1); + memcpy(local_str,str,str_len); + local_str[str_len] = '\0'; + } +- for(i=0; i