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.

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