summaryrefslogtreecommitdiff
path: root/recipes/automake/automake.inc
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/automake/automake.inc')
-rw-r--r--recipes/automake/automake.inc25
1 files changed, 25 insertions, 0 deletions
diff --git a/recipes/automake/automake.inc b/recipes/automake/automake.inc
index a4cdbbb34a..74957cc9e9 100644
--- a/recipes/automake/automake.inc
+++ b/recipes/automake/automake.inc
@@ -1,3 +1,7 @@
+DESCRIPTION = "A tool for automatically generating Makefiles."
+LICENSE = "GPL"
+HOMEPAGE = "http://www.gnu.org/software/automake/"
+SECTION = "devel"
RDEPENDS_automake += "\
autoconf \
perl \
@@ -22,3 +26,24 @@ RDEPENDS_automake += "\
perl-module-strict \
perl-module-text-parsewords \
perl-module-vars "
+SRC_URI = "${GNU_MIRROR}/automake/automake-${PV}.tar.bz2"
+INC_PR = "r2"
+AUTOMAKE_API = "${@".".join(bb.data.getVar("PV",d,1).split(".")[0:2])}"
+
+inherit autotools
+
+FILES_${PN} += "${datadir}/automake* ${datadir}/aclocal*"
+
+do_configure_prepend () {
+ if ${@['true', 'false'][bb.data.inherits_class('native', d)]}
+ then
+ export ac_cv_path_PERL="${ac_cv_path_PERL=${bindir}/perl}"
+ fi
+}
+
+do_install_append () {
+ autotools_do_install
+ ln -sf aclocal-${AUTOMAKE_API} ${D}${bindir}/aclocal
+ ln -sf automake-${AUTOMAKE_API} ${D}${bindir}/automake
+ install -d ${D}${datadir}/aclocal
+}