| 1 |
kazuhiko |
40957 |
# 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 |
kazuhiko |
42426 |
gettext.cfg
|
| 9 |
|
|
glib.cfg
|
| 10 |
|
|
popt.cfg
|
| 11 |
kazuhiko |
40957 |
|
| 12 |
|
|
[pkgconfig]
|
| 13 |
|
|
recipe = hexagonit.recipe.cmmi
|
| 14 |
|
|
url = http://pkgconfig.freedesktop.org/releases/pkg-config-0.25.tar.gz
|
| 15 |
|
|
md5sum = a3270bab3f4b69b7dc6dbdacbcae9745
|
| 16 |
kazuhiko |
45161 |
location = ${buildout:parts-directory}/${:_buildout_section_name_}
|
| 17 |
|
|
# build pkg-config twice so that second configure can use pkg-config
|
| 18 |
|
|
# to compute GLIB_CFLAGS and GLIB_LIBS.
|
| 19 |
|
|
configure-command =
|
| 20 |
|
|
./configure --prefix=${:location} --with-installed-glib --with-installed-popt && make && make install && ./configure
|
| 21 |
kazuhiko |
40957 |
configure-options =
|
| 22 |
kazuhiko |
45161 |
--prefix=${:location}
|
| 23 |
kazuhiko |
40957 |
--with-installed-glib
|
| 24 |
|
|
--with-installed-popt
|
| 25 |
|
|
environment =
|
| 26 |
kazuhiko |
45161 |
PATH=${:location}/bin:%(PATH)s
|
| 27 |
kazuhiko |
40957 |
PKG_CONFIG_PATH=${glib:location}/lib/pkgconfig
|
| 28 |
|
|
CPPFLAGS=-I${glib:location}/include -I${popt:location}/include
|
| 29 |
kazuhiko |
44295 |
LDFLAGS=-L${gettext:location}/lib -Wl,-rpath -Wl,${gettext:location}/lib -L${glib:location}/lib -Wl,-rpath -Wl,${glib:location}/lib -L${popt:location}/lib -Wl,-rpath -Wl,${popt:location}/lib
|