2014-08-31 21:17:04 +02:00
|
|
|
# Template file for 'erlang'
|
|
|
|
pkgname=erlang
|
2016-03-17 11:41:47 +01:00
|
|
|
version=18.3
|
2016-03-25 22:35:05 +01: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"
|
2015-05-11 17:54:15 +02:00
|
|
|
makedepends="ncurses-devel unixodbc-devel libressl-devel zlib-devel
|
2014-08-31 21:17:04 +02:00
|
|
|
$(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>"
|
2015-06-25 14:36:15 +02:00
|
|
|
license="Apache-2.0"
|
2014-08-31 21:17:04 +02:00
|
|
|
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"
|
2016-03-17 11:41:47 +01:00
|
|
|
checksum="fdab8129a1cb935db09f1832e3a7d511a4aeb2b9bb3602ca6a7ccb9730d5c9c3
|
|
|
|
978be100e9016874921b3ad1a65ee46b7b6a1e597b8db2ec4b5ef436d4c9ecc2"
|
2014-08-31 21:17:04 +02:00
|
|
|
|
|
|
|
build_options="x11"
|
|
|
|
|
|
|
|
pre_configure() {
|
2015-02-24 11:11:23 +01:00
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
|
|
# 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
|
2014-08-31 21:17:04 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
post_install() {
|
2014-11-10 23:56:55 +01:00
|
|
|
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 21:17:04 +02:00
|
|
|
}
|