Difference between revisions of "Pkg-config"

From CBLFS
Jump to navigationJump to search
m (Added ftp download url)
(Dependencies)
 
(33 intermediate revisions by 12 users not shown)
Line 1: Line 1:
 
{| style="text-align: left; background-color: AliceBlue;"
 
{| style="text-align: left; background-color: AliceBlue;"
|-
+
|-valign="top"
 
!Download Source:
 
!Download Source:
| http://pkgconfig.freedesktop.org/releases/pkg-config-0.20.tar.gz
+
| http://pkgconfig.freedesktop.org/releases/pkg-config-{{Pkg-config-Version}}.tar.gz
|-
 
!Download Source:
 
| ftp://ftp.cross-lfs.org/pub/cblfs/conglomeration/pkg-config/pkg-config-0.20.tar.gz
 
 
|}
 
|}
  
 
----
 
----
 +
 +
{{Package-Introduction|pkg-config is a tool to help you insert the correct compiler options on the command line when compiling applications and libraries.|http://pkgconfig.freedesktop.org/wiki/}}
  
 
== Dependencies ==
 
== Dependencies ==
 +
 +
{{Note|Pkg-config dependency is met when using CLFS Development (2.0) or later. Pass --with-internal-glib configure switch to configure if the host does not have [[Glib2]] installed.}}
 +
 +
=== Optional ===
 +
* [[Glib2]]
  
 
== Non-Multilib ==
 
== Non-Multilib ==
Line 26: Line 30:
 
'''''This package does not provide any libraries so only one installation is needed.'''''
 
'''''This package does not provide any libraries so only one installation is needed.'''''
  
=== 32Bit ===
+
'''--with-pc-path''' takes the libdir out of the default search path for '''.pc''' files. See the [[Bash Startup Files]] for help setting up a environment for use with this.
  
Compile the package:
+
=== 64Bit ===
 
 
CC="gcc ${BUILD32}" ./configure --prefix=/usr --with-pc-path=/usr/share/pkgconfig &&
 
make
 
 
 
Install the package
 
 
 
make install
 
 
 
=== N32 ===
 
  
 
Compile the package:
 
Compile the package:
  
  CC="gcc ${BUILDN32}" ./configure --prefix=/usr --with-pc-path=/usr/share/pkgconfig &&
+
  USE_ARCH=64 CC="gcc ${BUILD64}" ./configure --prefix=/usr --with-pc-path=/usr/share/pkgconfig &&
 
  make
 
  make
  
Line 48: Line 43:
 
  make install
 
  make install
  
=== 64Bit ===
+
= Contents =
  
Compile the package:
+
{| style="text-align: left;"
 +
|-valign="top"
 +
! Installed Programs:
 +
| pkg-config
 +
|-valign="top"
 +
! Installed Libraries:
 +
| None
 +
|-valign="top"
 +
! Installed Directories:
 +
| None
 +
|}
  
CC="gcc ${BUILD64}" ./configure --prefix=/usr --with-pc-path=/usr/share/pkgconfig &&
+
=== Short Descriptions ===
make
 
  
Install the package
+
{| style="text-align: left;"
 +
|-valign="top"
 +
! pkg-config
 +
| returns meta information for the specified library or package.
 +
|}
  
make install
+
[[Category:General Utilities]]

Latest revision as of 23:20, 7 September 2012

Download Source: http://pkgconfig.freedesktop.org/releases/pkg-config-0.27.1.tar.gz

Introduction to Pkg-config

pkg-config is a tool to help you insert the correct compiler options on the command line when compiling applications and libraries.

Project Homepage: http://pkgconfig.freedesktop.org/wiki/

Dependencies

Caution.png

Note

Pkg-config dependency is met when using CLFS Development (2.0) or later. Pass --with-internal-glib configure switch to configure if the host does not have Glib2 installed.

Optional

Non-Multilib

Compile the package:

./configure --prefix=/usr &&
make

Install the package

make install

Multilib

This package does not provide any libraries so only one installation is needed.

--with-pc-path takes the libdir out of the default search path for .pc files. See the Bash Startup Files for help setting up a environment for use with this.

64Bit

Compile the package:

USE_ARCH=64 CC="gcc ${BUILD64}" ./configure --prefix=/usr --with-pc-path=/usr/share/pkgconfig &&
make

Install the package

make install

Contents

Installed Programs: pkg-config
Installed Libraries: None
Installed Directories: None

Short Descriptions

pkg-config returns meta information for the specified library or package.