54 lines
1.4 KiB
Text
54 lines
1.4 KiB
Text
# Template file for 'tk'
|
|
pkgname=tk
|
|
version=8.6.1
|
|
revision=3
|
|
wrksrc="tk${version}"
|
|
build_wrksrc=unix
|
|
short_desc="The TK graphical user interface toolkit for TCL"
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
homepage="http://www.tcl.tk"
|
|
license="tcl/tk"
|
|
distfiles="${SOURCEFORGE_SITE}/tcl/${pkgname}${version}-src.tar.gz"
|
|
checksum=b691a2e84907392918665fe03a0deb913663a026bed2162185b4a9a14898162c
|
|
|
|
hostmakedepends="pkg-config"
|
|
makedepends="tcl-devel libXext-devel libX11-devel libXScrnSaver-devel libXft-devel"
|
|
|
|
do_configure() {
|
|
if [ "${XBPS_TARGET_MACHINE}" = "x86_64" ]; then
|
|
configure_args+=" --enable-64bits "
|
|
fi
|
|
./configure ${configure_args} --enable-threads \
|
|
--without-tzdata --enable-man-symlinks \
|
|
--disable-static --disable-rpath \
|
|
--with-tcl=$XBPS_CROSS_BASE/usr/lib \
|
|
tk_cv_strtod_unbroken=ok
|
|
}
|
|
|
|
do_build() {
|
|
if [ "$CROSS_BUILD" ]; then
|
|
# XXX
|
|
sed -e "s,-L/usr/lib,-L$XBPS_CROSS_BASE/usr/lib,g" -i Makefile
|
|
fi
|
|
make ${makejobs}
|
|
}
|
|
|
|
do_install() {
|
|
make INSTALL_ROOT=${DESTDIR} install install-private-headers
|
|
ln -sfr ${DESTDIR}/usr/bin/wish${version%.*} ${DESTDIR}/usr/bin/wish
|
|
vinstall ../license.terms 644 usr/share/licenses/tk LICENSE
|
|
# Set proper perms to shlibs.
|
|
chmod 755 ${DESTDIR}/usr/lib/*.so*
|
|
}
|
|
|
|
tk-devel_package() {
|
|
depends="tk>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/lib/tkConfig.sh
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove usr/share/man/man3
|
|
vmove usr/share/man/mann
|
|
}
|
|
}
|