| 1 | # Description: A system for managing library compile/link flags |
| 2 | # URL: http://pkgconfig.freedesktop.org/wiki/ |
| 3 | # Maintainer: CRUX System Team, core-ports at crux dot nu |
| 4 | # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu |
| 5 | # Depends on: |
| 6 | |
| 7 | name=pkg-config |
| 8 | version=0.29.2 |
| 9 | release=1 |
| 10 | source=(http://$name.freedesktop.org/releases/$name-$version.tar.gz) |
| 11 | |
| 12 | build() { |
| 13 | cd $name-$version |
| 14 | |
| 15 | cat > config.cache << EOF |
| 16 | glib_cv_stack_grows=no |
| 17 | glib_cv_uscore=no |
| 18 | ac_cv_func_posix_getgrgid_r=yes |
| 19 | ac_cv_func_posix_getpwuid_r=yes |
| 20 | EOF |
| 21 | |
| 22 | ./configure --build=$CHOST \ |
| 23 | --host=$CTARGET \ |
| 24 | --prefix=/usr \ |
| 25 | --with-internal-glib \ |
| 26 | --disable-compile-warnings \ |
| 27 | --disable-host-tool \ |
| 28 | --cache-file=config.cache |
| 29 | |
| 30 | make |
| 31 | make DESTDIR=$PKG install |
| 32 | |
| 33 | rm -r $PKG/usr/share/doc |
| 34 | } |