<commit_before>require libtool_${PV}.bb

PR = "${INC_PR}.1"
SRC_URI_append = " file://cross_compile.patch"

inherit sdk

do_install () {
	install -d ${D}${bindir}/
	install -m 0755 libtool ${D}${bindir}/
	install -m 0755 libtool ${D}${bindir}/${HOST_SYS}-libtool
	install -m 0755 libtoolize ${D}${bindir}/

	install -d ${D}${libdir}/
	oe_libinstall -a -so -C libltdl libltdl ${D}${libdir}

	install -d ${D}${includedir}/
	install -m 0644 libltdl/ltdl.h ${D}${includedir}

	install -d ${D}${datadir}/libtool/config/
	install -c ${S}/libltdl/config/config.guess ${D}${datadir}/libtool/
	install -c ${S}/libltdl/config/config.sub ${D}${datadir}/libtool/
	install -c -m 0644 ${S}/libltdl/config/ltmain.sh ${D}${datadir}/libtool/config/

	install -d ${D}${datadir}/aclocal/
	install -c -m 0644 ${S}/libltdl/m4/libtool.m4 ${D}${datadir}/aclocal/
	install -c -m 0644 ${S}/libltdl/m4/ltdl.m4 ${D}${datadir}/aclocal/
	install -c -m 0644 ${S}/libltdl/m4/ltoptions.m4 ${D}${datadir}/aclocal/
	install -c -m 0644 ${S}/libltdl/m4/ltversion.m4 ${D}${datadir}/aclocal/<commit_msg>libtool-sdk: postprocess libtoolize and install additional files.<commit_after>require libtool_${PV}.bb

PR = "${INC_PR}.4"
SRC_URI_append = " file://cross_compile.patch"

inherit sdk

do_compile_append () {
	sed -i 's:${STAGING_BINDIR_NATIVE}/::g' libtoolize
}

do_install () {
	install -d ${D}${bindir}/
	install -m 0755 libtool ${D}${bindir}/
	install -m 0755 libtool ${D}${bindir}/${HOST_SYS}-libtool
	install -m 0755 libtoolize ${D}${bindir}/

	install -d ${D}${libdir}/
	oe_libinstall -a -so -C libltdl libltdl ${D}${libdir}

	install -d ${D}${includedir}/
	install -m 0644 libltdl/ltdl.h ${D}${includedir}

	install -d ${D}${datadir}/libtool/config/
	install -c ${S}/libltdl/config/config.guess ${D}${datadir}/libtool/config/
	install -c ${S}/libltdl/config/config.sub ${D}${datadir}/libtool/config/
	install -c ${S}/libltdl/config/install-sh ${D}${datadir}/libtool/config/
	install -c ${S}/libltdl/config/compile ${D}${datadir}/libtool/config/
	install -c ${S}/libltdl/config/depcomp ${D}${datadir}/libtool/config/
	install -c ${S}/libltdl/config/missing ${D}${datadir}/libtool/config/
	install -c ${S}/libltdl/config/mkstamp ${D}${datadir}/libtool/config/
	install -c -m 0644 ${S}/libltdl/config/ltmain.sh ${D}${datadir}/libtool/config/

	install -d ${D}${datadir}/aclocal/
	install -c -m 0644 ${S}/libltdl/m4/libtool.m4 ${D}${datadir}/aclocal/
	install -c -m 0644 ${S}/libltdl/m4/ltdl.m4 ${D}${datadir}/aclocal/
	install -c -m 0644 ${S}/libltdl/m4/ltoptions.m4 ${D}${datadir}/aclocal/
	install -c -m 0644 ${S}/libltdl/m4/ltversion.m4 ${D}${datadir}/aclocal/
{'fraction_non_alphanumeric': 0.2135258358662614, 'fraction_numerical': 0.03419452887537994, 'mean_word_length': 4.373469387755102, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2255711', 'n_tokens_mistral': 1190, 'n_tokens_neox': 1148, 'n_words': 208}