1
0

Makefile 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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.15.1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=@GNU/automake
  13. PKG_HASH:=af6ba39142220687c500f79b4aa2f181d9b24e4f8d8ec497cea4ba26c64bedaf
  14. include $(INCLUDE_DIR)/host-build.mk
  15. HOST_CONFIGURE_ARGS += \
  16. --datarootdir=$(STAGING_DIR_HOST)/share \
  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="" ./bootstrap)
  23. $(call Host/Configure/Default)
  24. endef
  25. define Host/Install
  26. # remove old automake resources to avoid version conflicts
  27. rm -rf $(STAGING_DIR_HOST)/share/aclocal-[0-9]*
  28. rm -rf $(STAGING_DIR_HOST)/share/automake-[0-9]*
  29. $(MAKE) -C $(HOST_BUILD_DIR) install
  30. mv $(STAGING_DIR_HOST)/bin/aclocal $(STAGING_DIR_HOST)/bin/aclocal.real
  31. $(INSTALL_BIN) ./files/aclocal $(STAGING_DIR_HOST)/bin
  32. ln -sf aclocal $(STAGING_DIR_HOST)/bin/aclocal-1.9
  33. ln -sf aclocal $(STAGING_DIR_HOST)/bin/aclocal-1.10
  34. ln -sf aclocal $(STAGING_DIR_HOST)/bin/aclocal-1.11
  35. ln -sf aclocal $(STAGING_DIR_HOST)/bin/aclocal-1.11.6
  36. ln -sf aclocal $(STAGING_DIR_HOST)/bin/aclocal-1.15
  37. endef
  38. define Host/Clean
  39. -$(MAKE) -C $(HOST_BUILD_DIR) uninstall
  40. $(call Host/Clean/Default)
  41. endef
  42. $(eval $(call HostBuild))