summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2013-01-12 22:41:29 +0100
committerAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2013-01-12 22:41:29 +0100
commitf49f52cea4d37fc8a0cd030167de4482cc4b09b8 (patch)
treeb9a26ad4a7261e7f55955074ee5c614e3cc66637
parent1a483470e453b509fbe33242ba4b126318ddb545 (diff)
downloadembtoolkit-f49f52cea4d37fc8a0cd030167de4482cc4b09b8.tar.gz
embtoolkit-f49f52cea4d37fc8a0cd030167de4482cc4b09b8.tar.bz2
embtoolkit-f49f52cea4d37fc8a0cd030167de4482cc4b09b8.tar.xz
Host tools: New package: replace pkg-config with pkgconf
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
-rw-r--r--kconfig/pkgconf.kconfig (renamed from kconfig/pkgconfig.kconfig)26
-rw-r--r--kconfig/toolchain.kconfig4
-rw-r--r--mk/buildsystem.mk1
-rw-r--r--mk/packages.mk4
-rw-r--r--mk/pkgconf.mk (renamed from mk/pkgconfig.mk)51
5 files changed, 50 insertions, 36 deletions
diff --git a/kconfig/pkgconfig.kconfig b/kconfig/pkgconf.kconfig
index 60383db..4fb6306 100644
--- a/kconfig/pkgconfig.kconfig
+++ b/kconfig/pkgconf.kconfig
@@ -17,32 +17,32 @@
#
################################################################################
#
-# \file pkgconfig.kconfig
-# \brief pkgconfig.kconfig of Embtoolkit.
+# \file pkgconf.kconfig
+# \brief pkgconf.kconfig of Embtoolkit.
# \author Abdoulaye Walsimou GAYE <awg@embtoolkit.org>
# \date January 2011
################################################################################
-config EMBTK_HAVE_PKGCONFIG
+config EMBTK_HAVE_PKGCONF
bool
default y
+ select EMBTK_PKGCONF_NEED_AUTORECONF
help
- pkgconfig for host tools.
+ pkgconf for host tools.
-config EMBTK_PKGCONFIG_VERSION_STRING
+config EMBTK_PKGCONF_VERSION_STRING
string
- default "0.25"
+ default "0.8.9"
-config EMBTK_PKGCONFIG_VERSION_GIT
+config EMBTK_PKGCONF_VERSION_GIT
bool
-config EMBTK_PKGCONFIG_GIT_SITE
+config EMBTK_PKGCONF_GIT_SITE
string
- default "git://anongit.freedesktop.org/pkg-config"
- depends on EMBTK_PKGCONFIG_VERSION_GIT
+ default "git://github.com/pkgconf/pkgconf.git"
+ depends on EMBTK_PKGCONF_VERSION_GIT
-config EMBTK_PKGCONFIG_NEED_PATCH
+config EMBTK_PKGCONF_NEED_PATCH
bool
-config EMBTK_PKGCONFIG_NEED_AUTORECONF
+config EMBTK_PKGCONF_NEED_AUTORECONF
bool
- default y if EMBTK_PKGCONFIG_VERSION_GIT
diff --git a/kconfig/toolchain.kconfig b/kconfig/toolchain.kconfig
index 49469d2..911eb79 100644
--- a/kconfig/toolchain.kconfig
+++ b/kconfig/toolchain.kconfig
@@ -167,9 +167,9 @@ source kconfig/autoconf.kconfig
source kconfig/automake.kconfig
#
-# pkg-config
+# pkgconf
#
-source kconfig/pkgconfig.kconfig
+source kconfig/pkgconf.kconfig
#
# fakeroot
diff --git a/mk/buildsystem.mk b/mk/buildsystem.mk
index f1ef0ca..50bc526 100644
--- a/mk/buildsystem.mk
+++ b/mk/buildsystem.mk
@@ -48,6 +48,7 @@ embtk_dldir := $(or $(__embtk_dldir),$(EMBTK_ROOT)/dl)
define __embtk_kconfig_buildrun
+ PKG_CONFIG_PATH=$(EMBTK_HOST_PKG_CONFIG_PATH) \
$(MAKE) -f scripts/Makefile.build \
obj=$(EMBTK_ROOT)/scripts/kconfig \
EMBTK_DEFAULT_DL="$(EMBTK_ROOT)/dl/" \
diff --git a/mk/packages.mk b/mk/packages.mk
index 97cd8db..56248cd 100644
--- a/mk/packages.mk
+++ b/mk/packages.mk
@@ -24,7 +24,7 @@
################################################################################
ROOTFS_COMPONENTS-y :=
-HOSTTOOLS_COMPONENTS-y := mkimage_install pkgconfig_install
+HOSTTOOLS_COMPONENTS-y := mkimage_install pkgconf_install
#
# Common include for target and host
#
@@ -44,7 +44,7 @@ HOSTTOOLS_COMPONENTS-$(CONFIG_EMBTK_HOST_HAVE_LIBELF) += libelf_host_install
include mk/makedevs.mk
include mk/mkimage.mk
include mk/mtd-utils.mk
-include mk/pkgconfig.mk
+include mk/pkgconf.mk
include mk/squashfs.mk
# zlib_host
diff --git a/mk/pkgconfig.mk b/mk/pkgconf.mk
index c012170..cdbee38 100644
--- a/mk/pkgconfig.mk
+++ b/mk/pkgconf.mk
@@ -1,5 +1,5 @@
################################################################################
-# Copyright(C) 2009-2012 Abdoulaye Walsimou GAYE <awg@embtoolkit.org>
+# Copyright(C) 2013 Abdoulaye Walsimou GAYE <awg@embtoolkit.org>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -16,26 +16,35 @@
#
################################################################################
#
-# \file pkgconfig.mk
-# \brief pkgconfig.mk of Embtoolkit
+# \file pkgconf.mk
+# \brief pkgconf.mk of Embtoolkit
# \author Abdoulaye Walsimou GAYE <awg@embtoolkit.org>
-# \date October 2009
+# \date January 2013
################################################################################
-PKGCONFIG_NAME := pkg-config
-PKGCONFIG_VERSION := $(call embtk_get_pkgversion,pkgconfig)
-PKGCONFIG_SITE := http://pkgconfig.freedesktop.org/releases
-PKGCONFIG_PACKAGE := pkg-config-$(PKGCONFIG_VERSION).tar.gz
-PKGCONFIG_SRC_DIR := $(embtk_toolsb)/pkg-config-$(PKGCONFIG_VERSION)
-PKGCONFIG_BUILD_DIR := $(embtk_toolsb)/pkg-config-$(PKGCONFIG_VERSION)
+PKGCONF_NAME := pkgconf
+PKGCONF_VERSION := $(call embtk_get_pkgversion,pkgconf)
+PKGCONF_SITE := ftp://ftp.embtoolkit.org/embtoolkit.org/packages-mirror
+PKGCONF_PACKAGE := pkgconf-$(PKGCONF_VERSION).tar.gz
+PKGCONF_SRC_DIR := $(embtk_toolsb)/pkgconf-$(PKGCONF_VERSION)
+PKGCONF_BUILD_DIR := $(embtk_toolsb)/pkgconf-$(PKGCONF_VERSION)
-PKGCONFIG_BIN := $(embtk_htools)/usr/bin/pkg-config
+PKGCONFIG_BIN := $(embtk_htools)/usr/bin/pkg-config
+export PKGCONFIG_BIN
+#
+# PKG_CONFIG_PATH for target packages
+#
__EMBTK_PKG_CONFIG_PATH := $(embtk_sysroot)/usr/$(LIBDIR)/pkgconfig
__EMBTK_PKG_CONFIG_PATH += $(embtk_sysroot)/usr/share/pkgconfig
EMBTK_PKG_CONFIG_PATH := $(subst $(embtk_space),:,$(__EMBTK_PKG_CONFIG_PATH))
EMBTK_PKG_CONFIG_LIBDIR := $(EMBTK_PKG_CONFIG_PATH)
+export PKGCONFIG_BIN EMBTK_PKG_CONFIG_PATH
+
+#
+# PKG_CONFIG_PATH for host packages
+#
__EMBTK_HOST_PKG_CONFIG_PATH := $(embtk_htools)/usr/lib/pkgconfig/
__EMBTK_HOST_PKG_CONFIG_PATH += /usr/lib/pkgconfig/ /usr/share/pkgconfig/
__EMBTK_HOST_PKG_CONFIG_PATH += /usr/local/lib/pkgconfig/ /usr/local/share/pkgconfig/
@@ -43,15 +52,19 @@ __EMBTK_HOST_PKG_CONFIG_PATH += $(dir $(shell find /usr/lib -type f -name '*.pc'
__EMBTK_HOST_PKG_CONFIG_PATH += $(dir $(shell find /usr/local/lib -type f -name '*.pc'))
EMBTK_HOST_PKG_CONFIG_PATH := $(subst $(embtk_space),:,$(sort $(__EMBTK_HOST_PKG_CONFIG_PATH)))
-PKGCONFIG_CONFIGURE_OPTS := --with-pc-path="$(EMBTK_HOST_PKG_CONFIG_PATH)"
-PKGCONFIG_CONFIGURE_OPTS += --with-internal-glib
-
-export PKGCONFIG_BIN EMBTK_PKG_CONFIG_PATH EMBTK_PKG_CONFIG_LIBDIR
export EMBTK_HOST_PKG_CONFIG_PATH
-PKGCONFIG_PREFIX := /usr
-PKGCONFIG_DESTDIR := $(embtk_htools)
+#
+# pkgconf install
+#
+PKGCONF_PREFIX := /usr
+PKGCONF_DESTDIR := $(embtk_htools)
+
+define embtk_install_pkgconf
+ $(call __embtk_install_hostpkg,pkgconf)
+endef
-define embtk_install_pkgconfig
- $(call __embtk_install_hostpkg,pkgconfig)
+define embtk_postinstall_pkgconf
+ [ -e $(call __embtk_pkg_dotinstalled_f,pkgcong) ] || \
+ cd $(embtk_htools)/usr/bin/; ln -sf pkgconf pkg-config
endef