Makefile 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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_VERSION:=1.15
  10. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  11. PKG_SOURCE_URL:=@GNU/automake
  12. PKG_MD5SUM:=9a1ddb0e053474d9d1105cfe39b0c48d
  13. include $(INCLUDE_DIR)/host-build.mk
  14. HOST_CONFIGURE_ARGS += --datarootdir=$(STAGING_DIR_HOST)/share
  15. HOST_CONFIGURE_VARS += am_cv_prog_PERL_ithreads=no
  16. define Host/Configure
  17. (cd $(HOST_BUILD_DIR); $(AM_TOOL_PATHS) STAGING_DIR="" ./bootstrap.sh)
  18. $(call Host/Configure/Default)
  19. endef
  20. define Host/Install
  21. # remove old automake resources to avoid version conflicts
  22. rm -rf $(STAGING_DIR_HOST)/share/aclocal-[0-9]*
  23. rm -rf $(STAGING_DIR_HOST)/share/automake-[0-9]*
  24. $(MAKE) -C $(HOST_BUILD_DIR) install
  25. mv $(STAGING_DIR_HOST)/bin/aclocal $(STAGING_DIR_HOST)/bin/aclocal.real
  26. $(INSTALL_BIN) ./files/aclocal $(STAGING_DIR_HOST)/bin
  27. ln -sf aclocal $(STAGING_DIR_HOST)/bin/aclocal-1.9
  28. ln -sf aclocal $(STAGING_DIR_HOST)/bin/aclocal-1.10
  29. ln -sf aclocal $(STAGING_DIR_HOST)/bin/aclocal-1.11
  30. ln -sf aclocal $(STAGING_DIR_HOST)/bin/aclocal-1.11.6
  31. ln -sf aclocal $(STAGING_DIR_HOST)/bin/aclocal-1.15
  32. endef
  33. define Host/Clean
  34. -$(MAKE) -C $(HOST_BUILD_DIR) uninstall
  35. $(call Host/Clean/Default)
  36. endef
  37. $(eval $(call HostBuild))