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