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.xz
  12. PKG_SOURCE_URL:=@GNU/patch
  13. PKG_MD5SUM:=e9ae5393426d3ad783a300a338c09b72
  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))