blob: faeb5fce949ab79a2bee771d53c0a2b90aea8992 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001SUMMARY = "gnu-configize"
2DESCRIPTION = "Tool that installs the GNU config.guess / config.sub into a directory tree"
Andrew Geissler90fd73c2021-03-05 15:25:55 -06003HOMEPAGE = "https://git.savannah.gnu.org/cgit/config.git"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05004SECTION = "devel"
5LICENSE = "GPL-3.0-with-autoconf-exception"
Patrick Williams03907ee2022-05-01 06:28:52 -05006LIC_FILES_CHKSUM = "file://config.guess;beginline=9;endline=29;md5=10922f9231863a06f6efb67691fa46e0"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05007
Patrick Williams213cb262021-08-07 19:21:33 -05008DEPENDS:class-native = "hostperl-runtime-native"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05009
10INHIBIT_DEFAULT_DEPS = "1"
11
Andrew Geissler615f2f12022-07-15 14:00:58 -050012SRCREV = "02ba26b218d3d3db6c56e014655faf463cefa983"
13PV = "20220525+git${SRCPV}"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050014
Andrew Geissler9aee5002022-03-30 16:27:02 +000015SRC_URI = "git://git.savannah.gnu.org/git/config.git;protocol=https;branch=master \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050016 file://gnu-configize.in"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050017S = "${WORKDIR}/git"
Brad Bishop316dfdd2018-06-25 12:45:53 -040018UPSTREAM_CHECK_COMMITS = "1"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050019
20CLEANBROKEN = "1"
21
22do_compile[noexec] = "1"
23
24do_install () {
25 install -d ${D}${datadir}/gnu-config \
26 ${D}${bindir}
27 cat ${WORKDIR}/gnu-configize.in | \
28 sed -e 's,@gnu-configdir@,${datadir}/gnu-config,g' \
29 -e 's,@autom4te_perllibdir@,${datadir}/autoconf,g' > ${D}${bindir}/gnu-configize
30 # In the native case we want the system perl as perl-native can't have built yet
31 if [ "${PN}" != "gnu-config-native" -a "${PN}" != "nativesdk-gnu-config" ]; then
32 sed -i -e 's,/usr/bin/env,${bindir}/env,g' ${D}${bindir}/gnu-configize
33 fi
34 chmod 755 ${D}${bindir}/gnu-configize
35 install -m 0644 config.guess config.sub ${D}${datadir}/gnu-config/
36}
37
38PACKAGES = "${PN}"
Patrick Williams213cb262021-08-07 19:21:33 -050039FILES:${PN} = "${bindir} ${datadir}/gnu-config"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050040
41BBCLASSEXTEND = "native nativesdk"