summaryrefslogtreecommitdiffstats
path: root/package/pkgconfig/pkgconfig.mk
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2009-03-18 19:18:40 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2009-03-18 19:18:40 +0000
commitb4510152038bdd6fb0ef9ae9ac581daf5dcb05d8 (patch)
treeaa8b6e4461b10411449c10e704731ee269049198 /package/pkgconfig/pkgconfig.mk
parent396480b41d69be7ef9c84ff4ed693ce38d42f8f3 (diff)
downloadbuildroot-novena-b4510152038bdd6fb0ef9ae9ac581daf5dcb05d8.tar.gz
buildroot-novena-b4510152038bdd6fb0ef9ae9ac581daf5dcb05d8.zip
pkgconfig: install into HOST_DIR
Diffstat (limited to 'package/pkgconfig/pkgconfig.mk')
-rw-r--r--package/pkgconfig/pkgconfig.mk23
1 files changed, 11 insertions, 12 deletions
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)
#############################################################