Makefile 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #
  2. # Copyright (C) 2006 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.11.1
  10. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  11. PKG_SOURCE_URL:=@GNU/automake
  12. PKG_MD5SUM:=c2972c4d9b3e29c03d5f2af86249876f
  13. include $(INCLUDE_DIR)/host-build.mk
  14. define Host/Configure
  15. $(call Host/Configure/Default,\
  16. --datarootdir=$(STAGING_DIR_HOST)/share \
  17. )
  18. endef
  19. define Host/Compile
  20. $(MAKE) -C $(HOST_BUILD_DIR)
  21. endef
  22. define Host/Install
  23. $(MAKE) -C $(HOST_BUILD_DIR) install
  24. mv $(STAGING_DIR_HOST)/bin/aclocal $(STAGING_DIR_HOST)/bin/aclocal.real
  25. $(INSTALL_BIN) ./files/aclocal $(STAGING_DIR_HOST)/bin
  26. ln -sf $(STAGING_DIR_HOST)/bin/aclocal $(STAGING_DIR_HOST)/bin/aclocal-1.9
  27. ln -sf $(STAGING_DIR_HOST)/bin/aclocal $(STAGING_DIR_HOST)/bin/aclocal-1.10
  28. ln -sf $(STAGING_DIR_HOST)/bin/aclocal $(STAGING_DIR_HOST)/bin/aclocal-1.11
  29. ln -sf $(STAGING_DIR_HOST)/bin/aclocal $(STAGING_DIR_HOST)/bin/aclocal-1.11.1
  30. endef
  31. define Host/Clean
  32. -$(MAKE) -C $(HOST_BUILD_DIR) uninstall
  33. $(call Host/Clean/Default)
  34. endef
  35. $(eval $(call HostBuild))