[packages] patch: update to v2.5.9, cleanup
[openwrt/svn-archive/archive.git] / devel / patch / Makefile
1 #
2 # Copyright (C) 2008-2009 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.5.9
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@GNU/patch
16 PKG_MD5SUM:=dacfb618082f8d3a2194601193cf8716
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/patch
21 SECTION:=devel
22 CATEGORY:=Development
23 TITLE:=patch
24 URL:=http://www.gnu.org/
25 endef
26
27 define Package/patch/description
28 The Patch package contains a program for modifying or creating files
29 by applying a "patch" file typically created by the diff program.
30 endef
31
32 define Build/Compile
33 $(MAKE) -C $(PKG_BUILD_DIR) \
34 exec_prefix="$(PKG_INSTALL_DIR)" \
35 all install
36 endef
37
38 define Package/patch/install
39 $(INSTALL_DIR) $(1)/usr/bin
40 $(CP) $(PKG_INSTALL_DIR)/bin/patch $(1)/usr/bin/
41 endef
42
43 $(eval $(call BuildPackage,patch))