void-packages/srcpkgs/polyml/template
2020-07-21 13:22:41 +02:00

33 lines
1.1 KiB
Bash

# Template file for 'polyml'
pkgname=polyml
version=5.8.1
revision=1
build_style=gnu-configure
configure_args="--with-system-libffi --enable-shared"
case "$XBPS_TARGET_MACHINE" in
i686-musl|x86_64-musl)
# 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.
nopie=yes;;
i686*|x86_64*) ;;
*) configure_args+=" --disable-native-codegeneration" ;;
esac
makedepends="gmp-devel libffi-devel"
conflicts="mesa-demos>=0" # /usr/bin/poly
short_desc="The Poly/ML Standard ML (SML) implementation"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="LGPL-2.1"
homepage="http://www.polyml.org/"
distfiles="https://github.com/${pkgname}/${pkgname}/archive/v${version}.tar.gz"
checksum=fa0507b44470b4e07a061ef6a8896efe42710d8436e15721d743572ad2f7753b
nocross=yes
# broken on musl ppc and big endian ppc
case "$XBPS_TARGET_MACHINE" in
ppc64le) ;;
ppc*) broken="Segmentation Fault";;
esac
# Since this is a compiler, no -devel package.