Date: Thu, 13 Mar 2003 09:44:34 +1100 (EST) From: Chris Knight <chris@aims.com.au> To: FreeBSD-gnats-submit@FreeBSD.org Cc: chris@aims.com.au Subject: ports/49970: [PATCH] databases/sqlrelay: Add Interbase Support Message-ID: <200303122244.h2CMiYus047560@ait0fd01.aims.private>
next in thread | raw e-mail | index | archive | help
>Number: 49970 >Category: ports >Synopsis: [PATCH] databases/sqlrelay: Add Interbase Support >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Wed Mar 12 14:50:07 PST 2003 >Closed-Date: >Last-Modified: >Originator: Chris Knight >Release: FreeBSD 4.7-STABLE i386 >Organization: AIMS Independent Computer Professionals >Environment: System: FreeBSD ait0fd01.aims.private 4.7-STABLE FreeBSD 4.7-STABLE #0: Thu Jan 23 20:54:29 EST 2003 root@ait0fd01.aims.private:/var/obj/usr/src/sys/THINKPAD i386 >Description: Add Interbase support to sqlrelay. Supercedes PR ports/45554. >How-To-Repeat: N/A >Fix: Index: Makefile =================================================================== RCS file: /home/ncvs/ports/databases/sqlrelay/Makefile,v retrieving revision 1.18 diff -u -r1.18 Makefile --- Makefile 18 Feb 2003 05:52:48 -0000 1.18 +++ Makefile 12 Mar 2003 22:08:42 -0000 @@ -45,6 +45,7 @@ WITH_ODBC?= yes WITH_FREETDS?= yes WITH_GTK?= yes +WITH_INTERBASE?= yes .else WITH_SQLITE?= no WITH_MYSQL?= yes @@ -53,6 +54,7 @@ WITH_ODBC?= no WITH_FREETDS?= no WITH_GTK?= yes +WITH_INTERBASE?= yes .endif .if defined(WITH_SQLITE) && ${WITH_SQLITE:L} != no @@ -76,6 +78,15 @@ IF_MYSQL= "@comment " .endif +.if defined(WITH_INTERBASE) && ${WITH_INTERBASE:L} != no +LIB_DEPENDS+= gds.1:${PORTSDIR}/databases/firebird +CONFIGURE_ARGS+= --with-interbase-prefix="${LOCALBASE}/firebird" +IF_INTERBASE= "" +.else +CONFIGURE_ARGS+= --without-interbase-prefix +IF_INTERBASE= "@comment " +.endif + .if defined(WITH_MSQL) && ${WITH_MSQL:L} != no LIB_DEPENDS+= msql.1:${PORTSDIR}/databases/msql CONFIGURE_ARGS+= --with-msql-prefix="${LOCALBASE}" @@ -128,6 +139,7 @@ IF_POSTGRESQL=${IF_POSTGRESQL} \ IF_ODBC=${IF_ODBC} \ IF_FREETDS=${IF_FREETDS} \ + IF_INTERBASE=${IF_INTERBASE} \ IF_GTK=${IF_GTK} # --with-sybase-prefix Location of Sybase Index: pkg-plist =================================================================== RCS file: /home/ncvs/ports/databases/sqlrelay/pkg-plist,v retrieving revision 1.6 diff -u -r1.6 pkg-plist --- pkg-plist 14 Jan 2003 11:25:15 -0000 1.6 +++ pkg-plist 12 Mar 2003 22:10:12 -0000 @@ -15,6 +15,8 @@ %%IF_POSTGRESQL%%bin/sqlr-connection-postgresql-debug %%IF_SQLITE%%bin/sqlr-connection-sqlite %%IF_SQLITE%%bin/sqlr-connection-sqlite-debug +%%IF_INTERBASE%%bin/sqlr-connection-interbase +%%IF_INTERBASE%%bin/sqlr-connection-interbase-debug bin/sqlr-listener bin/sqlr-listener-debug bin/sqlr-scaler Index: files/patch-configure =================================================================== RCS file: /home/ncvs/ports/databases/sqlrelay/files/patch-configure,v retrieving revision 1.1 diff -u -r1.1 patch-configure --- files/patch-configure 23 Feb 2002 19:56:00 -0000 1.1 +++ files/patch-configure 21 Nov 2002 08:02:48 -0000 @@ -1,6 +1,6 @@ ---- configure.orig Fri Oct 19 11:58:59 2001 -+++ configure Sun Feb 24 02:29:56 2002 -@@ -1604,7 +1604,7 @@ +--- configure.orig Mon Apr 15 14:23:31 2002 ++++ configure Thu Nov 21 19:00:36 2002 +@@ -1705,7 +1705,7 @@ fi if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 @@ -9,7 +9,7 @@ else echo "$ac_t""no" 1>&6 -@@ -1629,7 +1629,7 @@ +@@ -1784,7 +1784,7 @@ fi if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 @@ -18,7 +18,90 @@ else echo "$ac_t""no" 1>&6 -@@ -6882,10 +6882,7 @@ +@@ -7314,7 +7314,7 @@ + fi + if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 +- INTERBASELIBSPATH="$INTERBASPATH/lib"; INTERBASELIBS="-L$INTERBASEPATH/lib -lgds -lcrypt" ++ INTERBASELIBSPATH="$INTERBASEPATH/lib"; INTERBASELIBS="-L$INTERBASEPATH/lib -lgds -lcrypt" + else + echo "$ac_t""no" 1>&6 + +@@ -7403,8 +7403,8 @@ + + LINKFAIL="" + if ( test -n "$INTERBASESTATIC" -a -n "$INTERBASELIBS" ); then +- echo $ac_n "checking if Interbase can be statically linked without $DLLIB""... $ac_c" 1>&6 +-echo "configure:7408: checking if Interbase can be statically linked without $DLLIB" >&5 ++ echo $ac_n "checking if Interbase can be statically linked without -lcrypt""... $ac_c" 1>&6 ++echo "configure:7408: checking if Interbase can be statically linked without -lcrypt" >&5 + TEMPCPPFLAGS="$CPPFLAGS" + CPPFLAGS="$INTERBASESTATIC $INTERBASEINCLUDES" + LIBS="$INTERBASELIBS $SOCKETLIB" +@@ -7429,12 +7429,12 @@ + rm -f conftest* + LIBS="" + CPPFLAGS="$TEMPCPPFLAGS" +- if ( test -n "$LINKFAIL" -a -n "$DLLIB" ); then +- echo $ac_n "checking if Interbase can be statically linked with $DLLIB""... $ac_c" 1>&6 +-echo "configure:7435: checking if Interbase can be statically linked with $DLLIB" >&5 ++ if ( test -n "$LINKFAIL" ); then ++ echo $ac_n "checking if Interbase can be statically linked with -lcrypt""... $ac_c" 1>&6 ++echo "configure:7435: checking if Interbase can be statically linked with -lcrypt" >&5 + TEMPCPPFLAGS="$CPPFLAGS" + CPPFLAGS="$INTERBASESTATIC $INTERBASEINCLUDES" +- LIBS="$INTERBASELIBS $SOCKETLIB $DLLIB" ++ LIBS="$INTERBASELIBS $SOCKETLIB -lcrypt" + cat > conftest.$ac_ext <<EOF + #line 7440 "configure" + #include "confdefs.h" +@@ -7446,7 +7446,7 @@ + EOF + if { (eval echo configure:7448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* +- echo "$ac_t""yes" 1>&6; INTERBASELIBS="$INTERBASELIBS $DLLIB"; LINKFAIL=""; ++ echo "$ac_t""yes" 1>&6; INTERBASELIBS="$INTERBASELIBS -lcrypt"; LINKFAIL=""; + else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 +@@ -7463,8 +7463,8 @@ + if ( test -n "$RPATHFLAG" -a -n "$INTERBASELIBSPATH" ); then + INTERBASELIBS="-Wl,-rpath $INTERBASELIBSPATH $INTERBASELIBS" + fi +- echo $ac_n "checking if Interbase can be dynamically linked without $DLLIB""... $ac_c" 1>&6 +-echo "configure:7468: checking if Interbase can be dynamically linked without $DLLIB" >&5 ++ echo $ac_n "checking if Interbase can be dynamically linked without -lcrypt""... $ac_c" 1>&6 ++echo "configure:7468: checking if Interbase can be dynamically linked without -lcrypt" >&5 + TEMPCPPFLAGS="$CPPFLAGS" + CPPFLAGS="$INTERBASEINCLUDES" + LIBS="$INTERBASELIBS $SOCKETLIB" +@@ -7489,12 +7489,12 @@ + rm -f conftest* + LIBS="" + CPPFLAGS="$TEMPCPPFLAGS" +- if ( test -n "$LINKFAIL" -a -n "$DLLIB" ); then +- echo $ac_n "checking if Interbase can be dynamically linked with $DLLIB""... $ac_c" 1>&6 +-echo "configure:7495: checking if Interbase can be dynamically linked with $DLLIB" >&5 ++ if ( test -n "$LINKFAIL" ); then ++ echo $ac_n "checking if Interbase can be dynamically linked with -lcrypt""... $ac_c" 1>&6 ++echo "configure:7495: checking if Interbase can be dynamically linked with -lcrypt" >&5 + TEMPCPPFLAGS="$CPPFLAGS" + CPPFLAGS="$INTERBASEINCLUDES" +- LIBS="$INTERBASELIBS $SOCKETLIB $DLLIB" ++ LIBS="$INTERBASELIBS $SOCKETLIB -lcrypt" + cat > conftest.$ac_ext <<EOF + #line 7500 "configure" + #include "confdefs.h" +@@ -7506,7 +7506,7 @@ + EOF + if { (eval echo configure:7508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* +- echo "$ac_t""yes" 1>&6; INTERBASELIBS="$INTERBASELIBS $DLLIB"; LINKFAIL="" ++ echo "$ac_t""yes" 1>&6; INTERBASELIBS="$INTERBASELIBS -lcrypt"; LINKFAIL="" + else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 +@@ -8122,10 +8122,7 @@ fi if ( test -n "$JAVAINCLUDES"); then >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200303122244.h2CMiYus047560>