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
|
2024-06-11 06:16:44 +00:00
|
|
|
PKG_VERSION:=2.2.0
|
2007-10-06 23:50:47 +00:00
|
|
|
|
2024-04-03 17:12:57 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2019-11-28 19:19:31 +00:00
|
|
|
PKG_SOURCE_URL:=https://distfiles.dereferenced.org/pkgconf
|
2024-06-11 06:16:44 +00:00
|
|
|
PKG_HASH:=28f8dfc279a10ef66148befa3f6eb266e5f3570316600208ed50e9781c7269d8
|
2012-09-15 14:17:37 +00:00
|
|
|
|
2023-02-05 13:59:03 +00:00
|
|
|
PKG_CPE_ID:=cpe:/a:pkgconf:pkgconf
|
|
|
|
|
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 \
|
2023-02-05 13:06:35 +00:00
|
|
|
-Dtests=disabled
|
2021-06-19 02:53:17 +00:00
|
|
|
|
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))
|