2000-07-19 03:18:08 +02:00
|
|
|
# New ports collection makefile for: PostgreSQL
|
|
|
|
# Date created: 7 Jun 2000
|
|
|
|
# Whom: Tomokatsu Saito <saito@a2z.co.jp>
|
1998-09-08 17:30:19 +02:00
|
|
|
#
|
1999-08-25 07:28:01 +02:00
|
|
|
# $FreeBSD$
|
1998-09-08 17:30:19 +02:00
|
|
|
#
|
|
|
|
|
2002-10-19 15:40:37 +02:00
|
|
|
PORTNAME= postgresql-tcltk
|
1998-09-08 17:30:19 +02:00
|
|
|
CATEGORIES= japanese databases
|
|
|
|
|
2000-07-19 03:18:08 +02:00
|
|
|
MAINTAINER= saito@a2z.co.jp
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= An TCL interface to the database PostgreSQL, including a tk GUI
|
1998-09-08 17:30:19 +02:00
|
|
|
|
2002-10-19 15:40:37 +02:00
|
|
|
POSTGRESQL_SUBPORT=YES
|
|
|
|
.include <${.CURDIR}/../../databases/postgresql7/Makefile>
|
1998-09-08 17:30:19 +02:00
|
|
|
|
2002-10-19 15:40:37 +02:00
|
|
|
LIB_DEPENDS= tcl80jp.1:${PORTSDIR}/japanese/tcl80 \
|
|
|
|
pq:${PORTSDIR}/databases/postgresql7
|
2001-05-08 14:36:01 +02:00
|
|
|
|
2002-10-19 15:40:37 +02:00
|
|
|
TCLVERSION?= 8.0jp
|
|
|
|
PLIST_SUB+= TCLVERSION=${TCLVERSION}
|
|
|
|
CONFIGURE_ARGS= --with-tcl \
|
|
|
|
--with-tclconfig=${TCLCONFIG} \
|
|
|
|
--with-includes=${INCDIRS}
|
2000-07-19 03:18:08 +02:00
|
|
|
|
2002-10-19 15:40:37 +02:00
|
|
|
TCL_INCDIR= ${LOCALBASE}/include/tcl${TCLVERSION}
|
|
|
|
TCLCONFIG= ${LOCALBASE}/lib/tcl${TCLVERSION}
|
|
|
|
MAKE_ENV+= TCL_INCDIR=${TCL_INCDIR}
|
1998-09-08 17:30:19 +02:00
|
|
|
|
2002-10-19 15:40:37 +02:00
|
|
|
CONFIGURE_ARGS+= --with-tkconfig="${TKCONFIG}"
|
|
|
|
TK_INCDIR= ${LOCALBASE}/include/tk${TCLVERSION}
|
|
|
|
CONFIGURE_ENV+= WISH=${LOCALBASE}/bin/wish${TCLVERSION}
|
|
|
|
LIB_DEPENDS+= tcl80jp:${PORTSDIR}/japanese/tcl80 \
|
2001-09-04 11:45:05 +02:00
|
|
|
tk80jp:${PORTSDIR}/japanese/tk80
|
2002-10-19 15:40:37 +02:00
|
|
|
TKCONFIG= ${LOCALBASE}/lib/tk${TCLVERSION}
|
|
|
|
INCDIRS= ${TCL_INCDIR}:${TK_INCDIR}
|
|
|
|
PLIST_SUB+= TK=""
|
2001-05-08 14:36:01 +02:00
|
|
|
|
2002-10-19 15:40:37 +02:00
|
|
|
do-build:
|
|
|
|
@ cd ${WRKSRC} ; ${SETENV} ${MAKE_ENV} ${GMAKE} -C src/bin/pgtclsh
|
|
|
|
@ cd ${WRKSRC} ; ${SETENV} ${MAKE_ENV} ${GMAKE} -C src/interfaces/libpgtcl
|
2000-07-19 03:18:08 +02:00
|
|
|
|
2002-10-19 15:40:37 +02:00
|
|
|
do-install:
|
|
|
|
@ cd ${WRKSRC} ; ${SETENV} ${MAKE_ENV} ${GMAKE} -C src/bin/pgtclsh install
|
|
|
|
@ cd ${WRKSRC} ; ${SETENV} ${MAKE_ENV} ${GMAKE} -C src/interfaces/libpgtcl install
|
2001-05-08 14:36:01 +02:00
|
|
|
# Preparing a loadable TCL-package (pkgIndex.tcl)
|
2002-10-19 15:40:37 +02:00
|
|
|
@${MKDIR} ${PREFIX}/lib/tcl${TCLVERSION}/Pgtcl1.3
|
2001-05-08 14:36:01 +02:00
|
|
|
@${SED} "s|%%PREFIX%%|${PREFIX}|g" < ${FILESDIR}/pkgIndex.tcl.in \
|
2002-10-19 15:40:37 +02:00
|
|
|
> ${PREFIX}/lib/tcl${TCLVERSION}/Pgtcl1.3/pkgIndex.tcl
|
1998-09-08 17:30:19 +02:00
|
|
|
|
2000-07-19 03:18:08 +02:00
|
|
|
.include <bsd.port.mk>
|