diff options
Diffstat (limited to 'meta/recipes-devtools/gnu-config/gnu-config_20080123.bb')
-rw-r--r-- | meta/recipes-devtools/gnu-config/gnu-config_20080123.bb | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gnu-config/gnu-config_20080123.bb b/meta/recipes-devtools/gnu-config/gnu-config_20080123.bb new file mode 100644 index 0000000000..66d027e933 --- /dev/null +++ b/meta/recipes-devtools/gnu-config/gnu-config_20080123.bb | |||
@@ -0,0 +1,38 @@ | |||
1 | DESCRIPTION = "gnu-configize" | ||
2 | SECTION = "devel" | ||
3 | LICENSE = "GPL" | ||
4 | DEPENDS = "" | ||
5 | INHIBIT_DEFAULT_DEPS = "1" | ||
6 | |||
7 | FIXEDSRCDATE = "${@bb.data.getVar('FILE', d, 1).split('_')[-1].split('.')[0]}" | ||
8 | PV = "0.1+cvs${FIXEDSRCDATE}" | ||
9 | PR = "r0" | ||
10 | |||
11 | SRC_URI = "cvs://anonymous@cvs.sv.gnu.org/cvsroot/config;module=config;method=pserver;date=${FIXEDSRCDATE} \ | ||
12 | file://config-guess-uclibc.patch \ | ||
13 | file://gnu-configize.in" | ||
14 | S = "${WORKDIR}/config" | ||
15 | |||
16 | do_compile() { | ||
17 | : | ||
18 | } | ||
19 | |||
20 | do_install () { | ||
21 | install -d ${D}${datadir}/gnu-config \ | ||
22 | ${D}${bindir} | ||
23 | cat ${WORKDIR}/gnu-configize.in | \ | ||
24 | sed -e 's,@gnu-configdir@,${datadir}/gnu-config,g' \ | ||
25 | -e 's,@autom4te_perllibdir@,${datadir}/autoconf,g' > ${D}${bindir}/gnu-configize | ||
26 | # In the native case we want the system perl as perl-native can't have built yet | ||
27 | if [ "${BUILD_ARCH}" != "${TARGET_ARCH}" ]; then | ||
28 | cat ${WORKDIR}/gnu-configize.in | \ | ||
29 | sed -e 's,/usr/bin/perl,${bindir}/perl,g' > ${D}${bindir}/gnu-configize | ||
30 | fi | ||
31 | chmod 755 ${D}${bindir}/gnu-configize | ||
32 | install -m 0644 config.guess config.sub ${D}${datadir}/gnu-config/ | ||
33 | } | ||
34 | |||
35 | PACKAGES = "${PN}" | ||
36 | FILES_${PN} = "${bindir} ${datadir}/gnu-config" | ||
37 | |||
38 | BBCLASSEXTEND = "native" | ||