-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
template
35 lines (33 loc) · 1.14 KB
/
template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Template file for 'gambit'
pkgname=gambit
version=4.9.5
revision=2
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=758da7b4afe6411e9c4fed14b0cc5ada39b5f1393c1edd4d3dd9c9a06127c310
alternatives="
scheme:scheme:/usr/bin/gsi
scheme:scheme.1:/usr/share/man/man1/gsi.1
scheme:scheme-r5rs:/usr/bin/gsi
"
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
rm ${DESTDIR}/usr/bin/scheme-r5rs
}