diff options
author | Eric Andersen <andersen@codepoet.org> | 2006-07-08 23:55:55 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2006-07-08 23:55:55 +0000 |
commit | 3b4205f166f7628989b82b90a3c53fe57c41f405 (patch) | |
tree | 69d05cd708addb095103b7562fbef8535d4fa781 /package/pkgconfig/pkgconfig.mk | |
parent | 213cc83c478faeaa7ce442acdead34e83c10c7a8 (diff) |
Add pkgconfig
Diffstat (limited to 'package/pkgconfig/pkgconfig.mk')
-rw-r--r-- | package/pkgconfig/pkgconfig.mk | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/package/pkgconfig/pkgconfig.mk b/package/pkgconfig/pkgconfig.mk new file mode 100644 index 000000000..67d010dc0 --- /dev/null +++ b/package/pkgconfig/pkgconfig.mk @@ -0,0 +1,67 @@ +############################################################# +# +# pkgconfig +# +############################################################# +PKGCONFIG_VER:=0.20 +PKGCONFIG_SOURCE:=pkg-config-$(PKGCONFIG_VER).tar.gz +PKGCONFIG_SITE:=http://pkgconfig.freedesktop.org/releases/ +PKGCONFIG_DIR:=$(BUILD_DIR)/pkg-config-$(PKGCONFIG_VER) +PKGCONFIG_CAT:=zcat +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 |