2019-11-28 19:19:31 +00:00
|
|
|
#
|
2016-03-10 19:11:36 +00:00
|
|
|
# Copyright (C) 2006-2016 OpenWrt.org
|
2007-10-06 23:50:47 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
2019-11-28 19:19:31 +00:00
|
|
|
PKG_NAME:=pkgconf
|
2022-08-29 05:18:32 +00:00
|
|
|
PKG_VERSION:=1.9.3
|
2007-10-06 23:50:47 +00:00
|
|
|
|
2019-11-28 19:19:31 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
|
|
|
PKG_SOURCE_URL:=https://distfiles.dereferenced.org/pkgconf
|
2022-08-29 05:18:32 +00:00
|
|
|
PKG_HASH:=5fb355b487d54fb6d341e4f18d4e2f7e813a6622cf03a9e87affa6a40565699d
|
2012-09-15 14:17:37 +00:00
|
|
|
|
2007-10-06 23:50:47 +00:00
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
2021-06-19 02:53:17 +00:00
|
|
|
include $(INCLUDE_DIR)/meson.mk
|
2007-10-06 23:50:47 +00:00
|
|
|
|
2013-10-28 15:15:12 +00:00
|
|
|
unexport PKG_CONFIG
|
|
|
|
|
2020-12-23 09:16:17 +00:00
|
|
|
HOSTCC := $(HOSTCC_NOCACHE)
|
|
|
|
|
2021-06-19 02:53:17 +00:00
|
|
|
MESON_HOST_ARGS += \
|
|
|
|
-Ddefault_library=static \
|
|
|
|
-Dtests=false
|
|
|
|
|
2009-02-22 04:37:20 +00:00
|
|
|
define Host/Install
|
2021-06-19 02:53:17 +00:00
|
|
|
$(call Host/Install/Meson)
|
2019-11-28 19:19:31 +00:00
|
|
|
mv $(STAGING_DIR_HOST)/bin/pkgconf $(STAGING_DIR_HOST)/bin/pkg-config.real
|
2007-10-06 23:50:47 +00:00
|
|
|
$(INSTALL_BIN) ./files/pkg-config $(STAGING_DIR_HOST)/bin/pkg-config
|
|
|
|
endef
|
|
|
|
|
2009-02-22 04:37:20 +00:00
|
|
|
define Host/Clean
|
2021-06-19 02:53:17 +00:00
|
|
|
rm -f $(STAGING_DIR_HOST)/bin/pkg-config.real $(STAGING_DIR_HOST)/bin/pkg-config
|
|
|
|
$(call Host/Clean/Meson)
|
2007-10-06 23:50:47 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call HostBuild))
|