void-packages/srcpkgs/erlang/template

43 lines
1.4 KiB
Text
Raw Normal View History

2014-08-31 19:17:04 +00:00
# Template file for 'erlang'
pkgname=erlang
2014-12-12 09:51:16 +00:00
version=17.4
revision=1
2014-08-31 19:17:04 +00:00
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')"
2014-10-11 20:10:53 +00:00
short_desc="Concurrent functional programming language developed by Ericsson"
2014-08-31 19:17:04 +00:00
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="custom"
homepage="http://www.erlang.org/"
update_site="http://www.erlang.org/download.html"
update_pattern='otp_src_\K[\d.]+\d+'
2014-08-31 19:17:04 +00:00
distfiles="http://www.erlang.org/download/otp_src_${version}.tar.gz
http://www.erlang.org/download/otp_doc_man_${version}.tar.gz"
2014-12-12 09:51:16 +00:00
checksum="0d82eda6ae7ac6f0f860093324e540fa514497068ec3b4177800284e8c761f56
6c1cdb8e9d367c7b6dc6b20706de9fd0a0f0b7dffd66532663b2a24ed7679a58"
2014-08-31 19:17:04 +00:00
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/man
vmkdir usr/lib/erlang/man
vcopy ../man/man1 usr/share/man
vcopy ../man/man3 usr/lib/erlang/man
vcopy ../man/man4 usr/lib/erlang/man
vcopy ../man/man7 usr/lib/erlang/man
2014-08-31 19:17:04 +00:00
vlicense EPLICENCE
}