summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/autoconf/autoconf.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/autoconf/autoconf.inc')
-rw-r--r--meta/recipes-devtools/autoconf/autoconf.inc51
1 files changed, 51 insertions, 0 deletions
diff --git a/meta/recipes-devtools/autoconf/autoconf.inc b/meta/recipes-devtools/autoconf/autoconf.inc
new file mode 100644
index 0000000000..8b00fbddf5
--- /dev/null
+++ b/meta/recipes-devtools/autoconf/autoconf.inc
@@ -0,0 +1,51 @@
1SUMMARY = "A GNU tool that procude shell scripts to automatically configure software"
2DESCRIPTION = "Autoconf is an extensible package of M4 macros that produce shell scripts to automatically \
3configure software source code packages. Autoconf creates a configuration script for a package from a template \
4file that lists the operating system features that the package can use, in the form of M4 macro calls."
5LICENSE = "GPLv3"
6HOMEPAGE = "http://www.gnu.org/software/autoconf/"
7SECTION = "devel"
8DEPENDS += "m4-native"
9DEPENDS_class-native = "m4-native gnu-config-native"
10DEPENDS_class-nativesdk = "nativesdk-m4 nativesdk-gnu-config"
11RDEPENDS_${PN} = "m4 gnu-config \
12 perl \
13 perl-module-carp \
14 perl-module-constant \
15 perl-module-errno \
16 perl-module-exporter \
17 perl-module-file-basename \
18 perl-module-file-compare \
19 perl-module-file-copy \
20 perl-module-file-glob \
21 perl-module-file-path \
22 perl-module-file-stat \
23 perl-module-getopt-long \
24 perl-module-io-file \
25 perl-module-posix \
26 perl-module-data-dumper \
27 "
28RDEPENDS_${PN}_class-native = "m4-native gnu-config-native"
29
30SRC_URI = "${GNU_MIRROR}/autoconf/autoconf-${PV}.tar.gz \
31 file://program_prefix.patch"
32
33inherit autotools texinfo
34
35do_configure() {
36 oe_runconf
37}
38
39do_install_append() {
40 rm -rf ${D}${datadir}/emacs
41
42 # Some distros have both /bin/perl and /usr/bin/perl, but we set perl location
43 # for target as /usr/bin/perl, so fix it to /usr/bin/perl.
44 for i in autoheader autom4te autoreconf autoscan autoupdate ifnames; do
45 if [ -f ${D}${bindir}/$i ]; then
46 sed -i -e '1s,#!.*perl,#! ${USRBINPATH}/perl,' \
47 -e 's,exec .*/bin/perl \(.*\) exec .*/bin/perl \(.*\),exec ${USRBINPATH}/perl \1 exec ${USRBINPATH}/perl \2,' \
48 ${D}${bindir}/$i
49 fi
50 done
51}