Update pkgconfig to 0.25, this required a minor patch to build on gcc2.

This commit is contained in:
Scott McCreary
2010-08-05 03:00:19 +00:00
parent 92c6d446c1
commit 519d7ba8a4
2 changed files with 54 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
--- pkg-config-0.25/parse.c 2010-05-27 20:21:36.003670016 +0000
+++ pkg-config-0.25-haiku/parse.c 2010-08-05 02:44:44.243269632 +0000
@@ -880,8 +880,9 @@
pkg->other_cflags = g_slist_prepend (pkg->other_cflags,
g_strdup (arg));
if (strcmp("-idirafter", arg) == 0) {
- tmp = trim_string(argv[++i]);
- char *n = strdup_escape_shell(tmp);
+ char *n;
+ tmp = trim_string(argv[++i]);
+ n = strdup_escape_shell(tmp);
pkg->other_cflags = g_slist_prepend(pkg->other_cflags, n);
g_free(tmp);
}

View File

@@ -0,0 +1,40 @@
DESCRIPTION="pkgconfig"
HOMEPAGE="http://pkg-config.freedesktop.org/wiki/"
SRC_URI="http://pkgconfig.freedesktop.org/releases/pkg-config-0.25.tar.gz"
CHECKSUM_MD5="a3270bab3f4b69b7dc6dbdacbcae9745"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND=""
BUILD {
cd pkg-config-0.25/glib-1.2.10
mkdir -p m4
cp /boot/common/share/aclocal/libtool.m4 m4
cp /boot/common/share/aclocal/ltoptions.m4 m4
cp /boot/common/share/aclocal/ltversion.m4 m4
cp /boot/common/share/aclocal/ltsugar.m4 m4
cp /boot/common/share/aclocal/lt~obsolete.m4 m4
libtoolize --force --copy --install
aclocal -I m4
autoreconf
cd ..
mkdir -p m4
cp /boot/common/share/aclocal/libtool.m4 m4
cp /boot/common/share/aclocal/ltoptions.m4 m4
cp /boot/common/share/aclocal/ltversion.m4 m4
cp /boot/common/share/aclocal/ltsugar.m4 m4
cp /boot/common/share/aclocal/lt~obsolete.m4 m4
libtoolize --force --copy --install
aclocal -I m4
autoreconf
automake
autoconf
./configure --prefix=/boot/common
make
}
INSTALL {
cd pkg-config-0.25
make install
}
LICENSE="GNU GPL v2"
COPYRIGHT="1998, 2001-2006 Red Hat Inc."