5 DEPENDS
+= "erlang-native openssl"
7 SRC_URI
+= "file://erts-configure.in.patch \
8 file://erts-emulator-Makefile.in.patch \
9 file://erts-etc-unix-Install.src.patch \
10 file://lib-crypto-c_src-Makefile.in.patch \
11 file://lib-erl_interface-src-Makefile.in.patch \
12 file://Makefile.in.patch \
15 EXTRA_OEMAKE
= "BUILD_CC='${BUILD_CC}'"
17 EXTRA_OECONF
= "--with-ssl=${STAGING_DIR_HOST}${layout_exec_prefix}"
19 EXTRA_OECONF_append_arm
= " --disable-smp-support --disable-hipe"
20 EXTRA_OECONF_append_armeb
= " --disable-smp-support --disable-hipe"
21 EXTRA_OECONF_append_mipsel
= " --disable-smp-support --disable-hipe"
22 EXTRA_OECONF_append_sh3
= " --disable-smp-support --disable-hipe"
23 EXTRA_OECONF_append_sh4
= " --disable-smp-support --disable-hipe"
25 NATIVE_BIN
= "${TMPDIR}/work/erlang-native-${PV}-${PR}/otp_src_${UPSTREAM_VERSION}/bin"
29 cd $
{S
}/erts
; autoreconf; cd -
33 ac_cv_prog_javac_ver_1_2
=no \
37 sed
-i
-e 's|$
(ERL_TOP
)/bin/dialyzer|$
{NATIVE_BIN
}/dialyzer
--output_plt $@
-pa $
(ERL_TOP
)/lib
/kernel
/ebin
-pa $
(ERL_TOP
)/lib
/stdlib
/ebin|' lib
/dialyzer
/src
/Makefile
41 TARGET
=$
{TARGET_SYS
} \
42 PATH
=$
{NATIVE_BIN
}:$PATH \
47 TARGET
=$
{TARGET_SYS
} \
48 PATH
=$
{NATIVE_BIN
}:$PATH \
49 oe_runmake 'INSTALL_PREFIX
=$
{D
}' install
51 do sed
-i
-e 's
:ROOTDIR
=.
*:ROOTDIR
=/usr
/lib
/erlang
:' \
52 $
{D
}/usr
/lib
/erlang
/erts
-*/bin/$f $
{D
}/usr
/lib
/erlang
/bin/$f
56 def get_erlang_libs
(d
):
58 install_root
= bb.
data.getVar
('D'
, d
, 1)
59 libdir
= bb.
data.getVar
('libdir'
, d
, 1)[1:]
60 libs
= ["${bindir}/dialyzer", "${libdir}/erlang/bin/dialyzer"]
61 erlang_lib
= os.path.join
(install_root
, libdir
, "erlang/lib")
62 for fname in os.listdir
(erlang_lib
):
63 if not "-" in fname
: continue
64 if fname.startswith
("compiler-"): continue
65 if fname.startswith
("kernel-"): continue
66 if fname.startswith
("sasl-"): continue
67 if fname.startswith
("stdlib-"): continue
68 if fname.startswith
("tools-"): continue
69 libs.append
(os.path.join
("${libdir}", "erlang/lib", fname
))
73 FILES_$
{PN
}-dbg
+= " ${libdir}/erlang/bin/.debug ${libdir}/erlang/*/bin/.debug ${libdir}/erlang/lib/*/bin/.debug"
74 FILES_$
{PN
}-libs
+= " ${@' '.join(get_erlang_libs(d))}"
75 PACKAGES
=+ "${PN}-libs"
77 SRC_URI
[md5sum
] = "1fe3707d9bed898bc51444cb529fdd79"
78 SRC_URI
[sha256sum
] = "d5a8530dfee0b2348c4ad0107409fa73ac3233f31e2300ece625a2abd9eb4da7"