aboutsummaryrefslogtreecommitdiffstats
path: root/databases
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2016-06-23 22:18:37 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2016-06-23 22:18:37 +0800
commit58d0cc0c1153bc9189175e1d969fc2b0a0944acc (patch)
tree0db59d96ea9c0b2b051a5df62ea741d2df301c07 /databases
parentdabcd06dfb77d6f9d69905298f8c3e47462aac33 (diff)
downloadfreebsd-ports-gnome-58d0cc0c1153bc9189175e1d969fc2b0a0944acc.tar.gz
freebsd-ports-gnome-58d0cc0c1153bc9189175e1d969fc2b0a0944acc.tar.zst
freebsd-ports-gnome-58d0cc0c1153bc9189175e1d969fc2b0a0944acc.zip
- Add LICENSE_FILE
- Fix build with newer databases/freetds
Diffstat (limited to 'databases')
-rw-r--r--databases/sqsh/Makefile7
-rw-r--r--databases/sqsh/files/patch-src_cmd__connect.c27
2 files changed, 31 insertions, 3 deletions
diff --git a/databases/sqsh/Makefile b/databases/sqsh/Makefile
index cb882f71c95e..d4bc6f24fff5 100644
--- a/databases/sqsh/Makefile
+++ b/databases/sqsh/Makefile
@@ -10,12 +10,10 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= Interactive tool for querying Sybase database servers
LICENSE= GPLv2+
+LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libct.so:databases/freetds
-OPTIONS_DEFINE= X11
-OPTIONS_DEFAULT=X11
-
USES= readline
GNU_CONFIGURE= yes
CONFIGURE_ENV= SYBASE="${LOCALBASE}"
@@ -24,6 +22,9 @@ ALL_TARGET= build
PLIST_FILES= bin/sqsh etc/sqshrc.default man/man1/sqsh.1.gz
+OPTIONS_DEFINE= X11
+OPTIONS_DEFAULT=X11
+
X11_USES= motif
X11_CONFIGURE_ON= --with-motif --with-x
diff --git a/databases/sqsh/files/patch-src_cmd__connect.c b/databases/sqsh/files/patch-src_cmd__connect.c
new file mode 100644
index 000000000000..2a8385c156c1
--- /dev/null
+++ b/databases/sqsh/files/patch-src_cmd__connect.c
@@ -0,0 +1,27 @@
+--- src/cmd_connect.c.orig 2012-03-14 09:17:51 UTC
++++ src/cmd_connect.c
+@@ -805,9 +805,11 @@ int cmd_connect( argc, argv )
+ /* Then we use freetds */
+ else if (strcmp(tds_version, "7.0") == 0)
+ version = CS_TDS_70;
++#if defined(CS_TDS_80)
+ else if (strcmp(tds_version, "8.0") == 0)
+ version = CS_TDS_80;
+ #endif
++#endif
+ else version = CS_TDS_50; /* default version */
+
+
+@@ -1061,10 +1063,12 @@ int cmd_connect( argc, argv )
+ case CS_TDS_70:
+ env_set( g_env, "tds_version", "7.0" );
+ break;
++#if defined(CS_TDS_80)
+ case CS_TDS_80:
+ env_set( g_env, "tds_version", "8.0" );
+ break;
+ #endif
++#endif
+ default:
+ env_set( g_env, "tds_version", "unknown" );
+ }