diff options
author | Vanilla I. Shu <vanilla@FreeBSD.org> | 2002-02-19 08:40:00 +0000 |
---|---|---|
committer | Vanilla I. Shu <vanilla@FreeBSD.org> | 2002-02-19 08:40:00 +0000 |
commit | d90bc6b5b23f14cd0822c4b5529f0d3f4a3ebd0a (patch) | |
tree | c1228490b3bb77983f05d9b6775524d377191c30 /databases/postgresql-tcltk/Makefile | |
parent | This is a port of the PL/Tcl module of the postgresql-7.2 distribution. (diff) |
This is a port of the Tcl/Tk stuff in the postgresql-7.2
distribution. It includes pgtclsh, pgtksh and also the infamous
pgaccess GUI.
PR: ports/34860
Submitted by: Palle Girgensohn <girgen@partitur.se>
Notes
Notes:
svn path=/head/; revision=54899
Diffstat (limited to 'databases/postgresql-tcltk/Makefile')
-rw-r--r-- | databases/postgresql-tcltk/Makefile | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/databases/postgresql-tcltk/Makefile b/databases/postgresql-tcltk/Makefile new file mode 100644 index 000000000000..019338399df0 --- /dev/null +++ b/databases/postgresql-tcltk/Makefile @@ -0,0 +1,63 @@ +# New ports collection makefile for: PostgreSQL JDBC +# Date created: January 14, 2002 +# Whom: Palle Girgensohn <girgen@partitur.se> +# +# $FreeBSD$ +# + +PORTNAME= postgresql-tcltk +PORTVERSION= 7.2 +CATEGORIES= databases tcl83 tk83 + +MAINTAINER= girgen@partitur.se + +POSTGRESQL_SUBPORT=YES +.include <${.CURDIR}/../postgresql7/Makefile> + +LIB_DEPENDS= tcl${TCLVERSION:S/.//}:${PORTSDIR}/lang/tcl${TCLVERSION:S/.//} \ + pq:${PORTSDIR}/databases/postgresql7 + +# you can use "make TCLVERSION=8.4" or similar for your favourite tcl version +TCLVERSION?= 8.3 +PLIST_SUB+= TCLVERSION=${TCLVERSION} +CONFIGURE_ARGS= --with-tcl \ + --with-tclconfig=${TCLCONFIG} \ + --with-includes=${INCDIRS} + +TCL_INCDIR= ${LOCALBASE}/include/tcl${TCLVERSION} +TCLCONFIG= ${LOCALBASE}/lib/tcl${TCLVERSION} +MAKE_ENV+= TCL_INCDIR=${TCL_INCDIR} + +.if defined(WITHOUT_TK) +CONFIGURE_ARGS+= --without-tk +INCDIRS= ${TCL_INCDIR} +PLIST_SUB+= TK="@comment " +.else +CONFIGURE_ARGS+= --with-tkconfig="${TKCONFIG}" +TK_INCDIR= ${LOCALBASE}/include/tk${TCLVERSION} +CONFIGURE_ENV+= WISH=${LOCALBASE}/bin/wish${TCLVERSION} +LIB_DEPENDS+= tk${TCLVERSION:S/.//}:${PORTSDIR}/x11-toolkits/tk${TCLVERSION:S/.//} +TKCONFIG= ${LOCALBASE}/lib/tk${TCLVERSION} +INCDIRS= ${TCL_INCDIR}:${TK_INCDIR} +PLIST_SUB+= TK="" +.endif + +do-build: + @ cd ${WRKSRC} ; ${SETENV} ${MAKE_ENV} ${GMAKE} -C src/bin/pgtclsh + @ cd ${WRKSRC} ; ${SETENV} ${MAKE_ENV} ${GMAKE} -C src/interfaces/libpgtcl +.if !defined(WITHOUT_TK) + @ cd ${WRKSRC} ; ${SETENV} ${MAKE_ENV} ${GMAKE} -C src/bin/pgaccess +.endif + +do-install: + @ cd ${WRKSRC} ; ${SETENV} ${MAKE_ENV} ${GMAKE} -C src/bin/pgtclsh install + @ cd ${WRKSRC} ; ${SETENV} ${MAKE_ENV} ${GMAKE} -C src/interfaces/libpgtcl install +.if !defined(WITHOUT_TK) + @ cd ${WRKSRC} ; ${SETENV} ${MAKE_ENV} ${GMAKE} -C src/bin/pgaccess install +.endif +# Preparing a loadable TCL-package (pkgIndex.tcl) + @${MKDIR} ${PREFIX}/lib/tcl${TCLVERSION}/Pgtcl1.3 + @${SED} "s|%%PREFIX%%|${PREFIX}|g" < ${FILESDIR}/pkgIndex.tcl.in \ + > ${PREFIX}/lib/tcl${TCLVERSION}/Pgtcl1.3/pkgIndex.tcl + +.include <bsd.port.mk> |