poboxserver: make it build
authorPhilipp Zabel <philipp.zabel@gmail.com>
Sun, 7 May 2006 10:40:59 +0000 (10:40 +0000)
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>
Sun, 7 May 2006 10:40:59 +0000 (10:40 +0000)
 - not sure the package is correct, though. somebody with opie knowledge
   should look at this.

packages/poboxserver/files/OpenPOBox-1.25.diff
packages/poboxserver/poboxserver_1.2.5.bb

index 127c1d3..d3add6d 100644 (file)
@@ -1,12 +1,11 @@
 diff -ur OpenPOBox.orig/asearch/Makefile OpenPOBox/asearch/Makefile
 --- OpenPOBox.orig/asearch/Makefile    2001-07-23 16:18:15.000000000 +0900
 +++ OpenPOBox/asearch/Makefile 2003-06-14 17:52:12.668859200 +0900
-@@ -2,7 +2,7 @@
+@@ -2,7 +2,6 @@
  #     $Date: 2004/09/28 03:42:40 $
  #     $Revision: 1.6 $
  #
 -CC = gcc
-+CC = arm-linux-gcc
  CFLAGS = -Xcpluscomm
  WTANGLE = perl ../wtangle/wtangle
  
@@ -25,12 +24,11 @@ diff -ur OpenPOBox.orig/romakana/rklist OpenPOBox/romakana/rklist
 diff -ur OpenPOBox.orig/server/Makefile.in OpenPOBox/server/Makefile.in
 --- OpenPOBox.orig/server/Makefile.in  2002-02-19 09:37:10.000000000 +0900
 +++ OpenPOBox/server/Makefile.in       2003-06-14 17:52:12.678873600 +0900
-@@ -10,7 +10,7 @@
+@@ -10,7 +10,6 @@
  # CFLAGS = -DUNIX @CFLAGS@ -Xcpluscomm \
  #     -I../asearch -I../romakana -I../include -g
  
 -CC = gcc
-+CC = arm-linux-gcc
  CFLAGS = -DUNIX @CFLAGS@ \
        -I/usr/local/include -I/usr/local/lib/glib/include \
        -I@prefix@/include \
index 042923a..7ed5877 100644 (file)
@@ -2,6 +2,8 @@ DESCRIPTION = "OpenPOBox is an open source implementation of a 'Predictive Opera
 SECTION = "libs/inputmethods"
 LICENSE = "GPL"
 DEPENDS = "perl-native ruby-native"
+# DEPENDS += "nkf-native"
+PR = "r1"
 
 BROKEN = "1"
 
@@ -10,7 +12,27 @@ SRC_URI = "http://pitecan.com/OpenPOBox/dist/pobox-${PV}.tgz \
            file://OpenPOBox-1.25.diff;patch=1"
 S = "${WORKDIR}/OpenPOBox"
 
-inherit autotools
+inherit autotools update-rc.d
+
+FILES_${PN} = "${palmtopdir}/pobox/* ${sysconfdir}/init.d/pbserver"
+
+INITSCRIPT_NAME = "pbserver"
+INITSCRIPT_PARAMS = "start 99 5 . stop 01 0 ."
 
 EXTRA_OECONF = "--enable-lookup"
 PARALLEL_MAKE = ""
+
+do_compile() {
+       oe_runmake
+       cp ${S}/dict/data/fugodic ${WORKDIR}/pbserver/fugodic.txt
+       oe_runmake -C ${WORKDIR}/pbserver dic
+}
+
+do_install() {
+       install -d ${D}${palmtopdir}/pobox/
+       install -m 0755 ${S}/server/pbserver ${D}${palmtopdir}/pobox/
+       install -m 0644 ${WORKDIR}/pbserver/staticdic ${D}${palmtopdir}/pobox/
+       install -m 0644 ${WORKDIR}/pbserver/learndic ${D}${palmtopdir}/pobox/
+       install -d ${D}${sysconfdir}/init.d/
+       install -m 0755 ${WORKDIR}/pbserver/pbserver.sh ${D}${sysconfdir}/init.d/pbserver
+}