summaryrefslogtreecommitdiffstats
path: root/package/pkgconfig
diff options
context:
space:
mode:
Diffstat (limited to 'package/pkgconfig')
-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)
#############################################################