tools/pkgconf: update to 1.7.3
[openwrt/openwrt.git] / tools / pkgconf / Makefile
1 #
2 # Copyright (C) 2006-2016 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:=pkgconf
10 PKG_VERSION:=1.7.3
11
12 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
13 PKG_SOURCE_URL:=https://distfiles.dereferenced.org/pkgconf
14 PKG_HASH:=b846aea51cf696c3392a0ae58bef93e2e72f8e7073ca6ad1ed8b01c85871f9c0
15
16 HOST_BUILD_PARALLEL:=1
17
18 include $(INCLUDE_DIR)/host-build.mk
19
20 unexport PKG_CONFIG
21
22 define Host/Install
23 $(MAKE) -C $(HOST_BUILD_DIR) install
24 mv $(STAGING_DIR_HOST)/bin/pkgconf $(STAGING_DIR_HOST)/bin/pkg-config.real
25 $(INSTALL_BIN) ./files/pkg-config $(STAGING_DIR_HOST)/bin/pkg-config
26 endef
27
28 define Host/Clean
29 -$(MAKE) -C $(HOST_BUILD_DIR) uninstall
30 $(call Host/Clean/Default)
31 endef
32
33 $(eval $(call HostBuild))