52 lines
1.2 KiB
Bash
52 lines
1.2 KiB
Bash
# Template file for 'racket'
|
|
pkgname=racket
|
|
version=7.5
|
|
revision=1
|
|
build_wrksrc=src
|
|
build_style=gnu-configure
|
|
hostmakedepends="gsfonts"
|
|
makedepends="sqlite-devel gtk+-devel"
|
|
depends="gtk+"
|
|
short_desc="Multi-paradigm programming language in the Lisp-Scheme family"
|
|
maintainer="Andrea Brancaleoni <abc@pompel.me>"
|
|
license="LGPL-3.0-only"
|
|
homepage="http://racket-lang.org/"
|
|
distfiles="http://mirror.racket-lang.org/installers/${version}/${pkgname}-${version}-src.tgz"
|
|
checksum=32e8b6b42044404dfa4e3d92c86a88cb382549ba9a54309fe8a7f4892fd8e42c
|
|
nostrip=yes
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
configure_args+=" --enable-racket=/usr/bin/racket"
|
|
hostmakedepends+=" racket sqlite-devel"
|
|
fi
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
ppc*)
|
|
broken="hangs or segfaults";;
|
|
*-musl)
|
|
makedepends+=" libucontext-devel";;
|
|
i686)
|
|
broken="make[1]: *** [Makefile:177: install-3m] Aborted";;
|
|
esac
|
|
|
|
pre_configure() {
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
*-musl)
|
|
export CFLAGS+=" -D_GNU_SOURCE"
|
|
export LIBS+=" -lucontext"
|
|
;;
|
|
esac
|
|
}
|
|
|
|
post_install() {
|
|
vlicense COPYING-libscheme.txt
|
|
}
|
|
|
|
racket-doc_package() {
|
|
archs=noarch
|
|
short_desc+=" -- documentation"
|
|
depends="racket>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/share/doc/racket
|
|
}
|
|
}
|