Makefile 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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:=4
  11. PKG_SOURCE_URL:=@GNU/automake
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  13. PKG_MD5SUM:=9a1ddb0e053474d9d1105cfe39b0c48d
  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. FIX_PATHS = $(SED) '1c \#!/usr/bin/perl' -e 's| /[^ ]*/bin/perl| /usr/bin/perl|g'
  30. define Package/automake/install
  31. $(INSTALL_DIR) $(1)/usr/bin
  32. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/automake-$(PKG_VERSION) \
  33. $(1)/usr/bin/automake-$(PKG_VERSION)
  34. $(LN) automake-$(PKG_VERSION) $(1)/usr/bin/automake
  35. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/aclocal-$(PKG_VERSION) \
  36. $(1)/usr/bin/aclocal-$(PKG_VERSION)
  37. $(LN) aclocal-$(PKG_VERSION) $(1)/usr/bin/aclocal
  38. $(FIX_PATHS) $(1)/usr/bin/automake-$(PKG_VERSION)
  39. $(FIX_PATHS) $(1)/usr/bin/aclocal-$(PKG_VERSION)
  40. $(INSTALL_DIR) $(1)/usr/share/automake-$(PKG_VERSION)
  41. for dir in \
  42. automake-$(PKG_VERSION) automake-$(PKG_VERSION)/Automake \
  43. automake-$(PKG_VERSION)/am aclocal \
  44. aclocal-$(PKG_VERSION) aclocal-$(PKG_VERSION)/internal \
  45. ; do \
  46. $(INSTALL_DIR) $(1)/usr/share/$$$$dir; \
  47. for file in $$$$(cd $(PKG_INSTALL_DIR) && \
  48. find usr/share/$$$$dir -maxdepth 1 -type f); do \
  49. $(INSTALL_DATA) $$(PKG_INSTALL_DIR)/$$$$file \
  50. $(1)/$$$$file; \
  51. done; \
  52. done
  53. endef
  54. $(eval $(call BuildPackage,automake))