summaryrefslogtreecommitdiff
path: root/mk/pkgconfig.mk
blob: 3ab70def8f1fcdd31eb11805914a92a2e99ada99 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
################################################################################
# Abdoulaye Walsimou GAYE <awg@embtoolkit.org>
# Copyright(C) 2009-2011 Abdoulaye Walsimou GAYE.
#
# 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
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
#
################################################################################
#
# \file         pkgconfig.mk
# \brief	pkgconfig.mk of Embtoolkit
# \author       Abdoulaye Walsimou GAYE <awg@embtoolkit.org>
# \date         October 2009
################################################################################

PKGCONFIG_NAME		:= pkg-config
PKGCONFIG_VERSION	:= $(call embtk_get_pkgversion,PKGCONFIG)
PKGCONFIG_SITE		:= http://pkgconfig.freedesktop.org/releases
PKGCONFIG_SITE_MIRROR3	:= ftp://ftp.embtoolkit.org/embtoolkit.org/packages-mirror
PKGCONFIG_PATCH_SITE	:= ftp://ftp.embtoolkit.org/embtoolkit.org/pkgconfig/$(PKGCONFIG_VERSION)
PKGCONFIG_PACKAGE	:= pkg-config-$(PKGCONFIG_VERSION).tar.gz
PKGCONFIG_SRC_DIR	:= $(TOOLS_BUILD)/pkg-config-$(PKGCONFIG_VERSION)
PKGCONFIG_BUILD_DIR	:= $(TOOLS_BUILD)/pkg-config-$(PKGCONFIG_VERSION)

PKGCONFIG_BIN			:= $(HOSTTOOLS)/usr/bin/pkg-config
EMBTK_PKG_CONFIG_PATH		:= $(SYSROOT)/usr/$(LIBDIR)/pkgconfig
EMBTK_PKG_CONFIG_LIBDIR		:= $(SYSROOT)/usr/$(LIBDIR)/pkgconfig
EMBTK_HOST_PKG_CONFIG_PATH	:= $(HOSTTOOLS)/usr/lib/pkgconfig:/usr/lib/pkgconfig

export PKGCONFIG_BIN EMBTK_PKG_CONFIG_PATH EMBTK_PKG_CONFIG_LIBDIR
export EMBTK_HOST_PKG_CONFIG_PATH

PKGCONFIG_PREFIX	:= /usr
PKGCONFIG_DESTDIR	:= $(HOSTTOOLS)

pkgconfig_install:
	$(call embtk_install_hostpkg,PKGCONFIG)

download_pkgconfig:
	$(call embtk_download_pkg,PKGCONFIG)