summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Zabel <philipp.zabel@gmail.com>2007-01-15 16:14:04 +0000
committerPhilipp Zabel <philipp.zabel@gmail.com>2007-01-15 16:14:04 +0000
commit6e7d32c071c1f68c181034257205c8c7a32a8843 (patch)
treea6934edd1361d24cf8db0dcc585a0f39aeb73292
parentdddb2e26017c226a72ca58339c86b5ee1a475b90 (diff)
parente620a93810f7a2b4be0ea3b87a9fe0d82ca045fe (diff)
merge of '456124b7d55f34d0e4b0703a7026ccde10d0ddab'
and 'afecd5c6e854fdb61b8eaceddd3a075399c900b3'
-rw-r--r--packages/abiword/abiword_2.5.0.bb6
-rwxr-xr-xpackages/abiword/files/cdump.pl32
-rw-r--r--packages/mysql/mysql-native_4.1.18.bb2
3 files changed, 40 insertions, 0 deletions
diff --git a/packages/abiword/abiword_2.5.0.bb b/packages/abiword/abiword_2.5.0.bb
index 32b703c9ae..82d4e0e944 100644
--- a/packages/abiword/abiword_2.5.0.bb
+++ b/packages/abiword/abiword_2.5.0.bb
@@ -2,7 +2,13 @@ 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/
+}
+
diff --git a/packages/abiword/files/cdump.pl b/packages/abiword/files/cdump.pl
new file mode 100755
index 0000000000..76f9c8841b
--- /dev/null
+++ b/packages/abiword/files/cdump.pl
@@ -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; \ No newline at end of file
diff --git a/packages/mysql/mysql-native_4.1.18.bb b/packages/mysql/mysql-native_4.1.18.bb
index ebef572fbb..dc87549e24 100644
--- a/packages/mysql/mysql-native_4.1.18.bb
+++ b/packages/mysql/mysql-native_4.1.18.bb
@@ -2,6 +2,8 @@ SECTION = "console/network"
require mysql_${PV}.bb
inherit native
+RDEPENDS_${PN} = ""
+
PACKAGES = ""
DEPENDS = "ncurses-native"
EXTRA_OEMAKE = ""