void-packages/srcpkgs/erlang/template

38 lines
1.2 KiB
Text
Raw Normal View History

2014-08-31 19:17:04 +00:00
# Template file for 'erlang'
pkgname=erlang
version=17.1
revision=1
wrksrc=otp_src_${version}
build_style=gnu-configure
configure_args="--enable-smp-support"
hostmakedepends="perl libxslt"
makedepends="ncurses-devel unixodbc-devel libressl-devel
$(vopt_if x11 'wxGTK-devel glu-devel')"
short_desc="General-purpose concurrent functional programming language developed by Ericsson"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="custom"
homepage="http://www.erlang.org/"
distfiles="http://www.erlang.org/download/otp_src_${version}.tar.gz
http://www.erlang.org/download/otp_doc_man_${version}.tar.gz"
checksum="b806f5b2b5cc2d0c0d5dd1a65657c21c10dc3a0535ef60adecdac9cd73b9c356
4a230277f135e3730593e7bffdd5ca92596568340f02a5b3134f1d083b34eaab"
build_options="x11"
if [ "$CROSS_BUILD" ]; then
pre_configure() {
# Build the bootstrap compiler for the host platform.
env - PATH=/usr/bin:/usr/sbin ./configure --enable-bootstrap-only
env - PATH=/usr/bin:/usr/sbin HOME=$HOME make ${makejobs}
configure_args+=" --build=$(erts/autoconf/config.guess)"
export erl_xcomp_sysroot=/usr/${XBPS_CROSS_TRIPLET}
}
fi
post_install() {
vmkdir usr/share
vcopy ../man usr/share/
vlicense EPLICENCE
}