2 # Copyright (C) 2008-2015 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
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.xz
15 PKG_SOURCE_URL
:=@GNU
/diffutils
16 PKG_HASH
:=a25e89a8ab65fded1731e4186be1bb25cda967834b6df973599cdcd5abdfc19c
17 PKG_MAINTAINER
:=Roger D
<rogerdammit@gmail.com
>
22 include $(INCLUDE_DIR
)/package.mk
24 define Package
/diffutils
27 DEPENDS
:=+USE_GLIBC
:librt
29 URL
:=http
://www.gnu.org
/software
/diffutils
/
32 define Package
/diffutils
/description
33 The Diffutils package contains programs that show the differences between
39 TARGET_CFLAGS
+= --std
=gnu99
41 define Package
/diffutils
/install
42 $(INSTALL_DIR
) $(1)/usr
/bin
43 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/{sdiff
,diff3
,diff
,cmp
} $(1)/usr
/bin
/
46 define Package
/diffutils
/preinst
48 for x in sdiff diff3 diff cmp
; do
49 [ -L
"$${IPKG_INSTROOT}/usr/bin/$$x" ] && rm -f
"$${IPKG_INSTROOT}/usr/bin/$$x"
54 define Package
/diffutils
/postrm
56 for x in sdiff diff3 diff cmp
; do
57 /bin
/busybox
$$x -h
2>&1 | grep
-q BusyBox
&& ln
-sf ..
/..
/bin
/busybox
/usr
/bin
/$$x
62 $(eval
$(call BuildPackage
,diffutils
))