boost: disable mips16 support
[openwrt/svn-archive/archive.git] / devel / diffutils / Makefile
1 #
2 # Copyright (C) 2008-2012 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:=3.0
12 PKG_RELEASE:=3
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@GNU/diffutils
16 PKG_MD5SUM:=684aaba1baab743a2a90e52162ff07da
17
18 PKG_INSTALL:=1
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/diffutils
23 SECTION:=devel
24 CATEGORY:=Development
25 DEPENDS:=+USE_EGLIBC:librt
26 TITLE:=diffutils
27 URL:=http://www.gnu.org/software/diffutils/
28 endef
29
30 define Package/diffutils/description
31 The Diffutils package contains programs that show the differences between
32 files or directories.
33 endef
34
35 CONFIGURE_VARS += \
36 ac_cv_func_mempcpy=n \
37
38 define Package/diffutils/install
39 $(INSTALL_DIR) $(1)/usr/bin
40 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/{sdiff,diff3,diff,cmp} $(1)/usr/bin/
41 endef
42
43 define Package/diffutils/preinst
44 #!/bin/sh
45 for x in sdiff diff3 diff cmp; do
46 [ -L "$${IPKG_INSTROOT}/usr/bin/$$x" ] && rm -f "$${IPKG_INSTROOT}/usr/bin/$$x"
47 done
48 exit 0
49 endef
50
51 define Package/diffutils/postrm
52 #!/bin/sh
53 for x in sdiff diff3 diff cmp; do
54 /bin/busybox $$x -h 2>&1 | grep -q BusyBox && ln -sf ../../bin/busybox /usr/bin/$$x
55 done
56 exit 0
57 endef
58
59 $(eval $(call BuildPackage,diffutils))