2 # Copyright (C) 2008-2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
13 PKG_MD5SUM
:=71f9c5ae19b60608f6c7f162da86a428
14 PKG_SOURCE_URL
:=@GNU
/diffutils
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
17 include $(INCLUDE_DIR
)/package.mk
19 define Package
/diffutils
23 URL
:=http
://www.gnu.org
/software
/diffutils
/
26 define Package
/diffutils
/description
27 The Diffutils package contains programs that show the differences between files or directories.
30 define Build
/Configure
31 $(CP
) $(SCRIPT_DIR
)/config.
* $(PKG_BUILD_DIR
)/config
/
32 $(call Build
/Configure
/Default
,ac_cv_func_mempcpy
=n
)
36 $(MAKE_VARS
) $(MAKE
) $(MAKE_ARGS
) -C
$(PKG_BUILD_DIR
) all
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
/
44 $(eval
$(call BuildPackage
,diffutils
))