From a57d65b67320873bf408a7d3970a53da4c817a33 Mon Sep 17 00:00:00 2001 From: Scott McCreary Date: Mon, 4 Oct 2010 23:59:10 +0000 Subject: [PATCH] Initial .bep and .patch files for erlang. These aren't yet working, but getting pretty far into the build before failing for what may be missing ipv6 functions. Further changes to the .bep and/or patch file will be required to get this one working. --- dev-lang/erlang/erlang-R14B.bep | 57 +++++++++++++++++++++++ dev-lang/erlang/patches/erlang-R14B.patch | 14 ++++++ 2 files changed, 71 insertions(+) create mode 100644 dev-lang/erlang/erlang-R14B.bep create mode 100644 dev-lang/erlang/patches/erlang-R14B.patch diff --git a/dev-lang/erlang/erlang-R14B.bep b/dev-lang/erlang/erlang-R14B.bep new file mode 100644 index 000000000..9e9016af2 --- /dev/null +++ b/dev-lang/erlang/erlang-R14B.bep @@ -0,0 +1,57 @@ +DESCRIPTION="erlang" +HOMEPAGE="http://www.erlang.org" +SRC_URI="http://www.erlang.org/download/otp_src_R14B.tar.gz" +REVISION="1" +STATUS_HAIKU="broken" +DEPEND="" +CHECKSUM_MD5="5292a04556d17ad528d570e02357dfbb" +BUILD { + cd otp_src_R14B + mkdir -p m4 + echo "AC_CONFIG_MACRO_DIR([m4]) >> configure.in" + rm -f erts/autoconf/config.guess + rm -f erts/autoconf/config.sub + rm -f erts/autoconf/install-sh + rm -f erts/autoconf/ltmain.sh + cp -v /boot/common/share/libtool/config/config.guess erts/autoconf + cp -v /boot/common/share/libtool/config/config.sub erts/autoconf + cp -v /boot/common/share/libtool/config/install-sh erts/autoconf + cp -v /boot/common/share/libtool/config/ltmain.sh erts/autoconf + cp -v /boot/common/share/libtool/config/config.guess lib/common_test/priv/auxdir + cp -v /boot/common/share/libtool/config/config.sub lib/common_test/priv/auxdir + cp -v /boot/common/share/libtool/config/install-sh lib/common_test/priv/auxdir + cp -v /boot/common/share/libtool/config/ltmain.sh lib/common_test/priv/auxdir + cp -v /boot/common/share/libtool/config/config.guess lib/erl_interface/src/auxdir + cp -v /boot/common/share/libtool/config/config.sub lib/erl_interface/src/auxdir + cp -v /boot/common/share/libtool/config/install-sh lib/erl_interface/src/auxdir + cp -v /boot/common/share/libtool/config/ltmain.sh lib/erl_interface/src/auxdir + cp -v /boot/common/share/libtool/config/config.guess lib/test_server/src + cp -v /boot/common/share/libtool/config/config.sub lib/test_server/src + cp -v /boot/common/share/libtool/config/install-sh lib/test_server/src + cp -v /boot/common/share/libtool/config/ltmain.sh lib/test_server/src + cp -v /boot/common/share/aclocal/libtool.m4 m4 + cp -v /boot/common/share/aclocal/ltoptions.m4 m4 + cp -v /boot/common/share/aclocal/ltversion.m4 m4 + cp -v /boot/common/share/aclocal/ltsugar.m4 m4 + cp -v /boot/common/share/aclocal/lt~obsolete.m4 m4 + rm -f aclocal.m4 +# libtoolize --copy --force --install # this fails?! so have to delete and copy files in instead + cd lib/test_server/src + autoconf + cd ../../.. + aclocal -I m4 + autoconf + ./configure --prefix=`finddir B_COMMON_DIRECTORY` \ + --with-ssl=`finddir B_COMMON_DIRECTORY` \ + --disable-ipv6 \ + LDFLAGS="-lnetwork" + make +} + +INSTALL { + cd otp_src_R14B + make install +} + +#LICENSE="" +#COPYRIGHT="" diff --git a/dev-lang/erlang/patches/erlang-R14B.patch b/dev-lang/erlang/patches/erlang-R14B.patch new file mode 100644 index 000000000..54398dee7 --- /dev/null +++ b/dev-lang/erlang/patches/erlang-R14B.patch @@ -0,0 +1,14 @@ +diff -urN otp_src_R14B/lib/test_server/src/configure.in otp_src_R14B-haiku/lib/test_server/src/configure.in +--- otp_src_R14B/lib/test_server/src/configure.in 2010-09-13 17:00:22.037748736 +0000 ++++ otp_src_R14B-haiku/lib/test_server/src/configure.in 2010-10-04 13:15:31.969932800 +0000 +@@ -279,6 +279,10 @@ + LIBS="$LIBS -lsocket -lnsl" + AC_CHECK_FUNC(accept, erl_checkNsl=0, [LIBS=$tk_oldLibs]) + fi ++ ++# Haiku uses -lnetwork instead of -lsocket ++AC_CHECK_LIB(network, socket, LIBS="$LIBS -lnetwork", LIBS="$LIBS") ++ + AC_CHECK_FUNC(gethostbyname, , AC_CHECK_LIB(nsl, main, [LIBS="$LIBS -lnsl"])) + + dnl Checks for library functions.