tools: prefer gz or bz2 tarballs
[openwrt/staging/stintel.git] / tools / patch / Makefile
1 #
2 # Copyright (C) 2013 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 include $(TOPDIR)/rules.mk
8
9 PKG_NAME:=patch
10 PKG_VERSION:=2.7.6
11 PKG_RELEASE:=7
12 PKG_CPE_ID:=cpe:/a:gnu:patch
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@GNU/patch
16 PKG_HASH:=8cf86e00ad3aaa6d26aca30640e86b0e3e1f395ed99f189b06d4c9f74bc58a4e
17
18 HOST_BUILD_PARALLEL := 1
19
20 include $(INCLUDE_DIR)/host-build.mk
21
22 HOSTCC := $(HOSTCC_NOCACHE)
23 HOSTCXX := $(HOSTCXX_NOCACHE)
24
25 define Host/Uninstall
26 -$(call Host/Compile/Default,uninstall)
27 endef
28
29 $(eval $(call HostBuild))