summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/guile/guile_2.0.5.bb
diff options
context:
space:
mode:
authorBogdan Marinescu <bogdan.a.marinescu@intel.com>2012-07-31 15:33:25 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-08-02 16:34:05 +0100
commit2db74c67cb169a1ed28fa14e5f89a6e64b4fb7a4 (patch)
treeb2f26d26db65bacedf8ce6d1d133ebf7bc025167 /meta/recipes-devtools/guile/guile_2.0.5.bb
parenta4b1e348484b74d055b8906413892789d3452f4a (diff)
downloadpoky-2db74c67cb169a1ed28fa14e5f89a6e64b4fb7a4.tar.gz
guile: updated to 2.0.6
Some patches (disable_goops_optimizations, fix_cross_compilation) don't seem to be needed anymore. Others (change-install-data-hook, mark-unused-modules) were updated to work on 2.0.6. Tested by building and running guile under QEMU with core-image-sato-sdk and also builing guile on MIPS. (From OE-Core rev: 310f169d3d89f3a4fc6a540974a30c7eb565db3a) Signed-off-by: Bogdan Marinescu <bogdan.a.marinescu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/guile/guile_2.0.5.bb')
-rw-r--r--meta/recipes-devtools/guile/guile_2.0.5.bb95
1 files changed, 0 insertions, 95 deletions
diff --git a/meta/recipes-devtools/guile/guile_2.0.5.bb b/meta/recipes-devtools/guile/guile_2.0.5.bb
deleted file mode 100644
index 8fae7125f4..0000000000
--- a/meta/recipes-devtools/guile/guile_2.0.5.bb
+++ /dev/null
@@ -1,95 +0,0 @@
1SUMMARY = "Guile is the GNU Ubiquitous Intelligent Language for Extensions."
2DESCRIPTION = "Guile is the GNU Ubiquitous Intelligent Language for Extensions,\
3 the official extension language for the GNU operating system.\
4 Guile is a library designed to help programmers create flexible applications.\
5 Using Guile in an application allows the application's functionality to be\
6 extended by users or other programmers with plug-ins, modules, or scripts.\
7 Guile provides what might be described as 'practical software freedom,'\
8 making it possible for users to customize an application to meet their\
9 needs without digging into the application's internals."
10
11HOMEPAGE = "http://www.gnu.org/software/guile/"
12SECTION = "devel"
13LICENSE = "GPLv3"
14LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
15
16SRC_URI = "${GNU_MIRROR}/guile/guile-${PV}.tar.gz \
17 file://debian/0002-Mark-Unused-modules-are-removed-gc-test-as-unresolve.patch \
18 file://debian/0003-Mark-mutex-with-owner-not-retained-threads-test-as-u.patch \
19 file://opensuse/guile-64bit.patch \
20 file://guile_2.0.5_fix_sed_error.patch \
21 file://guile_2.0.5_disable_goops_optimizations.patch \
22 file://guile_2.0.5_fix_cross_compilation.patch \
23 file://remove-gets.patch \
24 file://arm_endianness.patch \
25 file://change-install-data-hook-to-install-exec-hook-in-gui.patch \
26 "
27
28# file://debian/0001-Change-guile-to-guile-X.Y-for-info-pages.patch
29# file://opensuse/guile-turn-off-gc-test.patch
30
31SRC_URI[md5sum] = "bcf70d54b44c99cb9acd3f63c5486b4b"
32SRC_URI[sha256sum] = "2a026ea6cdbc51ca71bcd9787839debfa45ac5db1e26dc00b30ca9b128b10956"
33
34PR = "r5"
35
36inherit autotools gettext
37BBCLASSEXTEND = "native"
38
39DEPENDS = "libunistring bdwgc gmp libtool libffi"
40# add guile-native only to the target recipe's DEPENDS
41DEPENDS += "${@['guile-native libatomics-ops', ''][d.getVar('PN', True) != 'guile']}"
42
43EXTRA_OECONF += "${@['--without-libltdl-prefix --without-libgmp-prefix', ''][bb.data.inherits_class('native',d)]}"
44
45do_configure_prepend() {
46 mkdir -p po
47}
48
49export GUILE_FOR_BUILD="${BUILD_SYS}-guile"
50
51do_compile_append() {
52 # just for target recipe
53 if [ "${PN}" == "guile" ]
54 then
55 sed -i -e s:${STAGING_DIR_TARGET}::g \
56 -e s:/${TARGET_SYS}::g \
57 -e s:-L/usr/lib::g \
58 -e s:-isystem/usr/include::g \
59 -e s:,/usr/lib:,\$\{libdir\}:g \
60 meta/guile-2.0.pc
61 fi
62}
63
64do_install_append_virtclass-native() {
65 install -m 0755 ${D}${bindir}/guile ${D}${bindir}/${HOST_SYS}-guile
66
67 create_wrapper ${D}/${bindir}/guile \
68 GUILE_LOAD_PATH=${STAGING_DATADIR_NATIVE}/guile/2.0 \
69 GUILE_LOAD_COMPILED_PATH=${STAGING_LIBDIR_NATIVE}/guile/2.0/ccache
70 create_wrapper ${D}${bindir}/${HOST_SYS}-guile \
71 GUILE_LOAD_PATH=${STAGING_DATADIR_NATIVE}/guile/2.0 \
72 GUILE_LOAD_COMPILED_PATH=${STAGING_LIBDIR_NATIVE}/guile/2.0/ccache
73}
74
75SYSROOT_PREPROCESS_FUNCS = "guile_cross_config"
76
77guile_cross_config() {
78 # this is only for target recipe
79 if [ "${PN}" == "guile" ]
80 then
81 # Create guile-config returning target values instead of native values
82 install -d ${SYSROOT_DESTDIR}${STAGING_BINDIR_CROSS}
83 echo '#!'`which ${BUILD_SYS}-guile`$' \\\n--no-auto-compile -e main -s\n!#\n(define %guile-build-info '\'\( \
84 > guile-config.cross
85 sed -n -e 's:^[ \t]*{[ \t]*": (:' \
86 -e 's:",[ \t]*": . ":' \
87 -e 's:" *}, *\\:"):' \
88 -e 's:^.*cachedir.*$::' \
89 -e '/^ (/p' \
90 < libguile/libpath.h >> guile-config.cross
91 echo '))' >> guile-config.cross
92 cat meta/guile-config >> guile-config.cross
93 install guile-config.cross ${STAGING_BINDIR_CROSS}/guile-config
94 fi
95}