Date: Thu, 21 Nov 2002 19:31:14 +1100 (EST) From: Chris Knight <chris@aims.com.au> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/45554: [PATCH] databases/sqlrelay: Add Interbase Support Message-ID: <200211210831.gAL8VETj010768@ait0fd01.aims.private>
next in thread | raw e-mail | index | archive | help
>Number: 45554 >Category: ports >Synopsis: [PATCH] databases/sqlrelay: Add Interbase Support >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Nov 21 00:40:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: Chris Knight >Release: FreeBSD 4.7-RELEASE i386 >Organization: AIMS Independent Computer Professionals >Environment: System: FreeBSD ait0fd01.aims.private 4.7-RELEASE FreeBSD 4.7-RELEASE #0: Sun Oct 13 19:17:31 EST 2002 root@ait0fd01.aims.private:/var/obj/usr/src/sys/THINKPAD i386 >Description: Add Interbase support to sqlrelay >How-To-Repeat: N/A >Fix: Index: Makefile =================================================================== RCS file: /home/ncvs/ports/databases/sqlrelay/Makefile,v retrieving revision 1.12 diff -u -r1.12 Makefile --- Makefile 7 Nov 2002 17:57:37 -0000 1.12 +++ Makefile 21 Nov 2002 07:53:55 -0000 @@ -42,6 +42,7 @@ WITH_ODBC?= yes WITH_FREETDS?= yes WITH_GTK?= yes +WITH_INTERBASE?= yes .else WITH_SQLITE?= no WITH_MYSQL?= yes @@ -50,6 +51,7 @@ WITH_ODBC?= no WITH_FREETDS?= no WITH_GTK?= yes +WITH_INTERBASE?= yes .endif .if defined(WITH_SQLITE) && ${WITH_SQLITE:L} != no @@ -73,6 +75,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}" @@ -125,6 +136,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.4 diff -u -r1.4 pkg-plist --- pkg-plist 27 Oct 2002 17:54:01 -0000 1.4 +++ pkg-plist 21 Nov 2002 06:52:45 -0000 @@ -9,6 +9,7 @@ %%IF_ODBC%%bin/sqlr-connection-odbc %%IF_POSTGRESQL%%bin/sqlr-connection-postgresql %%IF_SQLITE%%bin/sqlr-connection-sqlite +%%IF_INTERBASE%%bin/sqlr-connection-interbase bin/sqlr-listener bin/sqlr-scaler bin/sqlr-start 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" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200211210831.gAL8VETj010768>