57a3602344834790cb016d83461fa2c00a25e0b6
[openwrt/svn-archive/archive.git] / devel / diffutils / 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:=diffutils
11 PKG_VERSION:=2.8.1
12 PKG_RELEASE:=1
13 PKG_MD5SUM:=71f9c5ae19b60608f6c7f162da86a428
14 PKG_SOURCE_URL:=http://ftp.gnu.org/gnu/diffutils/
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16
17 include $(INCLUDE_DIR)/package.mk
18
19 define Package/diffutils
20 SECTION:=devel
21 CATEGORY:=Development
22 TITLE:=diffutils
23 URL:=http://www.gnu.org/
24 endef
25
26 define Package/diffutils/description
27 The Diffutils package contains programs that show the differences between files or directories.
28 endef
29
30 define Build/Configure
31 $(CP) $(SCRIPT_DIR)/config.* $(PKG_BUILD_DIR)/config/
32 $(call Build/Configure/Default,ac_cv_func_mempcpy=n)
33 endef
34
35 define Build/Compile
36 $(MAKE_VARS) $(MAKE) $(MAKE_ARGS) -C $(PKG_BUILD_DIR) all
37 endef
38
39 define Package/diffutils/install
40 $(INSTALL_DIR) $(1)/usr/bin
41 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/{sdiff,diff3,diff,cmp} $(1)/usr/bin/
42 endef
43
44 $(eval $(call BuildPackage,diffutils))