b5f241b7dce13140fdaf31a784994f482e9e294e
[openwrt/staging/aparcar.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.3
11
12 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
13 PKG_SOURCE_URL:=https://distfiles.dereferenced.org/pkgconf
14 PKG_HASH:=5fb355b487d54fb6d341e4f18d4e2f7e813a6622cf03a9e87affa6a40565699d
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=false
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))