blob: 684cc532b1a54faf70b9514fb9dbb7c2b6898e0a (
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
|
# $NetBSD: Makefile,v 1.3 2000/09/01 14:34:21 jwise Exp $
PKGNAME= tk-${DISTNAME}
DEPENDS+= tcl-postgresql-${PG_VERS}:../../databases/tcl-postgresql
DEPENDS+= tk-8.3.2:../../x11/tk
TCLSH= ${LOCALBASE}/bin/tclsh
TCL_INCDIR= ${LOCALBASE}/include
TCL_CONFIGDIR= ${LOCALBASE}/lib
TK_INCDIR= ${LOCALBASE}/include
TK_CONFIGDIR= ${LOCALBASE}/lib
USE_X11= # defined
MAKE_ENV+= INSTALLED_LIBPQ=1 INSTALLED_LIBPGTCL=1
CONFIGURE_ARGS+= --without-perl --without-odbc
CONFIGURE_ARGS+= --with-tcl \
--with-tclconfig="${TCL_CONFIGDIR}" \
--with-tkconfig="${TK_CONFIGDIR}" \
--with-includes="${TCL_INCDIR} ${TK_INCDIR}" \
--with-libraries="${LOCALBASE}/lib"
CONFIGURE_ENV+= TCLSH="${TCLSH}"
do-build:
cd ${WRKSRC}/bin/pgtclsh && ${SETENV} ${MAKE_ENV} \
${MAKE_PROGRAM} ${MAKE_FLAGS} pgtksh
do-install:
cd ${WRKSRC}/bin/pgtclsh && ${SETENV} ${MAKE_ENV} \
${MAKE_PROGRAM} ${MAKE_FLAGS} install_tk
strip ${PREFIX}/bin/pgtksh
${GTAR} zxCf ${PREFIX}/man \
${WRKDIR}/${DISTNAME}/doc/man.tar.gz \
`${SED} -e "s/#.*//" ${FILESDIR}/man.tk`
.include "../../databases/postgresql/Makefile.common"
|