2000-12-11 17:43:11 +01:00
|
|
|
# $NetBSD: Makefile,v 1.4 2000/12/11 16:43:12 jlam Exp $
|
|
|
|
|
|
|
|
.include "../../databases/postgresql/Makefile.common"
|
2000-03-18 18:45:12 +01:00
|
|
|
|
|
|
|
PKGNAME= tcl-${DISTNAME}
|
|
|
|
|
2000-05-20 21:35:31 +02:00
|
|
|
DEPENDS+= postgresql-${PG_VERS}:../../databases/postgresql
|
2000-12-11 17:43:11 +01:00
|
|
|
DEPENDS+= tcl>=8.3.2:../../lang/tcl
|
2000-03-18 18:45:12 +01:00
|
|
|
|
2000-12-11 17:43:11 +01:00
|
|
|
EVAL_PREFIX+= TCLDIR=tcl
|
|
|
|
TCLSH= ${TCLDIR}/bin/tclsh
|
|
|
|
TCL_INCDIR= ${TCLDIR}/include
|
|
|
|
TCL_CONFIGDIR= ${TCLDIR}/lib
|
2000-03-18 18:45:12 +01:00
|
|
|
|
|
|
|
MAKE_ENV+= INSTALLED_LIBPQ=1
|
|
|
|
|
|
|
|
CONFIGURE_ARGS+= --without-perl --without-odbc
|
|
|
|
CONFIGURE_ARGS+= --with-tcl \
|
|
|
|
--with-tclconfig="${TCL_CONFIGDIR}" \
|
|
|
|
--with-includes="${TCL_INCDIR}" \
|
2000-12-11 17:43:11 +01:00
|
|
|
--with-libraries="${LOCALBASE}/lib ${TCLDIR}/lib"
|
2000-03-18 18:45:12 +01:00
|
|
|
CONFIGURE_ENV+= TCLSH="${TCLSH}"
|
|
|
|
|
|
|
|
DIRS_TO_BUILD= interfaces/libpgtcl \
|
|
|
|
bin/pgtclsh \
|
|
|
|
pl/tcl
|
|
|
|
|
|
|
|
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
|
|
|
|
strip ${PREFIX}/bin/pgtclsh
|
2000-05-20 21:35:31 +02:00
|
|
|
${GTAR} zxCf ${PREFIX}/man \
|
|
|
|
${WRKDIR}/${DISTNAME}/doc/man.tar.gz \
|
|
|
|
`${SED} -e "s/#.*//" ${FILESDIR}/man.tcl`
|
2000-03-18 18:45:12 +01:00
|
|
|
|
2000-12-11 17:43:11 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|