[oe-commits] org.oe.dev abiword_2.5.0.bb : finish the .bb
xora commit
openembedded-commits at lists.openembedded.org
Mon Jan 15 15:19:29 UTC 2007
abiword_2.5.0.bb : finish the .bb
Author: xora at openembedded.org
Branch: org.openembedded.dev
Revision: 678b1e5c05a4cfa25000ad52b48967fdb1f47de9
ViewMTN: http://monotone.openembedded.org/revision.psp?id=678b1e5c05a4cfa25000ad52b48967fdb1f47de9
Files:
1
packages/abiword/files/cdump.pl
packages/abiword/abiword_2.5.0.bb
mtn:execute
true
Diffs:
#
# mt diff -r0c9af4619cd97284a6221a7fdd3a9b4b323a4d57 -r678b1e5c05a4cfa25000ad52b48967fdb1f47de9
#
#
#
# add_file "packages/abiword/files/cdump.pl"
# content [82de540571dea218982769c89d525fa645628592]
#
# patch "packages/abiword/abiword_2.5.0.bb"
# from [e8cc9c536317ffe5aae66fd182baa502e5a58e55]
# to [3f8cc4cfd36ea7c11f6a89026d4a311b0ae53778]
#
# set "packages/abiword/files/cdump.pl"
# attr "mtn:execute"
# value "true"
#
============================================================
--- packages/abiword/files/cdump.pl 82de540571dea218982769c89d525fa645628592
+++ packages/abiword/files/cdump.pl 82de540571dea218982769c89d525fa645628592
@@ -0,0 +1,32 @@
+#!/usr/bin/perl
+
+# This script replace the cdump tool we used to build the ap_wp_Splash.cpp
+# Because the cdump tool has to be run as a part of building the AW package,
+# it breaks cross-compilation. A perl script seemed like a generic solution
+
+
+if ($#ARGV != 1 )
+{
+ print "Usage: $0 datafile arrayname $#ARGV $ARGV[0] $ARGV[1]\n";
+ exit(-1);
+}
+
+open FROM, "<$ARGV[0]" or die "Could not open file $ARGV[0]";
+binmode FROM;
+
+print "unsigned char $ARGV[1] [] = {\n";
+
+while ($len = read(FROM, $buf, 16))
+{
+ foreach(split(//,$buf))
+ {
+ printf("0x%02x,", ord($_));
+ }
+
+ print "\n";
+}
+
+
+printf "};\nunsigned long $ARGV[1]_sizeof = sizeof($ARGV[1]);\n";
+
+close FROM;
============================================================
--- packages/abiword/abiword_2.5.0.bb e8cc9c536317ffe5aae66fd182baa502e5a58e55
+++ packages/abiword/abiword_2.5.0.bb 3f8cc4cfd36ea7c11f6a89026d4a311b0ae53778
@@ -1,8 +1,14 @@ DEFAULT_PREFERENCE = "-1"
require abiword-2.5.inc
DEFAULT_PREFERENCE = "-1"
+SRC_URI += " file://cdump.pl "
+
PR = "r0"
RCONFLICTS = "abiword-embedded"
+do_compile_prepend () {
+ cp ${WORKDIR}/cdump.pl ${S}/src/tools/cdump/xp/
+}
+
More information about the Openembedded-commits
mailing list