void-packages/srcpkgs/polyml/template

28 lines
978 B
Bash

# Template file for 'polyml'
pkgname=polyml
version=5.7.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=d18dd824b426edaed1cec71dded354b57df9ebdbd38863bc7540a60bd0667028
nocross=yes
# Since this is a compiler, no -devel package.