summaryrefslogtreecommitdiff
path: root/gnu-config/gnu-config-native.oe
blob: c6749c5cd0f761ca52205dba73f5a0ef6a1bb235 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
SECTION = "base"
include gnu-config.oe

inherit native

DEPENDS = "patcher-native"
FILESDIR = "${@os.path.dirname(oe.data.getVar('FILE',d,1))}/gnu-config"

do_stage () {
	install -d ${STAGING_DATADIR}/gnu-config
	cat ${WORKDIR}/gnu-configize.in | \
		sed -e 's,@gnu-configdir@,${STAGING_DATADIR}/gnu-config,' \
		    -e 's,@autom4te_perllibdir@,${STAGING_DATADIR}/autoconf,' > ${STAGING_BINDIR}/gnu-configize
	chmod 755 ${STAGING_BINDIR}/gnu-configize
	install -m 0644 config.guess config.sub ${STAGING_DATADIR}/gnu-config/
}