# $Id$ PortSystem 1.0 name erlang version R12B-3 revision 2 categories lang erlang maintainers bfulgham@macports.org platforms darwin description The Erlang Programming Language long_description \ Erlang is a programming language designed at the \ Ericsson Computer Science Laboratory. Open-source \ Erlang is being released to help encourage the spread \ of Erlang outside Ericsson. \ \ We are releasing free of charge: \ The entire source code of the current Erlang \ system. \ Extensive libraries of code for building robust \ fault-tolerant distributed applications. \ All with documentation. \ \ All the above software has been battle tested in a \ number of Ericsson products, for example the new \ Ericsson ATM switch. homepage http://www.erlang.org/ master_sites http://www.erlang.org/download/ distfiles otp_src_${version}${extract.suffix} \ otp_doc_man_${version}${extract.suffix} \ otp_doc_html_${version}${extract.suffix} checksums otp_src_R12B-3.tar.gz \ md5 c2e7f0ad54b8fadebde2d94106608d97 \ sha1 ea5f202cc35ed6ef2796727b95d62c9bbe6ad5e5 \ rmd160 e7b5da985b939e51ef4e2d19fb96cff1781ce263 \ otp_doc_man_R12B-3.tar.gz \ md5 13098954c9d5804bb8394fe7badb3d0d \ sha1 8ea4c9fa7d941c339c73bb417f88ee939d6989eb \ rmd160 7e0c27391f42b1e58c7bb1472594e9fe6f7ac414 \ otp_doc_html_R12B-3.tar.gz \ md5 8865d406c256abbff63eaff62d2216aa \ sha1 194003607113c84aef5b5daad7ca8b8901d1d80a \ rmd160 8295d4e94952bad6458f2038415c474e687631cb extract.only otp_src_${version}${extract.suffix} pre-patch { file rename ${workpath}/otp_src_${version} ${workpath}/${name}-${version} } patchfiles patch-toolbar.erl \ patch-erts_emulator_Makefile.in \ patch-erts_emulator_drivers_unix_unix_efile.c \ patch-lib_ssl_c_src_esock_openssl.c \ patch-lib_ssl_c_src_Makefile.dist \ patch-lib_ssl_c_src_Makefile.in configure.args --prefix=${destroot}${prefix} \ --enable-kernel-poll \ --disable-smp-support variant smp { configure.args-delete --disable-smp-support } variant ssl { configure.args-append --with-ssl=${prefix} configure.ldflags-append -lz depends_build-append port:openssl depends_run-append port:openssl } variant hipe { # Currently produces bus errors in 10.5.3 due to changes in # signal handling configure.args-append --enable-hipe } platform i386 { pre-configure { file copy ${filespath}/mach_override.h ${workpath}/${name}-${version}/erts/emulator/hipe file copy ${filespath}/mach_override.c ${workpath}/${name}-${version}/erts/emulator/hipe } } depends_build port:gawk depends_run port:tk post-destroot { system "tar -C ${destroot}${prefix}/lib/erlang -zxvf ${distpath}/otp_doc_html_${version}${extract.suffix}" system "tar -C ${destroot}${prefix}/lib/erlang -zxvf ${distpath}/otp_doc_man_${version}${extract.suffix}" set erts_dir erts-5.6.3 reinplace s|${destroot}|| ${destroot}${prefix}/lib/erlang/bin/erl reinplace s|${destroot}|| ${destroot}${prefix}/lib/erlang/bin/start reinplace s|${destroot}|| ${destroot}${prefix}/lib/erlang/${erts_dir}/bin/erl reinplace s|${destroot}|| ${destroot}${prefix}/lib/erlang/${erts_dir}/bin/start foreach x {dialyzer ear ecc elink epmd erl erlc escript run_erl start to_erl typer} { file delete -force ${destroot}${prefix}/bin/${x} } foreach x {dialyzer erl erlc escript run_erl start to_erl typer} { system "ln -s ../lib/erlang/bin/${x} ${destroot}${prefix}/bin/${x}" } file delete -force ${destroot}${prefix}/lib/erlang/bin/epmd system "ln -s ../${erts_dir}/bin/epmd ${destroot}${prefix}/lib/erlang/bin/epmd" }