You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
2.0 KiB

  1. #
  2. # Copyright (C) 2015-2016 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.1
  10. PKG_RELEASE:=2
  11. PKG_SOURCE_URL:=@GNU/automake
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  13. PKG_HASH:=af6ba39142220687c500f79b4aa2f181d9b24e4f8d8ec497cea4ba26c64bedaf
  14. PKG_MAINTAINER:=Heinrich Schuchardt <xypron.glpk@gmx.de>
  15. PKG_LICENSE:=GPL-3.0-or-later
  16. PKG_INSTALL:=1
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/automake
  19. SECTION:=devel
  20. CATEGORY:=Development
  21. TITLE:=automake
  22. URL:=https://www.gnu.org/software/automake/
  23. DEPENDS:=+autoconf +perlbase-thread +perlbase-attributes
  24. endef
  25. define Package/automake/description
  26. Automake is a tool for automatically generating Makefile.in files compliant
  27. with the GNU Coding Standards.
  28. endef
  29. FIX_PATHS = $(SED) '1c \#!/usr/bin/perl' -e 's| /[^ ]*/bin/perl| /usr/bin/perl|g'
  30. AM_VERSION:=$(word 1,$(subst ., ,$(PKG_VERSION))).$(word 2,$(subst ., ,$(PKG_VERSION)))
  31. define Package/automake/install
  32. $(INSTALL_DIR) $(1)/usr/bin
  33. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/automake-$(AM_VERSION) \
  34. $(1)/usr/bin/automake-$(AM_VERSION)
  35. $(LN) automake-$(AM_VERSION) $(1)/usr/bin/automake
  36. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/aclocal-$(AM_VERSION) \
  37. $(1)/usr/bin/aclocal-$(AM_VERSION)
  38. $(LN) aclocal-$(AM_VERSION) $(1)/usr/bin/aclocal
  39. $(FIX_PATHS) $(1)/usr/bin/automake-$(AM_VERSION)
  40. $(FIX_PATHS) $(1)/usr/bin/aclocal-$(AM_VERSION)
  41. $(INSTALL_DIR) $(1)/usr/share/automake-$(AM_VERSION)
  42. for dir in \
  43. automake-$(AM_VERSION) automake-$(AM_VERSION)/Automake \
  44. automake-$(AM_VERSION)/am aclocal \
  45. aclocal-$(AM_VERSION) aclocal-$(AM_VERSION)/internal \
  46. ; do \
  47. $(INSTALL_DIR) $(1)/usr/share/$$$$dir; \
  48. for file in $$$$(cd $(PKG_INSTALL_DIR) && \
  49. find usr/share/$$$$dir -maxdepth 1 -type f); do \
  50. $(INSTALL_DATA) $$(PKG_INSTALL_DIR)/$$$$file \
  51. $(1)/$$$$file; \
  52. done; \
  53. done
  54. endef
  55. $(eval $(call BuildPackage,automake))