da1f005be63c2e719a41b0ece8e7bdc8c795fee8
[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.1
11
12 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
13 PKG_SOURCE_URL:=https://distfiles.dereferenced.org/pkgconf
14 PKG_HASH:=3238af7473740844e5159dd8fb6540603e3fbcebf60beb3c8a426cdca2e29c51
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))