418d52e06d
While here, update HOMEPAGE.
79 lines
2.3 KiB
Makefile
79 lines
2.3 KiB
Makefile
# $NetBSD: Makefile,v 1.16 2004/03/20 19:28:52 minskim Exp $
|
|
#
|
|
|
|
DISTNAME= tclX8.2.0
|
|
PKGNAME= tk-tclX-8.2.0
|
|
PKGREVISION= 1
|
|
CATEGORIES= lang tcl tk
|
|
MASTER_SITES= ftp://ftp.neosoft.com/pub/tcl/TclX/
|
|
|
|
MAINTAINER= jwise@NetBSD.org
|
|
HOMEPAGE= http://tclx.sourceforge.net/
|
|
COMMENT= Extended Tcl (TclX), a set of Tcl extensions for system programming
|
|
|
|
CONFLICTS+= tclX-[0-9]*
|
|
|
|
WRKSRC= ${WRKDIR}/tclX8.2.0/unix
|
|
USE_BUILDLINK2= yes
|
|
USE_LIBTOOL= yes
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS+= --enable-shared \
|
|
--with-tcl=${BUILDLINK_PREFIX.tcl}/lib \
|
|
--with-tk=${BUILDLINK_PREFIX.tk}/lib
|
|
TEST_DIRS= ${WRKSRC}/../tk/unix
|
|
TEST_TARGET= test
|
|
|
|
CONFIGURE_ENV+= \
|
|
PKGSRC_TCL_SRC_DIR="${_PKGSRCDIR}/lang/tcl/${WRKDIR:T}/tcl8.4.6" \
|
|
PKGSRC_TK_SRC_DIR="${_PKGSRCDIR}/x11/tk/${WRKDIR:T}/tk8.4.6"
|
|
|
|
MAKE_ENV+= GTAR=${GTAR} CHOWN=${CHOWN} CHMOD=${CHMOD} \
|
|
SHAREMODE=${SHAREMODE} SHAREOWN=${SHAREOWN} \
|
|
SHAREGRP=${SHAREGRP}
|
|
|
|
FILESDIR= ${.CURDIR}/../../lang/tcl-tclX/files
|
|
PATCHDIR= ${.CURDIR}/../../lang/tcl-tclX/patches
|
|
|
|
SUBST_CLASSES+= paths
|
|
SUBST_MESSAGE.paths= "Fixing Tcl/Tk library names."
|
|
SUBST_STAGE.paths= post-patch
|
|
SUBST_FILES.paths= ${WRKSRC}/../tk/unix/Makefile.in
|
|
SUBST_SED.paths= -e 's,ltcl83,ltcl,g' -e 's,ltk83,ltk,g'
|
|
|
|
.include "../../lang/tcl/buildlink2.mk"
|
|
.include "../../lang/tcl-tclX/buildlink2.mk"
|
|
.include "../../x11/tk/buildlink2.mk"
|
|
|
|
post-extract:
|
|
${MV} ${WRKSRC}/../doc/Memory.n ${WRKSRC}/../doc/TclXMemory.n
|
|
@if [ ! -e ${_PKGSRCDIR}/lang/tcl/${WRKDIR:T}/tcl8.4.6 ]; then \
|
|
cd ../../lang/tcl && ${MAKE} extract; \
|
|
fi
|
|
@if [ ! -e ${_PKGSRCDIR}/x11/tk/${WRKDIR:T}/tk8.4.6 ]; then \
|
|
cd ../../x11/tk && ${MAKE} extract; \
|
|
fi
|
|
|
|
pre-clean:
|
|
@cd ../../lang/tcl && ${MAKE} clean
|
|
@cd ../../x11/tk && ${MAKE} clean
|
|
|
|
do-build:
|
|
@cd ${WRKSRC}/../tk/unix && ${MAKE_ENV} ${MAKE}
|
|
|
|
do-install:
|
|
@cd ${WRKSRC}/../tk/unix && ${MAKE_ENV} ${MAKE} install
|
|
|
|
post-build:
|
|
cd ${WRKSRC}/../tk/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...
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|