63d28bd48b258512ed08d42cd954b1055311b7cd
[openwrt/openwrt.git] / tools / automake / Makefile
1 #
2 # Copyright (C) 2006-2012 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.11.3
11
12 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
13 PKG_SOURCE_URL:=@GNU/automake
14 PKG_MD5SUM:=3d72b2076eb4397ad5e9a2aace6357fd
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 $(MAKE) -C $(HOST_BUILD_DIR) install
23 mv $(STAGING_DIR_HOST)/bin/aclocal $(STAGING_DIR_HOST)/bin/aclocal.real
24 $(INSTALL_BIN) ./files/aclocal $(STAGING_DIR_HOST)/bin
25 ln -sf aclocal $(STAGING_DIR_HOST)/bin/aclocal-1.9
26 ln -sf aclocal $(STAGING_DIR_HOST)/bin/aclocal-1.10
27 ln -sf aclocal $(STAGING_DIR_HOST)/bin/aclocal-1.11
28 ln -sf aclocal $(STAGING_DIR_HOST)/bin/aclocal-1.11.1
29 endef
30
31 define Host/Clean
32 -$(MAKE) -C $(HOST_BUILD_DIR) uninstall
33 $(call Host/Clean/Default)
34 endef
35
36 $(eval $(call HostBuild))