# Depends on:
name=pkg-config
-version=0.23
+version=0.29
release=1
-source=(http://$name.freedesktop.org/releases/$name-$version.tar.gz \
- $name-${version}_ANSII_libraries.patch)
+source=(http://$name.freedesktop.org/releases/$name-$version.tar.gz)
build() {
cd $name-$version
- patch -p1 -i $SRC/$name-${version}_ANSII_libraries.patch
-
-# echo "glib_cv_has__inline=yes" > config.cache
-# echo "glib_cv_hasinline=yes" >> config.cache
-
- #export GLIB_CFLAGS="-I$CLFS/usr/include/glib-2.0 -I$CLFS/usr/lib/glib-2.0/include"
- #export GLIB_LIBS="-L$CLFS/usr/lib -lglib-2.0 -liconv -lintl"
+ cat > config.cache << EOF
+glib_cv_stack_grows=no
+glib_cv_uscore=no
+ac_cv_func_posix_getgrgid_r=yes
+ac_cv_func_posix_getpwuid_r=yes
+EOF
./configure --build=$CHOST \
--host=$CTARGET \
--prefix=/usr \
- --mandir=/usr/man
-#--with-installed-glib
-# --cache-file=config.cache
+ --with-internal-glib \
+ --disable-host-tool \
+ --cache-file=config.cache
+
make
make DESTDIR=$PKG install
+
+ rm -r $PKG/usr/share/doc
}