logrotate: enable selinux support
[buildroot-gz.git] / package / pkgconf / pkgconf.mk
blobc8b0cbaf51db1c137d6c502951a25fab507b7d43
1 ################################################################################
3 # pkgconf
5 ################################################################################
7 PKGCONF_VERSION = 0.9.12
8 PKGCONF_SITE = https://github.com/pkgconf/pkgconf/releases/download/pkgconf-$(PKGCONF_VERSION)
9 PKGCONF_SOURCE = pkgconf-$(PKGCONF_VERSION).tar.bz2
10 PKGCONF_LICENSE = pkgconf license
11 PKGCONF_LICENSE_FILES = COPYING
13 PKG_CONFIG_HOST_BINARY = $(HOST_DIR)/usr/bin/pkg-config
15 define PKGCONF_LINK_PKGCONFIG
16 ln -sf pkgconf $(TARGET_DIR)/usr/bin/pkg-config
17 endef
19 define HOST_PKGCONF_INSTALL_WRAPPER
20 $(INSTALL) -m 0755 -D package/pkgconf/pkg-config.in \
21 $(HOST_DIR)/usr/bin/pkg-config
22 $(SED) 's,@PKG_CONFIG_LIBDIR@,$(STAGING_DIR)/usr/lib/pkgconfig:$(STAGING_DIR)/usr/share/pkgconfig,' \
23 -e 's,@STAGING_DIR@,$(STAGING_DIR),' \
24 $(HOST_DIR)/usr/bin/pkg-config
25 endef
27 define HOST_PKGCONF_STATIC
28 $(SED) 's,@STATIC@,--static,' $(HOST_DIR)/usr/bin/pkg-config
29 endef
31 define HOST_PKGCONF_SHARED
32 $(SED) 's,@STATIC@,,' $(HOST_DIR)/usr/bin/pkg-config
33 endef
35 PKGCONF_POST_INSTALL_TARGET_HOOKS += PKGCONF_LINK_PKGCONFIG
36 HOST_PKGCONF_POST_INSTALL_HOOKS += HOST_PKGCONF_INSTALL_WRAPPER
38 ifeq ($(BR2_STATIC_LIBS),y)
39 HOST_PKGCONF_POST_INSTALL_HOOKS += HOST_PKGCONF_STATIC
40 else
41 HOST_PKGCONF_POST_INSTALL_HOOKS += HOST_PKGCONF_SHARED
42 endif
44 $(eval $(autotools-package))
45 $(eval $(host-autotools-package))