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