2006-07-09 01:55:55 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# pkgconfig
|
|
|
|
#
|
|
|
|
#############################################################
|
2009-03-19 09:30:20 +01:00
|
|
|
PKG_CONFIG_VERSION = 0.23
|
|
|
|
PKG_CONFIG_SOURCE = pkg-config-$(PKG_CONFIG_VERSION).tar.gz
|
|
|
|
PKG_CONFIG_SITE = http://pkgconfig.freedesktop.org/releases/
|
2009-03-18 20:18:45 +01:00
|
|
|
|
2009-03-18 20:19:10 +01:00
|
|
|
ifeq ($(BR2_ENABLE_DEBUG),y) # install-exec doesn't install aclocal stuff
|
2009-03-23 22:46:32 +01:00
|
|
|
PKG_CONFIG_INSTALL_TARGET_OPT = DESTDIR=$(TARGET_DIR) install
|
2009-03-18 20:19:10 +01:00
|
|
|
endif
|
|
|
|
|
2009-09-02 17:02:02 +02:00
|
|
|
PKG_CONFIG_DEPENDENCIES = libglib2
|
2006-07-09 01:55:55 +02:00
|
|
|
|
2009-03-19 09:30:20 +01:00
|
|
|
PKG_CONFIG_CONF_OPT = --with-installed-glib
|
2006-07-09 01:55:55 +02:00
|
|
|
|
2009-10-27 23:15:09 +01:00
|
|
|
HOST_PKG_CONFIG_CONF_OPT = \
|
2008-06-14 23:00:59 +02:00
|
|
|
--with-pc-path="$(STAGING_DIR)/usr/lib/pkgconfig" \
|
2009-10-27 23:15:09 +01:00
|
|
|
--disable-static
|
2006-07-09 01:55:55 +02:00
|
|
|
|
2009-10-27 23:15:09 +01:00
|
|
|
define HOST_PKG_CONFIG_INSTALL_M4
|
|
|
|
install -D -m 0644 $(HOST_DIR)/usr/share/aclocal/pkg.m4 \
|
2009-03-29 21:10:26 +02:00
|
|
|
$(STAGING_DIR)/usr/share/aclocal/pkg.m4
|
2009-10-27 23:15:09 +01:00
|
|
|
endef
|
2006-07-09 01:55:55 +02:00
|
|
|
|
2009-10-27 23:15:09 +01:00
|
|
|
HOST_PKG_CONFIG_POST_INSTALL_HOOKS += HOST_PKG_CONFIG_INSTALL_M4
|
2006-07-09 01:55:55 +02:00
|
|
|
|
2009-10-27 23:15:09 +01:00
|
|
|
$(eval $(call AUTOTARGETS,package,pkg-config))
|
|
|
|
$(eval $(call AUTOTARGETS,package,pkg-config,host))
|
2006-07-09 01:55:55 +02:00
|
|
|
|
2009-10-27 23:15:09 +01:00
|
|
|
PKG_CONFIG_HOST_BINARY:=$(HOST_DIR)/usr/bin/pkg-config
|