# $NetBSD: Makefile,v 1.10 2001/10/24 22:10:50 jlam Exp $ .include "../../databases/postgresql/Makefile.common" .include "../../databases/postgresql/Makefile.ssl" PKGNAME= tk-postgresql-${PG_VERS} PG_PKG_VERS= # empty COMMENT= Tk interface to PostgreSQL USE_BUILDLINK_ONLY= # defined BUILDLINK_DEPENDS.postgresql-lib= postgresql-lib>=${PG_BASE_VERS} BUILDLINK_DEPENDS.tcl-postgresql= tcl-postgresql>=${PG_BASE_VERS} MAKE_ENV+= INSTALLED_LIBPQ=1 INSTALLED_LIBPGTCL=1 CONFIGURE_ARGS+= --with-tcl CONFIGURE_ARGS+= --with-tk CONFIGURE_ARGS+= --with-tclconfig="${BUILDLINK_DIR}/lib" CONFIGURE_ARGS+= --with-tkconfig="${BUILDLINK_DIR}/lib" CONFIGURE_ENV+= TCLSH="${TCLSH}" TCLSH= ${LOCALBASE}/bin/tclsh DIRS_TO_BUILD= src/bin/pgtclsh ALL_TARGET= pgtksh INSTALL_TARGET= install-tk 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.tk` .include "../../databases/postgresql-lib/buildlink.mk" .include "../../databases/tcl-postgresql/buildlink.mk" .include "../../x11/tk/buildlink.mk" .include "../../mk/x11.buildlink.mk" .include "../../mk/bsd.pkg.mk"