# erlang/cfg - "Build" settings for package

#---------------------------------------------------------------------

[technotes]

1. "wxwidgets"  support is omitted  at present to avoid possible build
and/or runtime problems.

#---------------------------------------------------------------------

2. These  releases of Erlang-OTP and Elixir are confirmed to work with
each other and with Pleroma snapshots of the same vintage:

Erlang-OTP 23.3.4.9  and Elixir 1.13.4
Erlang-OTP 25.3.2.11 and Elixir 1.15.8

#---------------------------------------------------------------------

[buildtimes]

00.05 hours (or 003.20 minutes) - 2021 L.A. dedi box: 6x2 CPU 32GB RAM
00.13 hours (or 007.87 minutes) - OpenVZ 1x4 CPU 4GB RAM
00.22 hours (or 012.92 minutes) - ThinkPad W530 i7 4x2 32GB RAM

#---------------------------------------------------------------------

[settings]
build    = default
defer    = glibc64
license  = See "license*.txt" in installed tree
licfile  = LICENSE.txt
tmpsize  = 415M
unpack   = relaxed

setpaths = unixodbc

#---------------------------------------------------------------------

[depends]
actools
bison3
flex
gawk
grep
java
libxslt
m4
ncurses
openssl
perl
sed
unixodbc
xorg
zlib

#---------------------------------------------------------------------

[configure]
MANBASE=$PKGDIR_PROD/man
mkdir -p $MANBASE

export CFLAGS=-O2
export ERL_TOP=`pwd`

bash ./configure \
    --prefix=$PKGDIR_PROD          \
    --build=$LACARCHBUILD          \
    --host=$LACARCHHOST            \
    --disable-dependency-tracking  \
    --enable-hipe                  \
    --enable-shared=yes            \
    --enable-static=no             \
    --mandir=$MANBASE              \
    --with-ssl=$PRODTREE/openssl

#---------------------------------------------------------------------

# Original URLs. These URLs were valid at one point, but may have died
# since then. If you download newer versions of tarballs [etc.], don't
# delete  the  original versions,  as you may not  be able  to replace
# them.

[urls]
url_debian  = tbd
url_home    = tbd
url_lfs     = tbd

url_tarball = https://github.com/erlang/otp/archive/refs/tags/\
OTP-25.3.2.11.tar.gz

#---------------------------------------------------------------------

[history]
210424 Added package. Started with 23.3.
211117 Updated to 23.3.4.9
221126 Updated to 24.3.4.6
240704 Updated to 24.3.4.17
240706 Updated to 25.3.2.11