blob: d275db3f964c97ec6ce4fe79b4cbe721da8fa43d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
DESCRIPTION = "The GNU config.guess and config.sub scripts"
SECTION = "base"
LICENSE = "GPL"
DEPENDS = ""
INHIBIT_DEFAULT_DEPS = "1"
PR = "r0"
SRCREV="e35217687ee5f39b428119fe31c7e954f6de64f0"
PR_append = "+gitr${SRCPV}"
SRC_URI = "git://git.savannah.gnu.org/config.git;branch=master;protocol=git \
file://config-guess-uclibc.patch \
file://gnu-configize.in"
S = "${WORKDIR}/git"
do_compile() {
:
}
do_install () {
install -d ${D}${datadir}/gnu-config \
${D}${bindir}
cat ${WORKDIR}/gnu-configize.in | \
sed -e 's,@gnu-configdir@,${datadir}/gnu-config,g' \
-e 's,@autom4te_perllibdir@,${datadir}/autoconf,g' > ${D}${bindir}/gnu-configize
# In the native case we want the system perl as perl-native can't have built yet
if [ "${BUILD_ARCH}" != "${TARGET_ARCH}" ]; then
cat ${WORKDIR}/gnu-configize.in | \
sed -e 's,/usr/bin/perl,${bindir}/perl,g' > ${D}${bindir}/gnu-configize
fi
chmod 755 ${D}${bindir}/gnu-configize
install -m 0644 config.guess config.sub ${D}${datadir}/gnu-config/
}
FILES_${PN} = "${bindir} ${datadir}/gnu-config"
BBCLASSEXTEND = "native"
NATIVE_INSTALL_WORKS = "1"
|