2013-06-06 07:53:30 +08:00
|
|
|
################################################################################
|
2012-10-24 18:10:44 +08:00
|
|
|
#
|
|
|
|
# pkgconf
|
|
|
|
#
|
2013-06-06 07:53:30 +08:00
|
|
|
################################################################################
|
2012-10-24 18:10:44 +08:00
|
|
|
|
2015-10-05 21:49:29 +08:00
|
|
|
PKGCONF_VERSION = 0.9.12
|
|
|
|
PKGCONF_SITE = https://github.com/pkgconf/pkgconf/releases/download/pkgconf-$(PKGCONF_VERSION)
|
2012-10-24 18:10:44 +08:00
|
|
|
PKGCONF_SOURCE = pkgconf-$(PKGCONF_VERSION).tar.bz2
|
2013-01-20 17:22:36 +08:00
|
|
|
PKGCONF_LICENSE = pkgconf license
|
|
|
|
PKGCONF_LICENSE_FILES = COPYING
|
2012-10-24 18:10:44 +08: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 20:19:37 +08: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 18:10:44 +08:00
|
|
|
PKGCONF_POST_INSTALL_TARGET_HOOKS += PKGCONF_LINK_PKGCONFIG
|
|
|
|
HOST_PKGCONF_POST_INSTALL_HOOKS += HOST_PKGCONF_INSTALL_WRAPPER
|
|
|
|
|
2014-12-04 05:41:29 +08:00
|
|
|
ifeq ($(BR2_STATIC_LIBS),y)
|
2015-03-31 15:21:57 +08:00
|
|
|
HOST_PKGCONF_POST_INSTALL_HOOKS += HOST_PKGCONF_STATIC
|
2014-03-05 20:19:37 +08:00
|
|
|
else
|
2015-03-31 15:21:57 +08:00
|
|
|
HOST_PKGCONF_POST_INSTALL_HOOKS += HOST_PKGCONF_SHARED
|
2014-03-05 20:19:37 +08:00
|
|
|
endif
|
|
|
|
|
2012-10-24 18:10:44 +08:00
|
|
|
$(eval $(autotools-package))
|
|
|
|
$(eval $(host-autotools-package))
|