2001-06-23 21:26:48 +02:00
|
|
|
# $NetBSD: Makefile,v 1.9 2001/06/23 19:26:52 jlam Exp $
|
2000-12-11 17:43:11 +01:00
|
|
|
|
|
|
|
.include "../../databases/postgresql/Makefile.common"
|
2001-05-14 16:53:52 +02:00
|
|
|
.include "../../databases/postgresql/Makefile.ssl"
|
2000-03-18 18:45:12 +01:00
|
|
|
|
2001-05-14 16:53:52 +02:00
|
|
|
PKGNAME= tcl-postgresql-${PG_VERS}
|
|
|
|
PG_PKG_VERS= # empty
|
2001-02-16 15:17:22 +01:00
|
|
|
COMMENT= Tcl interface to PostgreSQL
|
|
|
|
|
2001-06-23 21:26:48 +02:00
|
|
|
USE_BUILDLINK_ONLY= # defined
|
|
|
|
BUILDLINK_DEPENDS.postgresql-lib= postgresql-lib>=${PG_BASE_VERS}
|
2000-03-18 18:45:12 +01:00
|
|
|
|
|
|
|
MAKE_ENV+= INSTALLED_LIBPQ=1
|
|
|
|
|
2001-05-14 16:53:52 +02:00
|
|
|
CONFIGURE_ARGS+= --with-tcl
|
2001-06-21 23:40:07 +02:00
|
|
|
CONFIGURE_ARGS+= --with-tclconfig="${BUILDLINK_DIR}/lib"
|
2000-03-18 18:45:12 +01:00
|
|
|
CONFIGURE_ENV+= TCLSH="${TCLSH}"
|
2001-06-21 23:40:07 +02:00
|
|
|
TCLSH= ${LOCALBASE}/bin/tclsh
|
2000-03-18 18:45:12 +01:00
|
|
|
|
2001-05-14 16:53:52 +02:00
|
|
|
DIRS_TO_BUILD= src/interfaces/libpgtcl src/bin/pgtclsh
|
2000-03-18 18:45:12 +01:00
|
|
|
|
|
|
|
do-build:
|
|
|
|
.for DIR in ${DIRS_TO_BUILD}
|
2001-05-14 16:53:52 +02:00
|
|
|
cd ${WRKSRC}/${DIR} && ${SETENV} ${MAKE_ENV} \
|
2000-03-18 18:45:12 +01:00
|
|
|
${MAKE_PROGRAM} ${MAKE_FLAGS} ${ALL_TARGET}
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
.for DIR in ${DIRS_TO_BUILD}
|
2001-05-14 16:53:52 +02:00
|
|
|
cd ${WRKSRC}/${DIR} && ${SETENV} ${MAKE_ENV} \
|
2000-03-18 18:45:12 +01:00
|
|
|
${MAKE_PROGRAM} ${MAKE_FLAGS} ${INSTALL_TARGET}
|
|
|
|
.endfor
|
2001-05-14 16:53:52 +02:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
${GTAR} zxCf ${PREFIX}/man ${WRKSRC}/doc/man.tar.gz \
|
|
|
|
`${SED} -e "s|#.*||" ${FILESDIR}/man.tcl`
|
2000-03-18 18:45:12 +01:00
|
|
|
|
2001-06-23 21:26:48 +02:00
|
|
|
.include "../../databases/postgresql-lib/buildlink.mk"
|
|
|
|
.include "../../lang/tcl/buildlink.mk"
|
2000-12-11 17:43:11 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|