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.

44 lines
997 B

  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. define Build/Compile
  27. $(MAKE) -C $(PKG_BUILD_DIR) \
  28. DESTDIR="$(PKG_INSTALL_DIR)" \
  29. all install
  30. endef
  31. define Package/patch/install
  32. $(INSTALL_DIR) $(1)/usr/bin
  33. $(CP) $(PKG_INSTALL_DIR)/usr/bin/patch $(1)/usr/bin/
  34. endef
  35. $(eval $(call BuildPackage,patch))