void-packages/srcpkgs/ocaml/template
Đoàn Trần Công Danh 9978e00086 srcpkgs: remove patch_args=-Np1 en-mass
git grep -l '^patch_args=.*p1' 'srcpkgs/*/template'  |
	xargs -r sed -i '/^patch_args=/d'
2021-06-20 13:17:29 +07:00

30 lines
906 B
Bash

# Template file for 'ocaml'
pkgname=ocaml
version=4.11.1
revision=1
build_style="gnu-configure"
configure_args="--with-pic --disable-force-safe-string"
make_build_target="world.opt"
makedepends="ncurses-devel libX11-devel"
short_desc="Main implementation of the Caml language"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="QPL-1.0, LGPL-2.1-only"
homepage="http://ocaml.org/"
distfiles="https://github.com/${pkgname}/${pkgname}/archive/${version}.tar.gz"
checksum=cd3cd55d465028b161c8c33bafc14ee6ae1d91b5efe51098350f8e8a5f454baf
nocross=yes
export ASPP="cc -c"
case "$XBPS_TARGET_MACHINE" in
x86_64*|ppc64*) ;;
# also just segfaults when compiled without PIE (BSS-PLT?)
ppc-musl) broken="/usr/bin/ocamlc: unsupported relocation type 6";;
# https://github.com/ocaml/ocaml/issues/7562
# for ppc we solved this separately though
*-musl) nopie=yes ;;
esac
post_install() {
vlicense LICENSE
}