diff options
author | Tudor Florea <tudor.florea@enea.com> | 2014-10-16 03:05:19 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2014-10-16 03:05:19 +0200 |
commit | c527fd1f14c27855a37f2e8ac5346ce8d940ced2 (patch) | |
tree | bb002c1fdf011c41dbd2f0927bed23ecb5f83c97 /meta/recipes-devtools/autoconf/autoconf.inc | |
download | poky-c527fd1f14c27855a37f2e8ac5346ce8d940ced2.tar.gz |
initial commit for Enea Linux 4.0-140929daisy-140929
Migrated from the internal git server on the daisy-enea-point-release branch
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 | 50 |
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 0000000000..222106a78e --- /dev/null +++ b/meta/recipes-devtools/autoconf/autoconf.inc | |||
@@ -0,0 +1,50 @@ | |||
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 | " | ||
27 | RDEPENDS_${PN}_class-native = "m4-native gnu-config-native" | ||
28 | |||
29 | SRC_URI = "${GNU_MIRROR}/autoconf/autoconf-${PV}.tar.gz \ | ||
30 | file://program_prefix.patch" | ||
31 | |||
32 | inherit autotools | ||
33 | |||
34 | do_configure() { | ||
35 | oe_runconf | ||
36 | } | ||
37 | |||
38 | do_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 | } | ||