mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
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.
This commit is contained in:
57
dev-lang/erlang/erlang-R14B.bep
Normal file
57
dev-lang/erlang/erlang-R14B.bep
Normal file
@@ -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=""
|
||||
14
dev-lang/erlang/patches/erlang-R14B.patch
Normal file
14
dev-lang/erlang/patches/erlang-R14B.patch
Normal file
@@ -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.
|
||||
Reference in New Issue
Block a user