diff options
Diffstat (limited to 'meta/packages/pkgconfig/pkgconfig_git.bb')
-rw-r--r-- | meta/packages/pkgconfig/pkgconfig_git.bb | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/meta/packages/pkgconfig/pkgconfig_git.bb b/meta/packages/pkgconfig/pkgconfig_git.bb new file mode 100644 index 0000000000..73acb9e14a --- /dev/null +++ b/meta/packages/pkgconfig/pkgconfig_git.bb | |||
@@ -0,0 +1,39 @@ | |||
1 | require pkgconfig.inc | ||
2 | |||
3 | SRC_URI = "git://anongit.freedesktop.org/pkg-config;protocol=git \ | ||
4 | file://autofoo.patch;patch=1 \ | ||
5 | file://glibconfig-sysdefs.h" | ||
6 | |||
7 | S = "${WORKDIR}/git/" | ||
8 | |||
9 | PV = "0.23+git${SRCPV}" | ||
10 | |||
11 | DEFAULT_PREFERENCE = "-1" | ||
12 | |||
13 | # Can't do native version with git since git-native depends on pkgconfig-native | ||
14 | BBCLASSEXTEND = "nativesdk" | ||
15 | |||
16 | do_fixsource() { | ||
17 | # Adapted from autogen.sh | ||
18 | cd ${S} | ||
19 | tar -xvzf glib-1.2.10.tar.gz | ||
20 | |||
21 | chmod +w `find glib-1.2.10 -name Makefile.am` | ||
22 | perl -p -i.bak -e "s/lib_LTLIBRARIES/noinst_LTLIBRARIES/g" `find glib-1.2.10 -name Makefile.am` | ||
23 | perl -p -i.bak -e "s/bin_SCRIPTS/noinst_SCRIPTS/g" `find glib-1.2.10 -name Makefile.am` | ||
24 | perl -p -i.bak -e "s/include_HEADERS/noinst_HEADERS/g" `find glib-1.2.10 -name Makefile.am` | ||
25 | perl -p -i.bak -e "s/glibnoinst_HEADERS/noinst_HEADERS/g" `find glib-1.2.10 -name Makefile.am` | ||
26 | perl -p -i.bak -e 's/([a-zA-Z0-9]+)_DATA/noinst_DATA/g' `find glib-1.2.10 -name Makefile.am` | ||
27 | perl -p -i.bak -e "s/info_TEXINFOS/noinst_TEXINFOS/g" `find glib-1.2.10 -name Makefile.am` | ||
28 | perl -p -i.bak -e "s/man_MANS/noinst_MANS/g" `find glib-1.2.10 -name Makefile.am` | ||
29 | |||
30 | ## patch gslist.c to have stable sort | ||
31 | perl -p -w -i.bak -e 's/if \(compare_func\(l1->data,l2->data\) < 0\)/if \(compare_func\(l1->data,l2->data\) <= 0\)/g' glib-1.2.10/gslist.c | ||
32 | |||
33 | # Update random auto* files to actually have something which have a snowball's | ||
34 | # chance in a hot place of working with modern auto* tools. | ||
35 | |||
36 | (cd glib-1.2.10 && for p in ../glib-patches/*.diff; do echo $p; patch -p1 < $p || exit 1; done ) || exit 1 | ||
37 | } | ||
38 | |||
39 | addtask fixsource before do_patch after do_unpack | ||