From 90ed63e5cf75cf5827410fbb9eea7bbacc02accc Mon Sep 17 00:00:00 2001 From: todd Date: Thu, 2 Jan 2003 07:15:34 +0000 Subject: [PATCH] add tcl multi-package to postgresql --- databases/postgresql/Makefile | 21 +++++++++++++++++++-- databases/postgresql/pkg/DESCR-tcl | 4 ++++ databases/postgresql/pkg/PFRAG.shared-tcl | 3 +++ databases/postgresql/pkg/PLIST-tcl | 8 ++++++++ 4 files changed, 34 insertions(+), 2 deletions(-) create mode 100644 databases/postgresql/pkg/DESCR-tcl create mode 100644 databases/postgresql/pkg/PFRAG.shared-tcl create mode 100644 databases/postgresql/pkg/PLIST-tcl diff --git a/databases/postgresql/Makefile b/databases/postgresql/Makefile index d35f7f97ec5..0d7faed4730 100644 --- a/databases/postgresql/Makefile +++ b/databases/postgresql/Makefile @@ -1,6 +1,7 @@ -# $OpenBSD: Makefile,v 1.59 2002/12/18 05:13:15 brad Exp $ +# $OpenBSD: Makefile,v 1.60 2003/01/02 07:15:34 todd Exp $ COMMENT= "PostgreSQL RDBMS" +COMMENT-tcl= "PostgreSQL RDBMS tcl libraries and utilities" COMMENT-clients="PostgreSQL RDBMS client libraries and utilities" COMMENT-docs= "PostgreSQL RDBMS documentation" @@ -28,7 +29,7 @@ MASTER_SITES= \ ftp://ftp.cz.postgresql.org/pub/ftp.postgresql.org/source/v${VERSION}/ \ ftp://ftp.dk.postgresql.org/mirrors/postgresql/source/v${VERSION}/ -MULTI_PACKAGES= -clients -docs +MULTI_PACKAGES= -clients -docs -tcl SUBPACKAGE?= MAKE_FILE= GNUmakefile @@ -65,6 +66,22 @@ DOCS= ${WRKSRC}/COPYRIGHT ${WRKSRC}/HISTORY \ ${WRKSRC}/register.txt \ ${WRKSRC}/doc/FAQ ${WRKSRC}/doc/FAQ_DEV ${WRKSRC}/doc/TODO +# For tcl + +TCL_INCDIR= ${LOCALBASE}/include/tcl8.3 +TK_INCDIR= ${LOCALBASE}/include/tk8.3 +CONFIGURE_ENV+= WISH="${LOCALBASE}/bin/wish8.3" +CONFIGURE_ARGS+= --with-tcl \ + --with-tclconfig="${LOCALBASE}/lib/tcl8.3 ${LOCALBASE}/lib/tk8.3" \ + --with-includes="${LOCALBASE}/include ${TCL_INCDIR} ${TK_INCDIR}" + +.if defined(PACKAGING) +. if ${SUBPACKAGE} == "-tcl" +RUN_DEPENDS= ::databases/postgresql +LIB_DEPENDS+= tk83::x11/tk/8.3 +. endif +.endif + post-install: ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/postgresql ${INSTALL_DATA} ${DOCS} ${PREFIX}/share/doc/postgresql diff --git a/databases/postgresql/pkg/DESCR-tcl b/databases/postgresql/pkg/DESCR-tcl new file mode 100644 index 00000000000..85247df80d8 --- /dev/null +++ b/databases/postgresql/pkg/DESCR-tcl @@ -0,0 +1,4 @@ +PostgreSQL RDBMS tcl applications, libraries and include files +for use by tcl/tk. + +Package includes pgtksh/pgtclsh - SQL enabled shells for tk and tcl. diff --git a/databases/postgresql/pkg/PFRAG.shared-tcl b/databases/postgresql/pkg/PFRAG.shared-tcl new file mode 100644 index 00000000000..3a43c0af9a0 --- /dev/null +++ b/databases/postgresql/pkg/PFRAG.shared-tcl @@ -0,0 +1,3 @@ +@comment $OpenBSD: PFRAG.shared-tcl,v 1.1 2003/01/02 07:15:34 todd Exp $ +lib/libpgtcl.so.2.2 +DYNLIBDIR(%B) diff --git a/databases/postgresql/pkg/PLIST-tcl b/databases/postgresql/pkg/PLIST-tcl new file mode 100644 index 00000000000..5eb3a8d296b --- /dev/null +++ b/databases/postgresql/pkg/PLIST-tcl @@ -0,0 +1,8 @@ +@comment $OpenBSD: PLIST-tcl,v 1.1 2003/01/02 07:15:34 todd Exp $ +bin/pgtclsh +bin/pgtksh +include/postgresql/libpgtcl.h +lib/libpgtcl.a +man/man1/pgtclsh.1 +man/man1/pgtksh.1 +%%SHARED%%