diff options
author | Peter Korsgaard <jacmet@sunsite.dk> | 2009-03-18 19:18:40 +0000 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2009-03-18 19:18:40 +0000 |
commit | b4510152038bdd6fb0ef9ae9ac581daf5dcb05d8 (patch) | |
tree | aa8b6e4461b10411449c10e704731ee269049198 | |
parent | 396480b41d69be7ef9c84ff4ed693ce38d42f8f3 (diff) | |
download | buildroot-novena-b4510152038bdd6fb0ef9ae9ac581daf5dcb05d8.tar.gz buildroot-novena-b4510152038bdd6fb0ef9ae9ac581daf5dcb05d8.zip |
pkgconfig: install into HOST_DIR
-rw-r--r-- | package/Makefile.in | 4 | ||||
-rw-r--r-- | package/pkgconfig/pkgconfig.mk | 23 |
2 files changed, 13 insertions, 14 deletions
diff --git a/package/Makefile.in b/package/Makefile.in index a6a0f21c6..f5b8c216f 100644 --- a/package/Makefile.in +++ b/package/Makefile.in @@ -251,7 +251,7 @@ TARGET_CONFIGURE_OPTS=PATH=$(TARGET_PATH) \ DEFAULT_ASSEMBLER="$(TARGET_AS)" \ DEFAULT_LINKER="$(TARGET_LD)" \ PKG_CONFIG_SYSROOT_DIR="$(STAGING_DIR)" \ - PKG_CONFIG="$(STAGING_DIR)/usr/bin/pkg-config" \ + PKG_CONFIG="$(PKGCONFIG_HOST_BINARY)" \ PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig:$(PKG_CONFIG_PATH)" \ STAGING_DIR="$(STAGING_DIR)" @@ -296,7 +296,7 @@ HOST_CONFIGURE_OPTS=PATH=$(HOST_PATH) \ ORIGINAL_LD_FOR_TARGET="$(TARGET_LD)" \ ORIGINAL_NM_FOR_TARGET="$(TARGET_NM)" \ ORIGINAL_OBJDUMP_FOR_TARGET="$(TARGET_OBJDUMP)" \ - PKG_CONFIG="$(STAGING_DIR)/usr/bin/pkg-config" \ + PKG_CONFIG="$(PKGCONFIG_HOST_BINARY)" \ PKG_CONFIG_PATH="$(HOST_DIR)/usr/lib/pkgconfig:$(PKG_CONFIG_PATH)" HOST_MAKE_ENV=PATH=$(HOST_PATH) diff --git a/package/pkgconfig/pkgconfig.mk b/package/pkgconfig/pkgconfig.mk index 19148f091..c6e0fff01 100644 --- a/package/pkgconfig/pkgconfig.mk +++ b/package/pkgconfig/pkgconfig.mk @@ -9,7 +9,7 @@ PKGCONFIG_SITE:=http://pkgconfig.freedesktop.org/releases/ PKGCONFIG_DIR:=$(BUILD_DIR)/pkg-config-$(PKGCONFIG_VERSION) PKGCONFIG_CAT:=$(ZCAT) PKGCONFIG_BINARY:=pkg-config -PKGCONFIG_TARGET_BINARY:=usr/bin/pkg-config +PKGCONFIG_HOST_BINARY:=$(HOST_DIR)/usr/bin/pkg-config $(DL_DIR)/$(PKGCONFIG_SOURCE): $(call DOWNLOAD,$(PKGCONFIG_SITE),$(PKGCONFIG_SOURCE)) @@ -24,28 +24,27 @@ $(PKGCONFIG_DIR)/.unpacked: $(DL_DIR)/$(PKGCONFIG_SOURCE) $(PKGCONFIG_DIR)/.configured: $(PKGCONFIG_DIR)/.unpacked (cd $(PKGCONFIG_DIR); rm -rf config.cache; \ ./configure \ - --prefix=/usr \ - --sysconfdir=/etc \ + --prefix=$(HOST_DIR)/usr \ + --sysconfdir=$(HOST_DIR)/etc \ --with-pc-path="$(STAGING_DIR)/usr/lib/pkgconfig" \ - $(DISABLE_NLS) \ - $(DISABLE_LARGEFILE) \ + --disable-static \ ) touch $@ $(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)/usr/share/man +$(PKGCONFIG_HOST_BINARY): $(PKGCONFIG_DIR)/$(PKGCONFIG_BINARY) + $(MAKE) -C $(PKGCONFIG_DIR) install -pkgconfig: uclibc $(STAGING_DIR)/$(PKGCONFIG_TARGET_BINARY) +host-pkgconfig pkgconfig: $(PKGCONFIG_HOST_BINARY) -pkgconfig-clean: - -$(MAKE) DESTDIR=$(STAGING_DIR) -C $(PKGCONFIG_DIR) uninstall +host-pkgconfig-clean pkgconfig-clean: + rm -f $(addprefix $(PKGCONFIG_DIR)/,.unpacked .configured .compiled) + -$(MAKE) -C $(PKGCONFIG_DIR) uninstall -$(MAKE) -C $(PKGCONFIG_DIR) clean -pkgconfig-dirclean: +host-pkgconfig-dirclean pkgconfig-dirclean: rm -rf $(PKGCONFIG_DIR) ############################################################# |