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.

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