53 lines
1.2 KiB
Text
53 lines
1.2 KiB
Text
# Template file for 'tcl'
|
|
pkgname=tcl
|
|
version=8.6.0
|
|
revision=3
|
|
wrksrc="tcl${version}"
|
|
build_wrksrc=unix
|
|
short_desc="The TCL scripting language"
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
homepage="http://www.tcl.tk"
|
|
license="tcl/tk"
|
|
distfiles="${SOURCEFORGE_SITE}/$pkgname/${pkgname}${version}-src.tar.gz"
|
|
checksum=354422b9c4791685499123b2dfe01faa98b555c08906c010cb4449ddc75dcade
|
|
|
|
do_configure() {
|
|
if [ "${XBPS_MACHINE}" = "x86_64" ]; then
|
|
configure_args+=" --enable-64bits "
|
|
fi
|
|
|
|
./configure ${configure_args} --enable-threads \
|
|
--without-tzdata --enable-man-symlinks \
|
|
--disable-static --disable-rpath \
|
|
tcl_cv_strtod_unbroken=ok
|
|
}
|
|
|
|
do_build() {
|
|
make ${makejobs}
|
|
}
|
|
|
|
do_install() {
|
|
make INSTALL_ROOT=${DESTDIR} install install-private-headers
|
|
ln -sfr ${DESTDIR}/usr/bin/tclsh8.6 ${DESTDIR}/usr/bin/tclsh
|
|
vinstall ../license.terms 644 usr/share/licenses/tcl LICENSE
|
|
# Set proper perms to shlibs.
|
|
chmod 755 ${DESTDIR}/usr/lib/*.so*
|
|
}
|
|
|
|
tcl-devel_package() {
|
|
depends="tcl>=${version}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/lib/tclConfig.sh
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove usr/share/man/man3
|
|
vmove usr/share/man/mann
|
|
}
|
|
}
|
|
|
|
tcl_package() {
|
|
pkg_install() {
|
|
vmove usr
|
|
}
|
|
}
|