31 lines
954 B
Bash
31 lines
954 B
Bash
# Template file for 'polyml'
|
|
pkgname=polyml
|
|
version=5.8.2
|
|
revision=2
|
|
build_style=gnu-configure
|
|
configure_args="--enable-shared"
|
|
makedepends="gmp-devel"
|
|
short_desc="Poly/ML Standard ML (SML) implementation"
|
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
|
license="LGPL-2.1-or-later"
|
|
homepage="http://www.polyml.org/"
|
|
distfiles="https://github.com/${pkgname}/${pkgname}/archive/v${version}.tar.gz"
|
|
checksum=310b0ba748a50f38e99de7f65ba990bc4b4f4b0123ad76aba4c44d7cd1ed9277
|
|
conflicts="mesa-demos>=0" # /usr/bin/poly
|
|
nocross=yes
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
i686*|x86_64*)
|
|
# musl doesn't allow writing to .rodata and .text during
|
|
# relocation, but polyexport.o contains DT_TEXTREL
|
|
# since libpolyml/elfexport.cpp only creates absolute
|
|
# relocations. Drop PIE and do relocations at link time.
|
|
[ "$XBPS_TARGET_LIBC" = "musl" ] && nopie=yes
|
|
;;
|
|
*) makedepends+=" libffi-devel";;
|
|
esac
|
|
|
|
if [ "$XBPS_TARGET_ENDIAN" = "be" ]; then
|
|
broken="crashes"
|
|
fi
|