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
|
2020-12-17 07:33:55 +00:00
|
|
|
PKG_VERSION:=1.7.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
|
2020-12-17 07:33:55 +00:00
|
|
|
PKG_HASH:=b846aea51cf696c3392a0ae58bef93e2e72f8e7073ca6ad1ed8b01c85871f9c0
|
2007-10-06 23:50:47 +00:00
|
|
|
|
2012-09-15 14:17:37 +00:00
|
|
|
HOST_BUILD_PARALLEL:=1
|
|
|
|
|
2007-10-06 23:50:47 +00:00
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
|
|
|
|
2013-10-28 15:15:12 +00:00
|
|
|
unexport PKG_CONFIG
|
|
|
|
|
2020-12-23 09:16:17 +00:00
|
|
|
HOSTCC := $(HOSTCC_NOCACHE)
|
|
|
|
|
2009-02-22 04:37:20 +00:00
|
|
|
define Host/Install
|
2015-02-06 00:00:43 +00:00
|
|
|
$(MAKE) -C $(HOST_BUILD_DIR) install
|
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
|
2009-05-08 20:44:47 +00:00
|
|
|
-$(MAKE) -C $(HOST_BUILD_DIR) uninstall
|
2009-02-22 04:37:20 +00:00
|
|
|
$(call Host/Clean/Default)
|
2007-10-06 23:50:47 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call HostBuild))
|