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
|
|
|
|
|
|
|
PKGCONF_VERSION = 0.8.9
|
2014-07-31 10:46:58 +02:00
|
|
|
PKGCONF_SITE = http://rabbit.dereferenced.org/~nenolod/distfiles
|
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-03-05 13:19:37 +01:00
|
|
|
ifeq ($(BR2_PREFER_STATIC_LIB),y)
|
|
|
|
HOST_PKGCONF_POST_INSTALL_HOOKS += HOST_PKGCONF_STATIC
|
|
|
|
else
|
|
|
|
HOST_PKGCONF_POST_INSTALL_HOOKS += HOST_PKGCONF_SHARED
|
|
|
|
endif
|
|
|
|
|
2012-10-24 12:10:44 +02:00
|
|
|
$(eval $(autotools-package))
|
|
|
|
$(eval $(host-autotools-package))
|