libt3window: fix libtool usage

This commit is contained in:
Duncaen 2025-06-30 17:35:07 +02:00
parent 1a5a5d49fe
commit 355cebb715
No known key found for this signature in database
GPG key ID: 335C1D17EC3D6E35

View file

@ -3,9 +3,9 @@ pkgname=libt3window
version=0.4.2
revision=2
build_style=configure
configure_args="--prefix=/usr"
hostmakedepends="pkg-config gettext"
makedepends="libtool gettext-devel ncurses-libtinfo-devel libtranscript-devel
configure_args="--prefix=/usr LIBTOOL=./hack/libtool"
hostmakedepends="pkg-config gettext autoconf automake libtool"
makedepends="gettext-devel ncurses-libtinfo-devel libtranscript-devel
libunistring-devel"
short_desc="Tilde Terminal Toolkit's window library"
maintainer="Andrew Benson <abenson+void@gmail.com>"
@ -14,7 +14,22 @@ homepage="https://os.ghalkes.nl/t3/libt3window.html"
distfiles="https://os.ghalkes.nl/dist/libt3window-${version}.tar.bz2"
checksum=d5d3fbbed3f51fb5349e29f5bc98a3a7239f88aed18ecf97d21fb8b1a49f2012
export LIBTOOL=${XBPS_CROSS_BASE}/usr/bin/libtool
pre_configure() {
# project uses libtool without autoconf, which is not really viable
# since autoconf is supposed to configure libtool.
mkdir -p hack
cat <<-EOF >hack/configure.ac
AC_INIT
LT_INIT
AC_CONFIG_MACRO_DIRS([m4])
AC_LANG([C])
AC_LANG([C++])
LT_LANG([C])
LT_LANG([C++])
AC_OUTPUT
EOF
(cd hack; autoreconf -fi; libtoolize -i; ./configure --host=$XBPS_CROSS_TRIPLET --build=$XBPS_TRIPLET --with-libtool-sysroot=$XBPS_CROSS_BASE)
}
libt3window-devel_package() {
short_desc+=" - development files"