Makefile 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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:=patch
  9. PKG_VERSION:=2.7.5
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=@GNU/patch
  13. PKG_MD5SUM:=e3da7940431633fb65a01b91d3b7a27a
  14. PKG_LICENSE:=GPL-3.0+
  15. PKG_LICENSE_FILES:=COPYING
  16. include $(INCLUDE_DIR)/package.mk
  17. define Package/patch
  18. SECTION:=devel
  19. CATEGORY:=Development
  20. TITLE:=patch
  21. URL:=http://www.gnu.org/
  22. MAINTAINER:=Russell Senior <russell@personaltelco.net>
  23. endef
  24. define Package/patch/description
  25. The Patch package contains a program for modifying or creating files
  26. by applying a "patch" file typically created by the diff program.
  27. endef
  28. CONFIGURE_ARGS+= --disable-xattr
  29. define Build/Compile
  30. $(MAKE) -C $(PKG_BUILD_DIR) \
  31. DESTDIR="$(PKG_INSTALL_DIR)" \
  32. all install
  33. endef
  34. define Package/patch/install
  35. $(INSTALL_DIR) $(1)/usr/bin
  36. $(CP) $(PKG_INSTALL_DIR)/usr/bin/patch $(1)/usr/bin/
  37. endef
  38. $(eval $(call BuildPackage,patch))