void-packages/srcpkgs/tk/template

45 lines
1.3 KiB
Bash

# Template file for 'tk'
pkgname=tk
version=8.6.4
revision=1
wrksrc="tk${version}"
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"
hostmakedepends="pkg-config"
makedepends="zlib-devel tcl-devel libXext-devel libXScrnSaver-devel libXft-devel"
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=08f99df85e5dc9c4271762163c6aabb962c8b297dc5c4c1af8bdd05fc2dd26c1
shlib_provides="libtk${version%.*}.so"
pre_build() {
if [ "$CROSS_BUILD" ]; then
# XXX
sed -e "s,-L/usr/lib,-L$XBPS_CROSS_BASE/usr/lib,g" -i Makefile
fi
}
do_install() {
make INSTALL_ROOT=${DESTDIR} install install-private-headers
ln -s wish${version%.*} ${DESTDIR}/usr/bin/wish
vlicense ../license.terms LICENSE
}
tk-devel_package() {
depends="${makedepends} 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
}
}