tools: automake: update to v1.15
[openwrt/staging/dedeckeh.git] / tools / automake / Makefile
1 #
2 # Copyright (C) 2006-2015 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 include $(TOPDIR)/rules.mk
8
9 PKG_NAME:=automake
10 PKG_VERSION:=1.15
11
12 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
13 PKG_SOURCE_URL:=@GNU/automake
14 PKG_MD5SUM:=9a1ddb0e053474d9d1105cfe39b0c48d
15
16 include $(INCLUDE_DIR)/host-build.mk
17
18 HOST_CONFIGURE_ARGS += --datarootdir=$(STAGING_DIR_HOST)/share
19 HOST_CONFIGURE_VARS += am_cv_prog_PERL_ithreads=no
20
21 define Host/Install
22 # remove old automake resources to avoid version conflicts
23 rm -rf $(STAGING_DIR_HOST)/share/aclocal-[0-9]*
24 rm -rf $(STAGING_DIR_HOST)/share/automake-[0-9]*
25 $(MAKE) -C $(HOST_BUILD_DIR) install
26 mv $(STAGING_DIR_HOST)/bin/aclocal $(STAGING_DIR_HOST)/bin/aclocal.real
27 $(INSTALL_BIN) ./files/aclocal $(STAGING_DIR_HOST)/bin
28 ln -sf aclocal $(STAGING_DIR_HOST)/bin/aclocal-1.9
29 ln -sf aclocal $(STAGING_DIR_HOST)/bin/aclocal-1.10
30 ln -sf aclocal $(STAGING_DIR_HOST)/bin/aclocal-1.11
31 ln -sf aclocal $(STAGING_DIR_HOST)/bin/aclocal-1.11.6
32 ln -sf aclocal $(STAGING_DIR_HOST)/bin/aclocal-1.15
33 endef
34
35 define Host/Clean
36 -$(MAKE) -C $(HOST_BUILD_DIR) uninstall
37 $(call Host/Clean/Default)
38 endef
39
40 $(eval $(call HostBuild))