void-packages/srcpkgs/erlang/template
2016-10-06 03:47:04 -04:00

43 lines
1.4 KiB
Bash

# Template file for 'erlang'
pkgname=erlang
version=19.1
revision=2
wrksrc=otp_src_${version}
build_style=gnu-configure
configure_args="--enable-smp-support
$(vopt_if x11 --with-wx-config=wx-config-3.0)"
hostmakedepends="perl libxslt"
makedepends="ncurses-devel unixodbc-devel libressl-devel zlib-devel
$(vopt_if x11 'wxWidgets-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="fed4cbbc1ee5cc8efc2b8f14c3db97bfde1de967703f5f9a95f8ab6852737e23
7200e9e5b3a229a6b3838046e1b3e64afc869265539d49d0e4853212f19c0c79"
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_configure() {
sed -i '/LDFLAGS =/s/=/+=/' lib/odbc/c_src/*/Makefile
}
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
}