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
|
2017-09-28 02:55:46 +00:00
|
|
|
PKG_CPE_ID:=cpe:/a:gnu:automake
|
2022-08-01 12:30:43 +00:00
|
|
|
PKG_VERSION:=1.16.5
|
2022-09-02 18:51:48 +00:00
|
|
|
PKG_API_VERSION:=$(word 2,$(subst ., ,$(PKG_VERSION)))
|
2007-12-25 00:27:32 +00:00
|
|
|
|
2024-04-03 17:12:57 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2007-12-25 00:27:32 +00:00
|
|
|
PKG_SOURCE_URL:=@GNU/automake
|
2024-04-03 17:12:57 +00:00
|
|
|
PKG_HASH:=07bd24ad08a64bc17250ce09ec56e921d6343903943e99ccf63bbf0705e34605
|
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 += \
|
|
|
|
--disable-silent-rules
|
|
|
|
|
2015-03-24 13:13:01 +00:00
|
|
|
HOST_CONFIGURE_VARS += \
|
|
|
|
PERL="/usr/bin/env perl" \
|
|
|
|
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
|
2022-11-10 16:44:13 +00:00
|
|
|
(cd $(HOST_BUILD_DIR); $(AM_TOOL_PATHS) STAGING_DIR_HOST="" ./bootstrap)
|
2015-01-13 07:49:01 +00:00
|
|
|
$(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
|
2022-09-07 14:45:43 +00:00
|
|
|
$(call Host/Uninstall)
|
|
|
|
$(call Host/Compile/Default,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
|
2022-09-02 18:51:48 +00:00
|
|
|
( \
|
|
|
|
api=$(PKG_API_VERSION); \
|
|
|
|
while [ "$$$$api" -ge 11 ]; do \
|
|
|
|
ln -sf aclocal "$(STAGING_DIR_HOST)/bin/aclocal-1.$$$$api"; \
|
|
|
|
api=$$$$(($$$$api - 1)); \
|
|
|
|
done; \
|
|
|
|
)
|
2007-12-25 00:27:32 +00:00
|
|
|
endef
|
|
|
|
|
2022-09-28 08:23:56 +00:00
|
|
|
define Host/Uninstall
|
|
|
|
-$(call Host/Compile/Default,uninstall)
|
2022-09-07 14:45:43 +00:00
|
|
|
rm -rf $(STAGING_DIR_HOST)/share/aclocal-[0-9]*
|
|
|
|
rm -rf $(STAGING_DIR_HOST)/share/automake-[0-9]*
|
2007-12-25 00:27:32 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call HostBuild))
|