void-packages/srcpkgs/tk/template

43 lines
1.2 KiB
Text
Raw Normal View History

2013-05-22 09:28:42 +00:00
# Template file for 'tk'
pkgname=tk
2014-11-12 19:53:42 +00:00
version=8.6.3
2014-08-30 05:40:23 +00:00
revision=1
2013-05-22 09:28:42 +00:00
wrksrc="tk${version}"
2014-11-12 19:53:42 +00:00
build_wrksrc="unix"
build_style=gnu-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"
2014-08-26 08:57:07 +00:00
hostmakedepends="pkg-config"
2014-08-30 05:40:23 +00:00
makedepends="zlib-devel tcl-devel libXext-devel libXScrnSaver-devel libXft-devel"
2013-05-22 09:28:42 +00:00
short_desc="The TK graphical user interface toolkit for TCL"
2014-04-15 09:40:30 +00:00
maintainer="Juan RP <xtraeme@gmail.com>"
2013-05-22 09:28:42 +00:00
homepage="http://www.tcl.tk"
license="tcl/tk"
distfiles="${SOURCEFORGE_SITE}/tcl/${pkgname}${version}-src.tar.gz"
2014-11-12 19:53:42 +00:00
checksum=ba15d56ac27d8c0a7b1a983915a47e0f635199b9473cf6e10fbce1fc73fd8333
2014-11-12 19:53:42 +00:00
pre_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 09:28:42 +00:00
}
do_install() {
make INSTALL_ROOT=${DESTDIR} install install-private-headers
2014-11-12 19:53:42 +00:00
ln -s wish${version%.*} ${DESTDIR}/usr/bin/wish
vlicense ../license.terms LICENSE
2013-05-22 09:28:42 +00:00
}
tk-devel_package() {
2014-08-26 08:57:07 +00:00
depends="${makedepends} tk>=${version}_${revision}"
2013-09-25 08:31:50 +00:00
short_desc+=" - development files"
2013-05-22 09:28:42 +00:00
pkg_install() {
vmove usr/lib/tkConfig.sh
vmove usr/include
vmove usr/lib/pkgconfig
2013-05-22 09:28:42 +00:00
vmove usr/share/man/man3
vmove usr/share/man/mann
}
}