2014-08-31 21:17:04 +02:00
|
|
|
# Template file for 'erlang'
|
|
|
|
pkgname=erlang
|
2014-09-27 00:31:44 +02:00
|
|
|
version=17.3
|
2014-10-11 22:10:53 +02:00
|
|
|
revision=2
|
2014-08-31 21:17:04 +02: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 22:10:53 +02:00
|
|
|
short_desc="Concurrent functional programming language developed by Ericsson"
|
2014-08-31 21:17:04 +02:00
|
|
|
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"
|
2014-09-27 00:31:44 +02:00
|
|
|
checksum="d4be03eb346016f4ca95d53eb9437ffaa6106762f153620dd98cd7f7733b76e4
|
|
|
|
3fabdac0b0594432fdd8186fa2c74ff49a629a9bcc4174e3bd605a3d4002dab7"
|
2014-08-31 21:17:04 +02: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
|
|
|
|
vcopy ../man usr/share/
|
|
|
|
vlicense EPLICENCE
|
|
|
|
}
|