diff options
author | Tudor Florea <tudor.florea@enea.com> | 2015-10-09 22:59:03 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2015-10-09 22:59:03 +0200 |
commit | 972dcfcdbfe75dcfeb777150c136576cf1a71e99 (patch) | |
tree | 97a61cd7e293d7ae9d56ef7ed0f81253365bb026 /meta/recipes-devtools/autoconf/autoconf.inc | |
download | poky-972dcfcdbfe75dcfeb777150c136576cf1a71e99.tar.gz |
initial commit for Enea Linux 5.0 arm
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta/recipes-devtools/autoconf/autoconf.inc')
-rw-r--r-- | meta/recipes-devtools/autoconf/autoconf.inc | 51 |
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 @@ | |||
1 | SUMMARY = "A GNU tool that procude shell scripts to automatically configure software" | ||
2 | DESCRIPTION = "Autoconf is an extensible package of M4 macros that produce shell scripts to automatically \ | ||
3 | configure software source code packages. Autoconf creates a configuration script for a package from a template \ | ||
4 | file that lists the operating system features that the package can use, in the form of M4 macro calls." | ||
5 | LICENSE = "GPLv3" | ||
6 | HOMEPAGE = "http://www.gnu.org/software/autoconf/" | ||
7 | SECTION = "devel" | ||
8 | DEPENDS += "m4-native" | ||
9 | DEPENDS_class-native = "m4-native gnu-config-native" | ||
10 | DEPENDS_class-nativesdk = "nativesdk-m4 nativesdk-gnu-config" | ||
11 | RDEPENDS_${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 | " | ||
28 | RDEPENDS_${PN}_class-native = "m4-native gnu-config-native" | ||
29 | |||
30 | SRC_URI = "${GNU_MIRROR}/autoconf/autoconf-${PV}.tar.gz \ | ||
31 | file://program_prefix.patch" | ||
32 | |||
33 | inherit autotools texinfo | ||
34 | |||
35 | do_configure() { | ||
36 | oe_runconf | ||
37 | } | ||
38 | |||
39 | do_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 | } | ||