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.5 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.7
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=@GNU/diffutils
  13. PKG_HASH:=b3a7a6221c3dc916085f0d205abf6b8e1ba443d4dd965118da364a1dc1cb3a26
  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. endef
  27. define Package/diffutils/description
  28. The Diffutils package contains programs that show the differences between
  29. files or directories.
  30. endef
  31. CONFIGURE_VARS += \
  32. gl_cv_func_getopt_gnu=yes \
  33. ac_cv_func_mempcpy=n
  34. define Package/diffutils/install
  35. $(INSTALL_DIR) $(1)/usr/bin
  36. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/{sdiff,diff3,diff,cmp} $(1)/usr/bin/
  37. endef
  38. define Package/diffutils/preinst
  39. #!/bin/sh
  40. for x in sdiff diff3 diff cmp; do
  41. [ -L "$${IPKG_INSTROOT}/usr/bin/$$x" ] && rm -f "$${IPKG_INSTROOT}/usr/bin/$$x"
  42. done
  43. exit 0
  44. endef
  45. define Package/diffutils/postrm
  46. #!/bin/sh
  47. for x in sdiff diff3 diff cmp; do
  48. /bin/busybox $$x -h 2>&1 | grep -q BusyBox && ln -sf ../../bin/busybox /usr/bin/$$x
  49. done
  50. exit 0
  51. endef
  52. $(eval $(call BuildPackage,diffutils))