2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2012-10-24 12:10:44 +02:00
|
|
|
#
|
|
|
|
# pkgconf
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2012-10-24 12:10:44 +02:00
|
|
|
|
2015-10-05 15:49:29 +02:00
|
|
|
PKGCONF_VERSION = 0.9.12
|
|
|
|
PKGCONF_SITE = https://github.com/pkgconf/pkgconf/releases/download/pkgconf-$(PKGCONF_VERSION)
|
2012-10-24 12:10:44 +02:00
|
|
|
PKGCONF_SOURCE = pkgconf-$(PKGCONF_VERSION).tar.bz2
|
2013-01-20 10:22:36 +01:00
|
|
|
PKGCONF_LICENSE = pkgconf license
|
|
|
|
PKGCONF_LICENSE_FILES = COPYING
|
2012-10-24 12:10:44 +02:00
|
|
|
|
2017-07-05 13:14:19 +02:00
|
|
|
PKG_CONFIG_HOST_BINARY = $(HOST_DIR)/bin/pkg-config
|
2012-10-24 12:10:44 +02:00
|
|
|
|
|
|
|
define PKGCONF_LINK_PKGCONFIG
|
|
|
|
ln -sf pkgconf $(TARGET_DIR)/usr/bin/pkg-config
|
|
|
|
endef
|
|
|
|
|
|
|
|
define HOST_PKGCONF_INSTALL_WRAPPER
|
|
|
|
$(INSTALL) -m 0755 -D package/pkgconf/pkg-config.in \
|
2017-07-05 13:14:19 +02:00
|
|
|
$(HOST_DIR)/bin/pkg-config
|
2017-12-01 21:53:38 +01:00
|
|
|
$(SED) 's,@STAGING_SUBDIR@,$(STAGING_SUBDIR),g' \
|
2017-07-05 13:14:19 +02:00
|
|
|
$(HOST_DIR)/bin/pkg-config
|
2012-10-24 12:10:44 +02:00
|
|
|
endef
|
|
|
|
|
2014-03-05 13:19:37 +01:00
|
|
|
define HOST_PKGCONF_STATIC
|
2017-07-05 13:14:19 +02:00
|
|
|
$(SED) 's,@STATIC@,--static,' $(HOST_DIR)/bin/pkg-config
|
2014-03-05 13:19:37 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define HOST_PKGCONF_SHARED
|
2017-07-05 13:14:19 +02:00
|
|
|
$(SED) 's,@STATIC@,,' $(HOST_DIR)/bin/pkg-config
|
2014-03-05 13:19:37 +01:00
|
|
|
endef
|
|
|
|
|
2012-10-24 12:10:44 +02:00
|
|
|
PKGCONF_POST_INSTALL_TARGET_HOOKS += PKGCONF_LINK_PKGCONFIG
|
|
|
|
HOST_PKGCONF_POST_INSTALL_HOOKS += HOST_PKGCONF_INSTALL_WRAPPER
|
|
|
|
|
2014-12-03 22:41:29 +01:00
|
|
|
ifeq ($(BR2_STATIC_LIBS),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
HOST_PKGCONF_POST_INSTALL_HOOKS += HOST_PKGCONF_STATIC
|
2014-03-05 13:19:37 +01:00
|
|
|
else
|
2015-03-31 09:21:57 +02:00
|
|
|
HOST_PKGCONF_POST_INSTALL_HOOKS += HOST_PKGCONF_SHARED
|
2014-03-05 13:19:37 +01:00
|
|
|
endif
|
|
|
|
|
2012-10-24 12:10:44 +02:00
|
|
|
$(eval $(autotools-package))
|
|
|
|
$(eval $(host-autotools-package))
|