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.

46 lines
1.0 KiB

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