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