From c527fd1f14c27855a37f2e8ac5346ce8d940ced2 Mon Sep 17 00:00:00 2001 From: Tudor Florea Date: Thu, 16 Oct 2014 03:05:19 +0200 Subject: initial commit for Enea Linux 4.0-140929 Migrated from the internal git server on the daisy-enea-point-release branch Signed-off-by: Tudor Florea --- meta/recipes-devtools/autoconf/autoconf.inc | 50 +++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 meta/recipes-devtools/autoconf/autoconf.inc (limited to 'meta/recipes-devtools/autoconf/autoconf.inc') 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 @@ +SUMMARY = "A GNU tool that procude shell scripts to automatically configure software" +DESCRIPTION = "Autoconf is an extensible package of M4 macros that produce shell scripts to automatically \ +configure software source code packages. Autoconf creates a configuration script for a package from a template \ +file that lists the operating system features that the package can use, in the form of M4 macro calls." +LICENSE = "GPLv3" +HOMEPAGE = "http://www.gnu.org/software/autoconf/" +SECTION = "devel" +DEPENDS += "m4-native" +DEPENDS_class-native = "m4-native gnu-config-native" +DEPENDS_class-nativesdk = "nativesdk-m4 nativesdk-gnu-config" +RDEPENDS_${PN} = "m4 gnu-config \ + perl \ + perl-module-carp \ + perl-module-constant \ + perl-module-errno \ + perl-module-exporter \ + perl-module-file-basename \ + perl-module-file-compare \ + perl-module-file-copy \ + perl-module-file-glob \ + perl-module-file-path \ + perl-module-file-stat \ + perl-module-getopt-long \ + perl-module-io-file \ + perl-module-posix \ + " +RDEPENDS_${PN}_class-native = "m4-native gnu-config-native" + +SRC_URI = "${GNU_MIRROR}/autoconf/autoconf-${PV}.tar.gz \ + file://program_prefix.patch" + +inherit autotools + +do_configure() { + oe_runconf +} + +do_install_append() { + rm -rf ${D}${datadir}/emacs + + # Some distros have both /bin/perl and /usr/bin/perl, but we set perl location + # for target as /usr/bin/perl, so fix it to /usr/bin/perl. + for i in autoheader autom4te autoreconf autoscan autoupdate ifnames; do + if [ -f ${D}${bindir}/$i ]; then + sed -i -e '1s,#!.*perl,#! ${USRBINPATH}/perl,' \ + -e 's,exec .*/bin/perl \(.*\) exec .*/bin/perl \(.*\),exec ${USRBINPATH}/perl \1 exec ${USRBINPATH}/perl \2,' \ + ${D}${bindir}/$i + fi + done +} -- cgit v1.2.3-54-g00ecf