tools/pkgconf: update to 1.9.4
[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.9.4
11
12 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
13 PKG_SOURCE_URL:=https://distfiles.dereferenced.org/pkgconf
14 PKG_HASH:=daccf1bbe5a30d149b556c7d2ffffeafd76d7b514e249271abdd501533c1d8ae
15
16 include $(INCLUDE_DIR)/host-build.mk
17 include $(INCLUDE_DIR)/meson.mk
18
19 unexport PKG_CONFIG
20
21 HOSTCC := $(HOSTCC_NOCACHE)
22
23 MESON_HOST_ARGS += \
24 -Ddefault_library=static \
25 -Dtests=disabled
26
27 define Host/Install
28 $(call Host/Install/Meson)
29 mv $(STAGING_DIR_HOST)/bin/pkgconf $(STAGING_DIR_HOST)/bin/pkg-config.real
30 $(INSTALL_BIN) ./files/pkg-config $(STAGING_DIR_HOST)/bin/pkg-config
31 endef
32
33 define Host/Clean
34 rm -f $(STAGING_DIR_HOST)/bin/pkg-config.real $(STAGING_DIR_HOST)/bin/pkg-config
35 $(call Host/Clean/Meson)
36 endef
37
38 $(eval $(call HostBuild))