34d11d8a0f
FOO_REQD=1.0 being converted to foo>=1.0, one can now directly specify the dependency pattern as FOO_DEPENDS=foo>=1.0. This allows things like JPEG_DEPENDS=jpeg-6b, or fancier expressions like for postgresql-lib. Change existing FOO_REQD definitions in Makefiles to FOO_DEPENDS.
40 lines
1.1 KiB
Makefile
40 lines
1.1 KiB
Makefile
# $NetBSD: Makefile,v 1.9 2001/06/23 19:26:52 jlam Exp $
|
|
|
|
.include "../../databases/postgresql/Makefile.common"
|
|
.include "../../databases/postgresql/Makefile.ssl"
|
|
|
|
PKGNAME= tcl-postgresql-${PG_VERS}
|
|
PG_PKG_VERS= # empty
|
|
COMMENT= Tcl interface to PostgreSQL
|
|
|
|
USE_BUILDLINK_ONLY= # defined
|
|
BUILDLINK_DEPENDS.postgresql-lib= postgresql-lib>=${PG_BASE_VERS}
|
|
|
|
MAKE_ENV+= INSTALLED_LIBPQ=1
|
|
|
|
CONFIGURE_ARGS+= --with-tcl
|
|
CONFIGURE_ARGS+= --with-tclconfig="${BUILDLINK_DIR}/lib"
|
|
CONFIGURE_ENV+= TCLSH="${TCLSH}"
|
|
TCLSH= ${LOCALBASE}/bin/tclsh
|
|
|
|
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"
|