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
|
|
|
|
|
|
|
PKG_CONFIG_HOST_BINARY = $(HOST_DIR)/usr/bin/pkg-config
|
|
|
|
|
|
|
|
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 \
|
|
|
|
$(HOST_DIR)/usr/bin/pkg-config
|
|
|
|
$(SED) 's,@PKG_CONFIG_LIBDIR@,$(STAGING_DIR)/usr/lib/pkgconfig:$(STAGING_DIR)/usr/share/pkgconfig,' \
|
|
|
|
-e 's,@STAGING_DIR@,$(STAGING_DIR),' \
|
|
|
|
$(HOST_DIR)/usr/bin/pkg-config
|
|
|
|
endef
|
|
|
|
|
2014-03-05 13:19:37 +01:00
|
|
|
define HOST_PKGCONF_STATIC
|
|
|
|
$(SED) 's,@STATIC@,--static,' $(HOST_DIR)/usr/bin/pkg-config
|
|
|
|
endef
|
|
|
|
|
|
|
|
define HOST_PKGCONF_SHARED
|
|
|
|
$(SED) 's,@STATIC@,,' $(HOST_DIR)/usr/bin/pkg-config
|
|
|
|
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))
|