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.inc50
1 files changed, 50 insertions, 0 deletions
diff --git a/meta/recipes-devtools/autoconf/autoconf.inc b/meta/recipes-devtools/autoconf/autoconf.inc
new file mode 100644
index 0000000..222106a
--- /dev/null
+++ b/meta/recipes-devtools/autoconf/autoconf.inc
@@ -0,0 +1,50 @@
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 "
27RDEPENDS_${PN}_class-native = "m4-native gnu-config-native"
28
29SRC_URI = "${GNU_MIRROR}/autoconf/autoconf-${PV}.tar.gz \
30 file://program_prefix.patch"
31
32inherit autotools
33
34do_configure() {
35 oe_runconf
36}
37
38do_install_append() {
39 rm -rf ${D}${datadir}/emacs
40
41 # Some distros have both /bin/perl and /usr/bin/perl, but we set perl location
42 # for target as /usr/bin/perl, so fix it to /usr/bin/perl.
43 for i in autoheader autom4te autoreconf autoscan autoupdate ifnames; do
44 if [ -f ${D}${bindir}/$i ]; then
45 sed -i -e '1s,#!.*perl,#! ${USRBINPATH}/perl,' \
46 -e 's,exec .*/bin/perl \(.*\) exec .*/bin/perl \(.*\),exec ${USRBINPATH}/perl \1 exec ${USRBINPATH}/perl \2,' \
47 ${D}${bindir}/$i
48 fi
49 done
50}