blob: 200b1f1856f2ed2b7443f48cfec3a2ef0507014d [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"
3SECTION = "devel"
4LICENSE = "GPL-3.0-with-autoconf-exception"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08005LIC_FILES_CHKSUM = "file://config.guess;beginline=7;endline=27;md5=b75d42f59f706ea56d6a8e00216fca6a"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05006
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05007DEPENDS_class-native = "hostperl-runtime-native"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05008
9INHIBIT_DEFAULT_DEPS = "1"
10
Andrew Geissler635e0e42020-08-21 15:58:33 -050011SRCREV = "2593751ef276497e312d7c4ce7fd049614c7bf80"
12PV = "20200721+git${SRCPV}"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050013
Brad Bishop6e60e8b2018-02-01 10:27:11 -050014SRC_URI = "git://git.savannah.gnu.org/config.git \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050015 file://gnu-configize.in"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050016S = "${WORKDIR}/git"
Brad Bishop316dfdd2018-06-25 12:45:53 -040017UPSTREAM_CHECK_COMMITS = "1"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050018
19CLEANBROKEN = "1"
20
21do_compile[noexec] = "1"
22
23do_install () {
24 install -d ${D}${datadir}/gnu-config \
25 ${D}${bindir}
26 cat ${WORKDIR}/gnu-configize.in | \
27 sed -e 's,@gnu-configdir@,${datadir}/gnu-config,g' \
28 -e 's,@autom4te_perllibdir@,${datadir}/autoconf,g' > ${D}${bindir}/gnu-configize
29 # In the native case we want the system perl as perl-native can't have built yet
30 if [ "${PN}" != "gnu-config-native" -a "${PN}" != "nativesdk-gnu-config" ]; then
31 sed -i -e 's,/usr/bin/env,${bindir}/env,g' ${D}${bindir}/gnu-configize
32 fi
33 chmod 755 ${D}${bindir}/gnu-configize
34 install -m 0644 config.guess config.sub ${D}${datadir}/gnu-config/
35}
36
37PACKAGES = "${PN}"
38FILES_${PN} = "${bindir} ${datadir}/gnu-config"
39
40BBCLASSEXTEND = "native nativesdk"