pkgsrc/lang/tcl-tclX/Makefile
skrll 8a4fdf1240 Do previous changes to make the source for tcl available differently and
hopefully in a cleaner way.

Do the same for the tk sources for tk-tclX

Both should now build.

{tcl,tk}-tclX/Makefile have an awful lot in common so someone might like to
split a lot of it out.
2001-04-27 09:16:18 +00:00

54 lines
1.5 KiB
Makefile

# $NetBSD: Makefile,v 1.6 2001/04/27 09:16:18 skrll Exp $
#
DISTNAME= tclX8.2.0
PKGNAME= tcl-tclX-8.2.0
CATEGORIES= lang tcl
MASTER_SITES= ftp://ftp.neosoft.com/pub/tcl/TclX/
MAINTAINER= jwise@netbsd.org
HOMEPAGE= http://www.neosoft.com/TclX/
COMMENT= Extended Tcl (TclX), a set of Tcl extensions for system programming
DEPENDS+= tcl>=8.3.2:../../lang/tcl
CONFLICTS+= tclX-*
USE_LIBTOOL= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --enable-shared --with-tcl=${PREFIX}/lib --enable-tk=NO
CONFIGURE_ENV+= \
PKGSRC_TCL_SRC_DIR="${BUILD_ROOT}/lang/tcl/${WRKDIR:T}/tcl8.3.2"
MAKE_ENV+= GTAR=${GTAR} CHOWN=${CHOWN} CHMOD=${CHMOD} \
SHAREMODE=${SHAREMODE} SHAREOWN=${SHAREOWN} \
SHAREGRP=${SHAREGRP}
WRKSRC= ${WRKDIR}/tclX8.2.0/unix
post-extract:
@${MV} ${WRKSRC}/../doc/Memory.n ${WRKSRC}/../doc/TclXMemory.n
@if [ ! -e ${BUILD_ROOT}/lang/tcl/${WRKDIR:T}/tcl8.3.2 ]; then \
cd ../../lang/tcl && ${MAKE} extract; \
fi
post-build:
cd ${WRKSRC}/../tcl/unix && ${MAKE_ENV} ${MAKE} buildhelp
post-install:
${FIND} ${PREFIX}/lib/tcl/tclX8.2/help -type d -exec ${CHMOD} 555 '{}' \;
${FIND} ${PREFIX}/lib/tcl/tclX8.2/help -type f -exec ${CHMOD} 444 '{}' \;
@${RM} ${PREFIX}/man/man3/TkX_Main.3
@${RM} ${PREFIX}/man/man3/Tkx_Init.3
# the above links are installed based on the contents of the man page.
# we don't want to modify the man page, as it is also used by ../tk-tclX,
# so...
pre-clean:
@cd ../../lang/tcl && ${MAKE} clean
test:
@(cd ${WRKSRC}; ${MAKE_ENV} ${MAKE} test)
.include "../../mk/bsd.pkg.mk"