blob: 7d55c29956ec1ec0c698f4cce508c768c7ce1b60 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# $NetBSD: Makefile,v 1.5 2001/02/16 14:17:42 wiz Exp $
.include "../../databases/postgresql/Makefile.common"
PKGNAME= tcl-${DISTNAME}
COMMENT= Tcl interface to PostgreSQL
DEPENDS+= postgresql-${PG_VERS}:../../databases/postgresql
DEPENDS+= tcl>=8.3.2:../../lang/tcl
EVAL_PREFIX+= TCLDIR=tcl
TCLSH= ${TCLDIR}/bin/tclsh
TCL_INCDIR= ${TCLDIR}/include
TCL_CONFIGDIR= ${TCLDIR}/lib
MAKE_ENV+= INSTALLED_LIBPQ=1
CONFIGURE_ARGS+= --without-perl --without-odbc
CONFIGURE_ARGS+= --with-tcl \
--with-tclconfig="${TCL_CONFIGDIR}" \
--with-includes="${TCL_INCDIR}" \
--with-libraries="${LOCALBASE}/lib ${TCLDIR}/lib"
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
${GTAR} zxCf ${PREFIX}/man \
${WRKDIR}/${DISTNAME}/doc/man.tar.gz \
`${SED} -e "s/#.*//" ${FILESDIR}/man.tcl`
.include "../../mk/bsd.pkg.mk"
|