PROJECT_MOVED -> https://lab.nexedi.com/nexedi/slapos
[slapos.git] / component / pkgconfig / buildout.cfg
1 # pkg-config - a helper tool used when compiling applications and libraries
2 # http://pkgconfig.freedesktop.org/
3
4 [buildout]
5 parts =
6   pkgconfig
7 extends =
8   ../gettext/buildout.cfg
9   ../glib/buildout.cfg
10   ../popt/buildout.cfg
11
12 [pkg-config]
13 <= pkgconfig
14
15 [pkgconfig]
16 recipe = slapos.recipe.cmmi
17 url = http://pkgconfig.freedesktop.org/releases/pkg-config-0.29.tar.gz
18 md5sum = 77f27dce7ef88d0634d0d6f90e03a77f
19 location = ${buildout:parts-directory}/${:_buildout_section_name_}
20 # build pkg-config twice so that second configure can use pkg-config
21 # to compute GLIB_CFLAGS and GLIB_LIBS.
22 pre-configure =
23   ./configure --prefix=${:location} --with-installed-glib --with-installed-popt && make
24 configure-options =
25   --with-installed-glib
26   --with-installed-popt
27   --disable-host-tool
28 environment =
29   PATH=.:%(PATH)s
30   PKG_CONFIG_PATH=${glib:location}/lib/pkgconfig
31   CPPFLAGS=-I${glib:location}/include -I${popt:location}/include
32   LDFLAGS=-L${gettext:location}/lib -Wl,-rpath=${gettext:location}/lib -L${glib:location}/lib -Wl,-rpath=${glib:location}/lib -L${popt:location}/lib -Wl,-rpath=${popt:location}/lib
33   GLIB_CFLAGS=-I${glib:location}/include/glib-2.0 -I${glib:location}/lib/glib-2.0/include
34   GLIB_LIBS=-L${glib:location}/lib -lglib-2.0 -lintl