void-packages/srcpkgs/tk/template

52 lines
1.5 KiB
Plaintext
Raw Normal View History

2013-05-22 11:28:42 +02:00
# Template file for 'tk'
pkgname=tk
2014-08-30 07:40:23 +02:00
version=8.6.2
revision=1
2013-05-22 11:28:42 +02:00
wrksrc="tk${version}"
build_wrksrc=unix
2014-08-26 10:57:07 +02:00
hostmakedepends="pkg-config"
2014-08-30 07:40:23 +02:00
makedepends="zlib-devel tcl-devel libXext-devel libXScrnSaver-devel libXft-devel"
2013-05-22 11:28:42 +02:00
short_desc="The TK graphical user interface toolkit for TCL"
2014-04-15 11:40:30 +02:00
maintainer="Juan RP <xtraeme@gmail.com>"
2013-05-22 11:28:42 +02:00
homepage="http://www.tcl.tk"
license="tcl/tk"
distfiles="${SOURCEFORGE_SITE}/tcl/${pkgname}${version}-src.tar.gz"
2014-08-30 07:40:23 +02:00
checksum=afb6639043ec38905afe22b61ca54820217f4d4e81e0ad49f839c16d2bf98579
2013-05-22 11:28:42 +02:00
do_configure() {
if [ "${XBPS_TARGET_MACHINE}" = "x86_64" ]; then
configure_args+=" --enable-64bits "
fi
./configure ${configure_args} --enable-threads \
2013-05-22 11:28:42 +02:00
--without-tzdata --enable-man-symlinks \
--disable-static --disable-rpath \
2014-04-15 11:40:30 +02:00
--with-tcl=$XBPS_CROSS_BASE/usr/lib \
tk_cv_strtod_unbroken=ok
2013-05-22 11:28:42 +02:00
}
do_build() {
if [ "$CROSS_BUILD" ]; then
# XXX
sed -e "s,-L/usr/lib,-L$XBPS_CROSS_BASE/usr/lib,g" -i Makefile
fi
2013-05-22 11:28:42 +02:00
make ${makejobs}
}
do_install() {
make INSTALL_ROOT=${DESTDIR} install install-private-headers
ln -sfr ${DESTDIR}/usr/bin/wish${version%.*} ${DESTDIR}/usr/bin/wish
2013-05-22 11:28:42 +02:00
vinstall ../license.terms 644 usr/share/licenses/tk LICENSE
# Set proper perms to shlibs.
chmod 755 ${DESTDIR}/usr/lib/*.so*
}
tk-devel_package() {
2014-08-26 10:57:07 +02:00
depends="${makedepends} tk>=${version}_${revision}"
2013-09-25 10:31:50 +02:00
short_desc+=" - development files"
2013-05-22 11:28:42 +02:00
pkg_install() {
vmove usr/lib/tkConfig.sh
vmove usr/include
vmove usr/lib/pkgconfig
2013-05-22 11:28:42 +02:00
vmove usr/share/man/man3
vmove usr/share/man/mann
}
}