void-packages/srcpkgs/polyml/template
2020-01-06 15:45:59 +01:00

33 lines
1.1 KiB
Bash

# Template file for 'polyml'
pkgname=polyml
version=5.8
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=6bcc2c5af91f361ef9e0bb28f39ce20171b0beae73b4db3674df6fc793cec8bf
nocross=yes
# broken on musl and big endian ppc
case "$XBPS_TARGET_MACHINE" in
ppc64le) ;;
ppc*) broken="Segmentation Fault";;
esac
# Since this is a compiler, no -devel package.