summaryrefslogtreecommitdiff
path: root/databases/postgresql
diff options
context:
space:
mode:
authorjwise <jwise@pkgsrc.org>2000-02-20 00:11:19 +0000
committerjwise <jwise@pkgsrc.org>2000-02-20 00:11:19 +0000
commitf76c8cd43a995895e5a92b8c884074d6bb6c76a3 (patch)
tree95d6c96f8889a44b45c5e313c09517e317e26bc8 /databases/postgresql
parent831aed69fad86fc8926263acf1934fab47c52ba6 (diff)
downloadpkgsrc-f76c8cd43a995895e5a92b8c884074d6bb6c76a3.tar.gz
Hmmm. I thought I'd committed this a long time ago...
Split PGSQL_USE_TCL into PGSQL_USE_TCL and PGSQL_USE_TK so that postgres can be built with tcl support on a machine without tk (such as a machine without X installed...)
Diffstat (limited to 'databases/postgresql')
-rw-r--r--databases/postgresql/Makefile23
-rw-r--r--databases/postgresql/pkg/PLIST.tcl3
-rw-r--r--databases/postgresql/pkg/PLIST.tk2
3 files changed, 20 insertions, 8 deletions
diff --git a/databases/postgresql/Makefile b/databases/postgresql/Makefile
index 7c057effd8c..08eaad250c7 100644
--- a/databases/postgresql/Makefile
+++ b/databases/postgresql/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.45 2000/01/15 18:46:24 jlam Exp $
+# $NetBSD: Makefile,v 1.46 2000/02/20 00:11:19 jwise Exp $
# FreeBSD Id: Makefile,v 1.22 1997/12/24 01:21:37 alex Exp
#
@@ -45,37 +45,48 @@ HAS_CONFIGURE= YES
# Default to building with Tcl/Tk interface.
#
PGSQL_USE_TCL?= YES
+PGSQL_USE_TK?= YES
.if (${PGSQL_USE_TCL} == "YES")
DEPENDS+= tcl-8.0.5:../../lang/tcl80
-DEPENDS+= tk-8.0.5:../../x11/tk80
TCLSH= ${LOCALBASE}/bin/tclsh8.0
TCL_INCDIR= ${LOCALBASE}/include/tcl8.0
TCL_CONFIGDIR= ${LOCALBASE}/lib/tcl8.0
+
+CONFIGURE_ENV+= TCLSH="${TCLSH}"
+
+.if (${PGSQL_USE_TK} == "YES")
+DEPENDS+= tk-8.0.5:../../x11/tk80
+
TK_INCDIR= ${LOCALBASE}/include/tk8.0
TK_CONFIGDIR= ${LOCALBASE}/lib/tk8.0
USE_X11= YES
-CONFIGURE_ENV+= TCLSH="${TCLSH}"
+
+TK_CONFIG= --with-tkconfig="${TK_CONFIGDIR}"
+.endif
CONFIGURE_ARGS+= --with-tcl \
--with-tclconfig="${TCL_CONFIGDIR}" \
- --with-tkconfig="${TK_CONFIGDIR}" \
--with-includes="${TCL_INCDIR} ${TK_INCDIR}" \
- --with-libraries="${LOCALBASE}/lib"
+ --with-libraries="${LOCALBASE}/lib" \
+ ${TK_CONFIG}
.endif
PGUSER?= pgsql
PGGROUP?= ingres
PGPREFIX= ${PREFIX}/${PGUSER}
-BUILD_DEFS= PGUSER PGROUP PGSQL_USE_TCL
+BUILD_DEFS= PGUSER PGROUP PGSQL_USE_TCL PGSQL_USE_TK
MESSAGE_FILE= ${FILESDIR}/post-install-notes
REQ_FILE= ${WRKDIR}/REQ
PLIST_SRC= ${PKGDIR}/PLIST.notcl
.if (${PGSQL_USE_TCL} == "YES")
PLIST_SRC+= ${PKGDIR}/PLIST.tcl
+.if (${PGSQL_USE_TK} == "YES")
+PLIST_SRC+= ${PKGDIR}/PLIST.tk
+.endif
.endif
PLIST_SRC+= ${PKGDIR}/PLIST.doc ${PKGDIR}/PLIST.dirrm
PLIST_SUBST= PGUSER=${PGUSER}
diff --git a/databases/postgresql/pkg/PLIST.tcl b/databases/postgresql/pkg/PLIST.tcl
index e3bb756e1a0..8beec5c80b1 100644
--- a/databases/postgresql/pkg/PLIST.tcl
+++ b/databases/postgresql/pkg/PLIST.tcl
@@ -1,6 +1,5 @@
-@comment $NetBSD: PLIST.tcl,v 1.2 1999/09/20 23:38:51 jlam Exp $
+@comment $NetBSD: PLIST.tcl,v 1.3 2000/02/20 00:11:20 jwise Exp $
${PGUSER}/bin/pgtclsh
-${PGUSER}/bin/pgtksh
${PGUSER}/include/libpgtcl.h
${PGUSER}/lib/libpgtcl.a
${PGUSER}/lib/libpgtcl.so.2.0
diff --git a/databases/postgresql/pkg/PLIST.tk b/databases/postgresql/pkg/PLIST.tk
new file mode 100644
index 00000000000..db340081d28
--- /dev/null
+++ b/databases/postgresql/pkg/PLIST.tk
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST.tk,v 1.1 2000/02/20 00:11:21 jwise Exp $
+${PGUSER}/bin/pgtksh