# $NetBSD: Makefile,v 1.11 2002/04/04 07:41:05 jlam Exp $ PKGNAME= tcl-postgresql-${BASE_VERS} COMMENT= Tcl interface to PostgreSQL USE_BUILDLINK_ONLY= YES .include "../../databases/postgresql/Makefile.common" CONFIGURE_ARGS+= --with-openssl=${BUILDLINK_DIR} CONFIGURE_ARGS+= --with-tcl CONFIGURE_ARGS+= --with-tclconfig="${BUILDLINK_DIR}/lib" CONFIGURE_ENV+= TCLSH="${TCLSH}" TCLSH= ${LOCALBASE}/bin/tclsh MAKE_ENV+= INSTALLED_LIBPQ=1 DIRS_TO_BUILD= src/interfaces/libpgtcl src/bin/pgtclsh do-build: .for DIR in ${DIRS_TO_BUILD} cd ${WRKSRC}/${DIR} && ${SETENV} ${MAKE_ENV} \ ${MAKE_PROGRAM} ${MAKE_FLAGS} ${ALL_TARGET} .endfor do-install: .for DIR in ${DIRS_TO_BUILD} cd ${WRKSRC}/${DIR} && ${SETENV} ${MAKE_ENV} \ ${MAKE_PROGRAM} ${MAKE_FLAGS} ${INSTALL_TARGET} .endfor post-install: ${GTAR} zxCf ${PREFIX}/man ${WRKSRC}/doc/man.tar.gz \ `${SED} -e "s|#.*||" ${FILESDIR}/man.tcl` .include "../../databases/postgresql-lib/buildlink.mk" .include "../../lang/tcl/buildlink.mk" .include "../../mk/bsd.pkg.mk"