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.

55 lines
1.4 KiB

  1. #
  2. # Copyright (C) 2008-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:=diffutils
  9. PKG_VERSION:=3.8
  10. PKG_RELEASE:=$(AUTORELEASE)
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=@GNU/diffutils
  13. PKG_HASH:=a6bdd7d1b31266d11c4f4de6c1b748d4607ab0231af5188fc2533d0ae2438fec
  14. PKG_MAINTAINER:=Roger D <rogerdammit@gmail.com>
  15. PKG_LICENSE:=GPL-3.0
  16. PKG_LICENSE_FILES:=COPYING
  17. PKG_BUILD_PARALLEL:=1
  18. PKG_INSTALL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/diffutils
  21. SECTION:=devel
  22. CATEGORY:=Development
  23. DEPENDS:=+USE_GLIBC:librt
  24. TITLE:=diffutils
  25. URL:=http://www.gnu.org/software/diffutils/
  26. ALTERNATIVES:=\
  27. 200:/usr/bin/cmp:/usr/libexec/cmp-gnu \
  28. 200:/usr/bin/diff:/usr/libexec/diff-gnu
  29. endef
  30. define Package/diffutils/description
  31. The Diffutils package contains programs that show the differences between
  32. files or directories.
  33. endef
  34. CONFIGURE_VARS += \
  35. gl_cv_func_getopt_gnu=yes \
  36. ac_cv_func_mempcpy=n
  37. define Package/diffutils/install
  38. $(INSTALL_DIR) $(1)/usr/bin
  39. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/{sdiff,diff3} $(1)/usr/bin/
  40. $(INSTALL_DIR) $(1)/usr/libexec
  41. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/diff $(1)/usr/libexec/diff-gnu
  42. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/cmp $(1)/usr/libexec/cmp-gnu
  43. endef
  44. $(eval $(call BuildPackage,diffutils))