Makefile 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. PKG_NAME:=automake
  9. PKG_CPE_ID:=cpe:/a:gnu:automake
  10. PKG_VERSION:=1.18.1
  11. PKG_API_VERSION:=$(word 2,$(subst ., ,$(PKG_VERSION)))
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  13. PKG_SOURCE_URL:=@GNU/automake
  14. PKG_HASH:=63e585246d0fc8772dffdee0724f2f988146d1a3f1c756a3dc5cfbefa3c01915
  15. include $(INCLUDE_DIR)/host-build.mk
  16. HOST_CONFIGURE_ARGS += \
  17. --disable-silent-rules
  18. HOST_CONFIGURE_VARS += \
  19. PERL="/usr/bin/env perl"
  20. define Host/Configure
  21. (cd $(HOST_BUILD_DIR); $(AM_TOOL_PATHS) STAGING_DIR_HOST="" ./bootstrap)
  22. $(call Host/Configure/Default)
  23. endef
  24. define Host/Install
  25. # remove old automake resources to avoid version conflicts
  26. $(call Host/Uninstall)
  27. $(call Host/Compile/Default,install)
  28. mv $(STAGING_DIR_HOST)/bin/aclocal $(STAGING_DIR_HOST)/bin/aclocal.real
  29. $(INSTALL_BIN) ./files/aclocal $(STAGING_DIR_HOST)/bin
  30. ( \
  31. api=$(PKG_API_VERSION); \
  32. while [ "$$$$api" -ge 11 ]; do \
  33. ln -sf aclocal "$(STAGING_DIR_HOST)/bin/aclocal-1.$$$$api"; \
  34. api=$$$$(($$$$api - 1)); \
  35. done; \
  36. )
  37. endef
  38. define Host/Uninstall
  39. -$(call Host/Compile/Default,uninstall)
  40. rm -rf $(STAGING_DIR_HOST)/share/aclocal-[0-9]*
  41. rm -rf $(STAGING_DIR_HOST)/share/automake-[0-9]*
  42. endef
  43. $(eval $(call HostBuild))