40 lines
1.3 KiB
Bash
40 lines
1.3 KiB
Bash
# Template file for 'erlang'
|
|
pkgname=erlang
|
|
version=18.2
|
|
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 zlib-devel
|
|
$(vopt_if x11 'wxGTK-devel glu-devel')"
|
|
short_desc="Concurrent functional programming language developed by Ericsson"
|
|
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
|
|
license="Apache-2.0"
|
|
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="43de28ac307d2ecf26b6134647f8de1cdf7b419517514a7d5c2af04284fb3fd0
|
|
3695f3a10652e1e1b06d14639d9690d5e533c5e3b831c37f80214f68b8c56a29"
|
|
|
|
build_options="x11"
|
|
|
|
pre_configure() {
|
|
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
|
|
}
|
|
|
|
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
|
|
}
|