blob: 3d5f2b8c16af41a8538d7e25aa7b7488056912df [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"
5LIC_FILES_CHKSUM = "file://config.guess;beginline=7;endline=27;md5=9bac8b1743c2240ae07cce6e546ac2f2"
6
7DEPENDS_class-native = "perl-native-runtime"
8
9INHIBIT_DEFAULT_DEPS = "1"
10
11SRCREV = "b576fa87c140b824466ef1638e945e87dc5c0343"
12PV = "20150728+git${SRCPV}"
13
14SRC_URI = "git://git.sv.gnu.org/config.git \
15 file://gnu-configize.in"
16
17S = "${WORKDIR}/git"
18
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"