void-packages/srcpkgs/gambit/template
2022-01-12 13:28:21 +01:00

33 lines
1.1 KiB
Bash

# Template file for 'gambit'
pkgname=gambit
version=4.9.4
revision=1
build_style=gnu-configure
# We only build core, since the rest doesn't cross-compile.
make_build_target="core"
configure_args="
--libdir=/usr/lib/gambit --docdir=/usr/share/doc/gambit
--enable-compiler-name=gambit-gsc
--enable-shared --disable-absolute-shared-libs --enable-versioned-shared-libs
--enable-single-host --enable-gcc-opts --enable-openssl --enable-poll"
makedepends="openssl-devel"
short_desc="Complete, portable, efficient and reliable implementation of Scheme"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="LGPL-2.1-only, Apache-2.0"
homepage="https://gambitscheme.org/"
distfiles="https://github.com/gambit/gambit/archive/v${version}.tar.gz"
checksum=19fb44a65b669234f6c0467cdc3dbe2e2c95a442f38e4638e7d89c90e247bd08
case "$XBPS_TARGET_MACHINE" in
*-musl) CFLAGS="-DNETDB_INTERNAL=-1 -DNETDB_SUCCESS=0";;
esac
post_patch() {
vsed -i 's/4\.9\.3/4.9.4/g' include/stamp-release.h
}
post_install() {
for f in ${DESTDIR}/usr/lib/gambit/lib*.so.*; do
ln -sfr $f ${DESTDIR}/usr/lib
done
}