1
0

Makefile 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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.16.5
  11. PKG_API_VERSION:=$(word 2,$(subst ., ,$(PKG_VERSION)))
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  13. PKG_SOURCE_URL:=@GNU/automake
  14. PKG_HASH:=f01d58cd6d9d77fbdca9eb4bbd5ead1988228fdb73d6f7a201f5f8d6b118b469
  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. am_cv_prog_PERL_ithreads=no
  21. define Host/Configure
  22. (cd $(HOST_BUILD_DIR); $(AM_TOOL_PATHS) STAGING_DIR_HOST="" ./bootstrap)
  23. $(call Host/Configure/Default)
  24. endef
  25. define Host/Install
  26. # remove old automake resources to avoid version conflicts
  27. $(call Host/Uninstall)
  28. $(call Host/Compile/Default,install)
  29. mv $(STAGING_DIR_HOST)/bin/aclocal $(STAGING_DIR_HOST)/bin/aclocal.real
  30. $(INSTALL_BIN) ./files/aclocal $(STAGING_DIR_HOST)/bin
  31. ( \
  32. api=$(PKG_API_VERSION); \
  33. while [ "$$$$api" -ge 11 ]; do \
  34. ln -sf aclocal "$(STAGING_DIR_HOST)/bin/aclocal-1.$$$$api"; \
  35. api=$$$$(($$$$api - 1)); \
  36. done; \
  37. )
  38. endef
  39. define Host/Uninstall
  40. -$(call Host/Compile/Default,uninstall)
  41. rm -rf $(STAGING_DIR_HOST)/share/aclocal-[0-9]*
  42. rm -rf $(STAGING_DIR_HOST)/share/automake-[0-9]*
  43. endef
  44. $(eval $(call HostBuild))