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