28 lines
1 KiB
Bash
28 lines
1 KiB
Bash
# Template file for 'gambit'
|
|
pkgname=gambit
|
|
version=4.9.0
|
|
revision=1
|
|
build_style=gnu-configure
|
|
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="libressl-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="http://gambitscheme.org/"
|
|
distfiles="https://github.com/gambit/gambit/archive/v${version}.tar.gz"
|
|
checksum=73eb2bc8650d3ce202d17b3e9711eb979ca200ba3b443733bcb24524acbe4688
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
*-musl) CFLAGS="-DNETDB_INTERNAL=-1 -DNETDB_SUCCESS=0";;
|
|
esac
|
|
|
|
post_install() {
|
|
for f in ${DESTDIR}/usr/lib/gambit/lib*.so.*; do
|
|
ln -sfr $f ${DESTDIR}/usr/lib
|
|
done
|
|
sed -i -e "s|\(-specs=.*hardened-ld\)||g" -e "s|\(-specs=.*hardened-cc1\)||g" ${DESTDIR}/usr/bin/gambcomp-C
|
|
}
|