Makefile 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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_HASH:=9908c75aabd49d13661d6dcb1bc382252d22cc77bf733a2d55e87f2aa2db8636
  13. include $(INCLUDE_DIR)/host-build.mk
  14. HOST_CONFIGURE_ARGS += \
  15. --datarootdir=$(STAGING_DIR_HOST)/share \
  16. --disable-silent-rules
  17. HOST_CONFIGURE_VARS += \
  18. PERL="/usr/bin/env perl" \
  19. am_cv_prog_PERL_ithreads=no
  20. define Host/Configure
  21. (cd $(HOST_BUILD_DIR); $(AM_TOOL_PATHS) STAGING_DIR="" ./bootstrap.sh)
  22. $(call Host/Configure/Default)
  23. endef
  24. define Host/Install
  25. # remove old automake resources to avoid version conflicts
  26. rm -rf $(STAGING_DIR_HOST)/share/aclocal-[0-9]*
  27. rm -rf $(STAGING_DIR_HOST)/share/automake-[0-9]*
  28. $(MAKE) -C $(HOST_BUILD_DIR) install
  29. mv $(STAGING_DIR_HOST)/bin/aclocal $(STAGING_DIR_HOST)/bin/aclocal.real
  30. $(INSTALL_BIN) ./files/aclocal $(STAGING_DIR_HOST)/bin
  31. ln -sf aclocal $(STAGING_DIR_HOST)/bin/aclocal-1.9
  32. ln -sf aclocal $(STAGING_DIR_HOST)/bin/aclocal-1.10
  33. ln -sf aclocal $(STAGING_DIR_HOST)/bin/aclocal-1.11
  34. ln -sf aclocal $(STAGING_DIR_HOST)/bin/aclocal-1.11.6
  35. ln -sf aclocal $(STAGING_DIR_HOST)/bin/aclocal-1.15
  36. endef
  37. define Host/Clean
  38. -$(MAKE) -C $(HOST_BUILD_DIR) uninstall
  39. $(call Host/Clean/Default)
  40. endef
  41. $(eval $(call HostBuild))