[oe] Question regarding gettext 0.18
Andreas Mueller
schnitzeltony at gmx.de
Thu Jan 27 21:21:15 UTC 2011
On Thursday 27 January 2011 13:38:32 Henning Heinold wrote:
> Hi,
>
> can you provide the recipes somewhere so I could easily test them.
>
> Bye Henning
>
Some comments on the files attached:
- the changes in clutter-common.inc were made to prepare clutter-toys. I don't know if they are required for this issue
- I successfully build (did not yet run on hardware) by simply commenting the line 'read dummy < /dev/tty' in sysroots/i686-linux/usr/bin/gettextize.
- OE folks: Has anybody a problem patching gettext(-native) to make it accessible for automated environments?
good night
Andreas
-------------- next part --------------
require clutter.inc
inherit autotools pkgconfig gettext
PR = "${INC_PR}.0"
SRC_URI = "http://source.clutter-project.org/sources/clutter/1.4/clutter-${PV}.tar.bz2 \
${INC_SRC_URI} \
"
# not (yet) in clutter.inc: elder versions had json code included
STDDEPENDS += "json-glib"
# recommended for --clutter-debug / --cogl-debug params
BASE_CONF += " --enable-debug"
do_configure_prepend() {
# align the test data location *.c (V1.2 and following use macro ASSETS_DIR for path in *.c)
for i in $(find ${S}/tests -name Makefile.am) ; do
sed -i -e 's:$(top_srcdir)/tests/data:${datadir}/${PN}-tests:g' $i
done
# prevent the conformance test suite from running
sed -i -e 's:BUILT_SOURCES = wrappers:# BUILT_SOURCES = wrappers:g' ${S}/tests/conform/Makefile.am
# 1. OE currently supports gettext 0.18 / clutter ships with 0.17
# we assume no problem changing gettext version because clutter did too
# see http://git.clutter-project.org/clutter/commit/?id=0e325404aa50fcca400d0cb8020a36bcd81f4c37
# 2. clutter moved to upstream gettext from glib one
# see http://git.clutter-project.org/clutter/commit/?id=98cac30d82299b3739f3801f71b5e2e931eb2e8d
echo gettextize $(which gettextize)
echo glib-gettextize $(which glib-gettextize)
gettextize --force || true
# gstreamer uses AG_GST_GETTEXT which autotools.bbclass doesn't grep for
# glib-gettextize --force --copy || true
}
do_compile_prepend() {
rebuild_shader_sources ${S}/clutter/cogl/cogl/driver/gles
# align test data location *.json
for full_name in $(find ${S}/tests/data -name *.png -o -name *.json) ; do
data_name=${full_name##*/}
for i in $(find ${S}/tests -name *.json) ; do
sed -i -e s:${data_name}:${datadir}/${PN}-tests/${data_name}:g $i
done
done
}
do_install() {
autotools_do_install
install_tests
}
SRC_URI[md5sum] = "5a3c6d8414d4e286aba0a936f344c9b1"
SRC_URI[sha256sum] = "92fd67acce5105c933e54ad0c87d0f5ace1202fd0f87949cb49a3759e6e38892"
-------------- next part --------------
# common functions for all clutter-libraries
# all .debug stuff goes to clutter*-dbg
FILES_${PN}-dbg += "${bindir}/.debug"
# helper for (git)-recipes which do not have gtk-doc.make
copy_gtk_doc_make() {
if [ -e ${WORKDIR}/gtk-doc.make ] ; then
cp ${WORKDIR}/gtk-doc.make ${S}/gtk-doc.make
else
touch ${S}/gtk-doc.make
fi
}
# clutter packs assume building and target are the same
# for us they are definitely not
make_all_execs_installable() {
for i in $(find ${S} -name Makefile.am) ; do
sed -i -e s:noinst_PROGRAMS:bin_PROGRAMS:g \
-e s:check_PROGRAMS:bin_PROGRAMS:g $i
done
}
#check for TARGET_FPU=soft and inform configure of the result so it can disable some floating points
def get_clutter_fpu_setting(bb, d):
if bb.data.getVar('TARGET_FPU', d, 1) in [ 'soft' ]:
return "--without-fpu"
return ""
More information about the Openembedded-devel
mailing list