2006-07-09 01:55:55 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# pkgconfig
|
|
|
|
#
|
|
|
|
#############################################################
|
2006-08-29 18:41:22 +02:00
|
|
|
PKGCONFIG_VER:=0.21
|
2006-07-09 01:55:55 +02:00
|
|
|
PKGCONFIG_SOURCE:=pkg-config-$(PKGCONFIG_VER).tar.gz
|
|
|
|
PKGCONFIG_SITE:=http://pkgconfig.freedesktop.org/releases/
|
|
|
|
PKGCONFIG_DIR:=$(BUILD_DIR)/pkg-config-$(PKGCONFIG_VER)
|
2006-10-01 17:17:52 +02:00
|
|
|
PKGCONFIG_CAT:=$(ZCAT)
|
2006-07-09 01:55:55 +02:00
|
|
|
PKGCONFIG_BINARY:=pkg-config
|
|
|
|
PKGCONFIG_TARGET_BINARY:=usr/bin/pkg-config
|
|
|
|
|
|
|
|
$(DL_DIR)/$(PKGCONFIG_SOURCE):
|
|
|
|
$(WGET) -P $(DL_DIR) $(PKGCONFIG_SITE)/$(PKGCONFIG_SOURCE)
|
|
|
|
|
|
|
|
pkgconfig-source: $(DL_DIR)/$(PKGCONFIG_SOURCE)
|
|
|
|
|
|
|
|
$(PKGCONFIG_DIR)/.unpacked: $(DL_DIR)/$(PKGCONFIG_SOURCE)
|
|
|
|
$(PKGCONFIG_CAT) $(DL_DIR)/$(PKGCONFIG_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
|
|
|
toolchain/patch-kernel.sh $(PKGCONFIG_DIR) package/pkgconfig/ \*.patch
|
|
|
|
touch $(PKGCONFIG_DIR)/.unpacked
|
|
|
|
|
|
|
|
$(PKGCONFIG_DIR)/.configured: $(PKGCONFIG_DIR)/.unpacked
|
|
|
|
(cd $(PKGCONFIG_DIR); rm -rf config.cache; \
|
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
|
|
|
--exec-prefix=/usr \
|
|
|
|
--bindir=/usr/bin \
|
|
|
|
--sbindir=/usr/sbin \
|
|
|
|
--libexecdir=/usr/lib \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--datadir=/usr/share \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--mandir=/usr/man \
|
|
|
|
--infodir=/usr/info \
|
|
|
|
--with-pc-path="$(STAGING_DIR)/lib/pkgconfig:$(STAGING_DIR)/usr/lib/pkgconfig" \
|
|
|
|
$(DISABLE_NLS) \
|
|
|
|
$(DISABLE_LARGEFILE) \
|
|
|
|
);
|
|
|
|
touch $(PKGCONFIG_DIR)/.configured
|
|
|
|
|
|
|
|
$(PKGCONFIG_DIR)/$(PKGCONFIG_BINARY): $(PKGCONFIG_DIR)/.configured
|
|
|
|
$(MAKE) -C $(PKGCONFIG_DIR)
|
|
|
|
|
|
|
|
$(STAGING_DIR)/$(PKGCONFIG_TARGET_BINARY): $(PKGCONFIG_DIR)/$(PKGCONFIG_BINARY)
|
|
|
|
$(MAKE) DESTDIR=$(STAGING_DIR) -C $(PKGCONFIG_DIR) install
|
|
|
|
rm -rf $(STAGING_DIR)/share/locale $(STAGING_DIR)/usr/info \
|
|
|
|
$(STAGING_DIR)/usr/man $(STAGING_DIR)/usr/share/doc
|
|
|
|
|
|
|
|
pkgconfig: uclibc $(STAGING_DIR)/$(PKGCONFIG_TARGET_BINARY)
|
|
|
|
|
|
|
|
pkgconfig-clean:
|
|
|
|
$(MAKE) DESTDIR=$(STAGING_DIR) -C $(PKGCONFIG_DIR) uninstall
|
|
|
|
-$(MAKE) -C $(PKGCONFIG_DIR) clean
|
|
|
|
|
|
|
|
pkgconfig-dirclean:
|
|
|
|
rm -rf $(PKGCONFIG_DIR)
|
|
|
|
|
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
ifeq ($(strip $(BR2_PACKAGE_PKGCONFIG)),y)
|
|
|
|
TARGETS+=pkgconfig
|
|
|
|
endif
|