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.

65 lines
1.9 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
  10. PKG_RELEASE:=3
  11. PKG_SOURCE_URL:=@GNU/automake
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  13. PKG_MD5SUM:=716946a105ca228ab545fc37a70df3a3
  14. PKG_MAINTAINER:=Heinrich Schuchardt <xypron.glpk@gmx.de>
  15. PKG_LICENSE:=GPL-3.0+
  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. define Package/automake/install
  30. $(INSTALL_DIR) $(1)/usr/bin
  31. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/automake-$(PKG_VERSION) \
  32. $(1)/usr/bin/automake-$(PKG_VERSION)
  33. $(LN) automake-$(PKG_VERSION) $(1)/usr/bin/automake
  34. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/aclocal-$(PKG_VERSION) \
  35. $(1)/usr/bin/aclocal-$(PKG_VERSION)
  36. $(LN) aclocal-$(PKG_VERSION) $(1)/usr/bin/aclocal
  37. $(SED) 's|$(STAGING_DIR_HOST)|/usr|g' \
  38. $(1)/usr/bin/automake-$(PKG_VERSION)
  39. $(SED) 's|$(STAGING_DIR_HOST)|/usr|g' \
  40. $(1)/usr/bin/aclocal-$(PKG_VERSION)
  41. $(INSTALL_DIR) $(1)/usr/share/automake-$(PKG_VERSION)
  42. for dir in \
  43. automake-$(PKG_VERSION) automake-$(PKG_VERSION)/Automake \
  44. automake-$(PKG_VERSION)/am aclocal \
  45. aclocal-$(PKG_VERSION) aclocal-$(PKG_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))