libnewt: allow optionally building against tcl - sync with compat-32 port

This commit is contained in:
Tim Biermann 2023-08-06 20:51:28 +02:00
parent 7ed250a38d
commit 211ba2b53a
Signed by: tb
GPG Key ID: 42F8B4E30B673606
2 changed files with 9 additions and 4 deletions

View File

@ -1,5 +1,5 @@
untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF35D/4eGchkrDzhKAvell0UDH/m00ZlI3vYMYp8wXvxG0nn1+TCJaSS2C0TeGr0ZmkScxMpnBTm6rM1Httdo8QQM=
SHA256 (Pkgfile) = 45c5a70e095280681202acaeec43447995a92713b655eb3646a009f83d79108e
RWSagIOpLGJF35BG3YOJzRPxJbD+wqpcTNpj6LYDdNdH9/ejAeNocX6JKvTbMrHMNcd28XuDpH0E+1UhEydEigmBJtXUosDfOQA=
SHA256 (Pkgfile) = 794f7d24243f845aee0e1ab6567f56ac44aadf6688e180cd5db905dea1fe0f09
SHA256 (.footprint) = 5224c84ee33c48ff8eebd50a59b0b5a137b143bb5d4cafaf561f4e6e8c88131c
SHA256 (newt-0.52.23.tar.gz) = caa372907b14ececfe298f0d512a62f41d33b290610244a58aed07bbc5ada12a

View File

@ -2,16 +2,21 @@
# URL: https://pagure.io/newt
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: slang popt python3
# Optional: tcl
name=libnewt
version=0.52.23
release=1
release=2
source=(https://releases.pagure.org/newt/newt-$version.tar.gz)
git=(https://pagure.io/newt.git)
build() {
cd newt-$version
if prt-get isinst tcl; then
sed -i "s:tcl8.4:tcl8.6:" Makefile.in
echo '#define USE_INTERP_RESULT 1' >> config.h
fi
./autogen.sh
./configure --prefix=/usr --disable-nls