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.2 KiB

  1. #
  2. # Copyright (C) 2015 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:=autoconf
  9. PKG_VERSION:=2.70
  10. PKG_RELEASE:=2
  11. PKG_SOURCE_URL:=@GNU/autoconf
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  13. PKG_HASH:=fa9e227860d9d845c0a07f63b88c8d7a2ae1aa2345fb619384bb8accc19fecc6
  14. PKG_MAINTAINER:=Heinrich Schuchardt <xypron.glpk@gmx.de>
  15. PKG_LICENSE:=GPL-3.0-or-later
  16. PKG_INSTALL:=1
  17. PKG_BUILD_PARALLEL:=1
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/autoconf
  20. SECTION:=devel
  21. CATEGORY:=Development
  22. TITLE:=autoconf
  23. URL:=https://www.gnu.org/software/autoconf/
  24. DEPENDS:=+m4 +perl +perlbase-data +perlbase-file +perlbase-getopt \
  25. +perlbase-dynaloader +perlbase-text
  26. endef
  27. define Package/autoconf/description
  28. Autoconf is an extensible package of M4 macros that produce shell scripts to
  29. automatically configure software source code packages.
  30. endef
  31. CONFIGURE_VARS += M4=m4 EMACS=no
  32. FIX_PATHS = $(SED) '1c \#!/usr/bin/perl' -e 's| /[^ ]*/bin/perl| /usr/bin/perl|g'
  33. define Package/autoconf/install
  34. $(INSTALL_DIR) $(1)/usr/bin
  35. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
  36. grep -rEl "#\!.*perl" $(1)/usr/bin/ | xargs $(FIX_PATHS)
  37. $(INSTALL_DIR) $(1)/usr/share/autoconf
  38. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/autoconf/INSTALL \
  39. $(1)/usr/share/autoconf/
  40. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/autoconf/autom4te.cfg \
  41. $(1)/usr/share/autoconf/
  42. $(INSTALL_DIR) $(1)/usr/share/autoconf/Autom4te
  43. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/autoconf/Autom4te/* \
  44. $(1)/usr/share/autoconf/Autom4te/
  45. $(INSTALL_DIR) $(1)/usr/share/autoconf/autoconf
  46. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/autoconf/autoconf/* \
  47. $(1)/usr/share/autoconf/autoconf/
  48. $(INSTALL_DIR) $(1)/usr/share/autoconf/autoscan
  49. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/autoconf/autoscan/* \
  50. $(1)/usr/share/autoconf/autoscan/
  51. $(INSTALL_DIR) $(1)/usr/share/autoconf/autotest
  52. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/autoconf/autotest/* \
  53. $(1)/usr/share/autoconf/autotest/
  54. $(INSTALL_DIR) $(1)/usr/share/autoconf/m4sugar
  55. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/autoconf/m4sugar/* \
  56. $(1)/usr/share/autoconf/m4sugar/
  57. endef
  58. $(eval $(call BuildPackage,autoconf))