summaryrefslogtreecommitdiffstats
path: root/databases
diff options
context:
space:
mode:
authorwill <will@FreeBSD.org>2000-04-06 04:07:48 +0000
committerwill <will@FreeBSD.org>2000-04-06 04:07:48 +0000
commit9ec166d61142eee1b3eabf03b5d1aee92353826c (patch)
tree4dac9ecf91f8cf2e8bdddff7a6bf53826e3ad096 /databases
parent3155313aa574004492a8d74b2b008b2095fe9010 (diff)
downloadFreeBSD-ports-9ec166d61142eee1b3eabf03b5d1aee92353826c.zip
FreeBSD-ports-9ec166d61142eee1b3eabf03b5d1aee92353826c.tar.gz
Add the mysqltcl port, which is a suite that allows manipulation of MySQL
through Tcl. The port installs only the libraries. PR: 13514 Submitted by: Mikhail Teterin <mi@aldan.algebra.com>
Diffstat (limited to 'databases')
-rw-r--r--databases/Makefile1
-rw-r--r--databases/mysqltcl/Makefile38
-rw-r--r--databases/mysqltcl/distinfo1
-rw-r--r--databases/mysqltcl/files/Makefile.bsd16
-rw-r--r--databases/mysqltcl/files/patch-aa9
-rw-r--r--databases/mysqltcl/files/patch-ab8
-rw-r--r--databases/mysqltcl/pkg-comment1
-rw-r--r--databases/mysqltcl/pkg-descr12
-rw-r--r--databases/mysqltcl/pkg-plist3
9 files changed, 89 insertions, 0 deletions
diff --git a/databases/Makefile b/databases/Makefile
index 7b4f3f0..e0ce4ce 100644
--- a/databases/Makefile
+++ b/databases/Makefile
@@ -17,6 +17,7 @@
SUBDIR += mysql-jdbc-mm
SUBDIR += mysql322-client
SUBDIR += mysql322-server
+ SUBDIR += mysqltcl
SUBDIR += p5-DBD-CSV
SUBDIR += p5-DBD-Pg
SUBDIR += p5-DBI
diff --git a/databases/mysqltcl/Makefile b/databases/mysqltcl/Makefile
new file mode 100644
index 0000000..7891b3a
--- /dev/null
+++ b/databases/mysqltcl/Makefile
@@ -0,0 +1,38 @@
+# New ports collection makefile for: mysqltcl
+# Version required: 1.53
+# Date created: August 31, 1999
+# Whom: Mikhail Teterin <mi@aldan.algebra.com>
+#
+# $FreeBSD$
+#
+
+DISTNAME= mysqltcl-1.53
+CATEGORIES= databases tcl80
+MASTER_SITES= http://www.mysql.com/Contrib/
+
+MAINTAINER= mi@aldan.algebra.com
+
+LIB_DEPENDS= mysqlclient.6:${PORTSDIR}/databases/mysql322-client \
+ ${TCL_NODOT}:${PORTSDIR}/lang/${TCL_NODOT}
+
+TCL_VERSION?= tcl8.0
+TCL_NODOT= ${TCL_VERSION:S/.//}
+SQL_DIR= ${PREFIX}/lib/${TCL_VERSION}/mysqltcl
+PLIST_SUB+= TCL_VERSION=${TCL_VERSION} LIB_NAME=${LIB_NAME}
+MANN= mysqltcl.n
+
+do-build:
+ cd ${WRKSRC} && ${MAKE} PREFIX="${PREFIX}" \
+ TCL_VERSION=${TCL_VERSION} TCL_NODOT=${TCL_NODOT} \
+ -f ${FILESDIR}/Makefile.bsd ${LIB_NAME}
+
+do-install:
+ ${MKDIR} ${SQL_DIR}
+ ${INSTALL_DATA} ${WRKSRC}/${LIB_NAME} ${SQL_DIR}
+ ${ECHO} "package ifneeded mysql 1.53 {load ${SQL_DIR}/${LIB_NAME}}" \
+ > ${SQL_DIR}/pkgIndex.tcl
+ ${INSTALL_MAN} ${WRKSRC}/${MANN} ${PREFIX}/man/mann
+
+.include <bsd.port.mk>
+
+LIB_NAME!= ${MAKE} -f ${FILESDIR}/Makefile.bsd printname
diff --git a/databases/mysqltcl/distinfo b/databases/mysqltcl/distinfo
new file mode 100644
index 0000000..36414fe
--- /dev/null
+++ b/databases/mysqltcl/distinfo
@@ -0,0 +1 @@
+MD5 (mysqltcl-1.53.tar.gz) = c8ff173c74dae1abd1b356262e7dda3b
diff --git a/databases/mysqltcl/files/Makefile.bsd b/databases/mysqltcl/files/Makefile.bsd
new file mode 100644
index 0000000..72cd0fc
--- /dev/null
+++ b/databases/mysqltcl/files/Makefile.bsd
@@ -0,0 +1,16 @@
+LIB = mysqltcl
+SHLIB_MAJOR= 1
+SHLIB_MINOR= 0
+
+SRCS = mysqltcl.c
+CFLAGS += -I${PREFIX}/include/${TCL_VERSION}/
+CFLAGS += -I${PREFIX}/include/mysql/
+LDADD += -L${PREFIX}/lib -l${TCL_NODOT}
+LDADD += -L${PREFIX}/lib/mysql -lmysqlclient
+
+all: ${SHLIB_NAME}
+
+printname:
+ @echo ${SHLIB_NAME}
+
+.include <bsd.lib.mk>
diff --git a/databases/mysqltcl/files/patch-aa b/databases/mysqltcl/files/patch-aa
new file mode 100644
index 0000000..bcc0f0a
--- /dev/null
+++ b/databases/mysqltcl/files/patch-aa
@@ -0,0 +1,9 @@
+--- mysqltcl.c.orig Mon Jul 6 11:35:17 1998
++++ mysqltcl.c Wed Sep 1 01:27:44 1999
+@@ -743,5 +743,5 @@
+ */
+ if (strlen (MysqlHandlePrefix) == MYSQL_HPREFIX_LEN)
+- return TCL_OK;
++ return Tcl_PkgProvide(interp, "mysql", "1.53");
+ else
+ {
diff --git a/databases/mysqltcl/files/patch-ab b/databases/mysqltcl/files/patch-ab
new file mode 100644
index 0000000..9f8e5de
--- /dev/null
+++ b/databases/mysqltcl/files/patch-ab
@@ -0,0 +1,8 @@
+--- mysqltcl.n.orig Mon Jul 6 12:04:27 1998
++++ mysqltcl.n Wed Sep 1 01:52:23 1999
+@@ -36,2 +36,5 @@
+ MySQLTcl - MySQL server access commands for Tcl
++.SH SYNOPSIS
++.P
++package require mysql
+ .SH "INTRODUCTION"
diff --git a/databases/mysqltcl/pkg-comment b/databases/mysqltcl/pkg-comment
new file mode 100644
index 0000000..100cd7b
--- /dev/null
+++ b/databases/mysqltcl/pkg-comment
@@ -0,0 +1 @@
+TCL module for accessing MySQL databases based on msqltcl
diff --git a/databases/mysqltcl/pkg-descr b/databases/mysqltcl/pkg-descr
new file mode 100644
index 0000000..bdc1aac
--- /dev/null
+++ b/databases/mysqltcl/pkg-descr
@@ -0,0 +1,12 @@
+From the package man-page:
+
+ MySQLTcl is a collection of Tcl commands and a Tcl global
+ array that provide access to one or more mysql database
+ servers.
+
+ MySQLTcl is nothing more than a patched version of a
+ patched version of Hakan Soderstrom's patch of Tom
+ Poindexter's Sybtcl. Most of the documentention has been
+ left as it was when I started to work with this interface
+ (a patch of msqltcl-1.50). However, I have tried to
+ replace appropriate occurrences of msql by MySQL.
diff --git a/databases/mysqltcl/pkg-plist b/databases/mysqltcl/pkg-plist
new file mode 100644
index 0000000..caa203b
--- /dev/null
+++ b/databases/mysqltcl/pkg-plist
@@ -0,0 +1,3 @@
+lib/%%TCL_VERSION%%/mysqltcl/%%LIB_NAME%%
+lib/%%TCL_VERSION%%/mysqltcl/pkgIndex.tcl
+@dirrm lib/%%TCL_VERSION%%/mysqltcl
OpenPOWER on IntegriCloud