2008-10-08 21:50:03 +00:00
|
|
|
#
|
2015-01-09 14:51:23 +00:00
|
|
|
# Copyright (C) 2006-2015 OpenWrt.org
|
2007-12-25 00:27:32 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=automake
|
2015-01-09 14:51:23 +00:00
|
|
|
PKG_VERSION:=1.15
|
2007-12-25 00:27:32 +00:00
|
|
|
|
2012-04-02 16:25:28 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
2007-12-25 00:27:32 +00:00
|
|
|
PKG_SOURCE_URL:=@GNU/automake
|
2015-01-09 14:51:23 +00:00
|
|
|
PKG_MD5SUM:=9a1ddb0e053474d9d1105cfe39b0c48d
|
2007-12-25 00:27:32 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
|
|
|
|
2015-03-12 00:39:50 +00:00
|
|
|
HOST_CONFIGURE_ARGS += \
|
|
|
|
--datarootdir=$(STAGING_DIR_HOST)/share \
|
|
|
|
--disable-silent-rules
|
|
|
|
|
2012-02-01 15:06:36 +00:00
|
|
|
HOST_CONFIGURE_VARS += am_cv_prog_PERL_ithreads=no
|
2007-12-25 00:27:32 +00:00
|
|
|
|
2015-01-13 07:49:01 +00:00
|
|
|
define Host/Configure
|
|
|
|
(cd $(HOST_BUILD_DIR); $(AM_TOOL_PATHS) STAGING_DIR="" ./bootstrap.sh)
|
|
|
|
$(call Host/Configure/Default)
|
|
|
|
endef
|
|
|
|
|
2009-02-22 04:37:20 +00:00
|
|
|
define Host/Install
|
2015-01-09 14:51:23 +00:00
|
|
|
# remove old automake resources to avoid version conflicts
|
|
|
|
rm -rf $(STAGING_DIR_HOST)/share/aclocal-[0-9]*
|
|
|
|
rm -rf $(STAGING_DIR_HOST)/share/automake-[0-9]*
|
2009-02-22 04:37:20 +00:00
|
|
|
$(MAKE) -C $(HOST_BUILD_DIR) install
|
2008-10-08 21:50:03 +00:00
|
|
|
mv $(STAGING_DIR_HOST)/bin/aclocal $(STAGING_DIR_HOST)/bin/aclocal.real
|
|
|
|
$(INSTALL_BIN) ./files/aclocal $(STAGING_DIR_HOST)/bin
|
2012-01-28 03:51:22 +00:00
|
|
|
ln -sf aclocal $(STAGING_DIR_HOST)/bin/aclocal-1.9
|
|
|
|
ln -sf aclocal $(STAGING_DIR_HOST)/bin/aclocal-1.10
|
|
|
|
ln -sf aclocal $(STAGING_DIR_HOST)/bin/aclocal-1.11
|
2013-12-17 02:47:13 +00:00
|
|
|
ln -sf aclocal $(STAGING_DIR_HOST)/bin/aclocal-1.11.6
|
2015-01-09 14:51:23 +00:00
|
|
|
ln -sf aclocal $(STAGING_DIR_HOST)/bin/aclocal-1.15
|
2007-12-25 00:27:32 +00:00
|
|
|
endef
|
|
|
|
|
2009-02-22 04:37:20 +00:00
|
|
|
define Host/Clean
|
2009-05-08 20:44:47 +00:00
|
|
|
-$(MAKE) -C $(HOST_BUILD_DIR) uninstall
|
2009-02-22 04:37:20 +00:00
|
|
|
$(call Host/Clean/Default)
|
2007-12-25 00:27:32 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call HostBuild))
|