summaryrefslogtreecommitdiff
path: root/databases/tcl-postgresql
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2000-03-18 17:45:12 +0000
committerjlam <jlam@pkgsrc.org>2000-03-18 17:45:12 +0000
commite644a79986b26e4666f17dcd6cb2f2ba2127b5d9 (patch)
treed2e820371e1111b858d09969f3a1c0f2d83898b8 /databases/tcl-postgresql
parentfdbd3710d5e73017f7723f107f210be5eada438e (diff)
downloadpkgsrc-e644a79986b26e4666f17dcd6cb2f2ba2127b5d9.tar.gz
tcl-postgresql: Tcl interface to PostgreSQL
Diffstat (limited to 'databases/tcl-postgresql')
-rw-r--r--databases/tcl-postgresql/Makefile38
-rw-r--r--databases/tcl-postgresql/pkg/COMMENT1
-rw-r--r--databases/tcl-postgresql/pkg/DESCR3
-rw-r--r--databases/tcl-postgresql/pkg/PLIST6
4 files changed, 48 insertions, 0 deletions
diff --git a/databases/tcl-postgresql/Makefile b/databases/tcl-postgresql/Makefile
new file mode 100644
index 00000000000..ea643e3a5ef
--- /dev/null
+++ b/databases/tcl-postgresql/Makefile
@@ -0,0 +1,38 @@
+# $NetBSD: Makefile,v 1.1.1.1 2000/03/18 17:45:12 jlam Exp $
+
+PKGNAME= tcl-${DISTNAME}
+
+DEPENDS+= postgresql-6.5.3:../../databases/postgresql
+DEPENDS+= tcl-8.0.5:../../lang/tcl80
+
+TCLSH= ${LOCALBASE}/bin/tclsh8.0
+TCL_INCDIR= ${LOCALBASE}/include/tcl8.0
+TCL_CONFIGDIR= ${LOCALBASE}/lib/tcl8.0
+
+MAKE_ENV+= INSTALLED_LIBPQ=1
+
+CONFIGURE_ARGS+= --without-perl --without-odbc
+CONFIGURE_ARGS+= --with-tcl \
+ --with-tclconfig="${TCL_CONFIGDIR}" \
+ --with-includes="${TCL_INCDIR}" \
+ --with-libraries="${LOCALBASE}/lib"
+CONFIGURE_ENV+= TCLSH="${TCLSH}"
+
+DIRS_TO_BUILD= interfaces/libpgtcl \
+ bin/pgtclsh \
+ pl/tcl
+
+do-build:
+.for DIR in ${DIRS_TO_BUILD}
+ cd ${WRKSRC}/${DIR} && ${SETENV} ${MAKE_ENV} \
+ ${MAKE_PROGRAM} ${MAKE_FLAGS} ${ALL_TARGET}
+.endfor
+
+do-install:
+.for DIR in ${DIRS_TO_BUILD}
+ cd ${WRKSRC}/${DIR} && ${SETENV} ${MAKE_ENV} \
+ ${MAKE_PROGRAM} ${MAKE_FLAGS} ${INSTALL_TARGET}
+.endfor
+ strip ${PREFIX}/bin/pgtclsh
+
+.include "../../databases/postgresql/Makefile.common"
diff --git a/databases/tcl-postgresql/pkg/COMMENT b/databases/tcl-postgresql/pkg/COMMENT
new file mode 100644
index 00000000000..7aff18a0c08
--- /dev/null
+++ b/databases/tcl-postgresql/pkg/COMMENT
@@ -0,0 +1 @@
+Tcl interface to PostgreSQL
diff --git a/databases/tcl-postgresql/pkg/DESCR b/databases/tcl-postgresql/pkg/DESCR
new file mode 100644
index 00000000000..04877175907
--- /dev/null
+++ b/databases/tcl-postgresql/pkg/DESCR
@@ -0,0 +1,3 @@
+Tcl interface to PostgreSQL, including front-end clients, a loadable
+shared object for Tcl clients, and the PL/Tcl procedural language for
+the PostgreSQL backend.
diff --git a/databases/tcl-postgresql/pkg/PLIST b/databases/tcl-postgresql/pkg/PLIST
new file mode 100644
index 00000000000..a93ff24cc3c
--- /dev/null
+++ b/databases/tcl-postgresql/pkg/PLIST
@@ -0,0 +1,6 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2000/03/18 17:45:13 jlam Exp $
+bin/pgtclsh
+include/libpgtcl.h
+lib/libpgtcl.a
+lib/libpgtcl.so.2.0
+lib/pltcl.so