pkg-config file format

malet jean-luc alias cityhunter jlm_devel at laposte.net
Tue Oct 11 02:50:04 PDT 2005


hello,
I'm just wondering if it is hard to support both ':' and '=' in lines 
that have the form
XXXX : ZZZZZZZZ

for exemple
---------------------------------------------------
prefix=/usr
exec_prefix=/usr
libdir=/usr/lib
includedir=/usr/include
target=x11

gtk_binary_version=2.2.0
gtk_host=i386-redhat-linux-gnu

Name: GTK+
Description: GIMP Tool Kit (${target} target)
Version: 2.2.1
Requires: gdk-${target}-2.0 atk
Libs: -L${libdir} -lgtk-${target}-2.0
Cflags: -I${includedir}/gtk-2.0
------------------------------------------------
becomes

prefix=/usr
exec_prefix=/usr
libdir=/usr/lib
includedir=/usr/include
target=x11

gtk_binary_version=2.2.0
gtk_host=i386-redhat-linux-gnu

Name=GTK+
Description=GIMP Tool Kit (${target} target)
Version=2.2.1
Requires=gdk-${target}-2.0 atk
Libs=-L${libdir} -lgtk-${target}-2.0
Cflags=-I${includedir}/gtk-2.0
-----------------------------------------------

doing this can facilitate script integration...... and can help use of 
pkg-config format inside other application (such as compile systems, 
freshmeat like sites....)




More information about the pkg-config mailing list