d7f6d320b6
Drop patches, they aren't required any more. It fixes a bug where inline comments cause issues, like: Libs: -lblah # -lbleh ...it would make pkgconf search for the '#' package This is required for the nettle 3.1.1 upgrade since howgeed.pc adjusts Libs according to static/dynamic builds using the comment feature. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
46 lines
1.4 KiB
Makefile
46 lines
1.4 KiB
Makefile
################################################################################
|
|
#
|
|
# pkgconf
|
|
#
|
|
################################################################################
|
|
|
|
PKGCONF_VERSION = 0.9.12
|
|
PKGCONF_SITE = https://github.com/pkgconf/pkgconf/releases/download/pkgconf-$(PKGCONF_VERSION)
|
|
PKGCONF_SOURCE = pkgconf-$(PKGCONF_VERSION).tar.bz2
|
|
PKGCONF_LICENSE = pkgconf license
|
|
PKGCONF_LICENSE_FILES = COPYING
|
|
|
|
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
|
|
|
|
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
|
|
|
|
PKGCONF_POST_INSTALL_TARGET_HOOKS += PKGCONF_LINK_PKGCONFIG
|
|
HOST_PKGCONF_POST_INSTALL_HOOKS += HOST_PKGCONF_INSTALL_WRAPPER
|
|
|
|
ifeq ($(BR2_STATIC_LIBS),y)
|
|
HOST_PKGCONF_POST_INSTALL_HOOKS += HOST_PKGCONF_STATIC
|
|
else
|
|
HOST_PKGCONF_POST_INSTALL_HOOKS += HOST_PKGCONF_SHARED
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|
|
$(eval $(host-autotools-package))
|