- try to solve calendar-service.
authorRonan Le Martret <ronan@fridu.net>
Tue, 10 Sep 2013 14:09:37 +0000 (16:09 +0200)
committerRonan Le Martret <ronan@fridu.net>
Tue, 10 Sep 2013 14:09:37 +0000 (16:09 +0200)
meta-wrt-tizen/recipes-wrt/calendar-service/calendar-service-extraconf.inc
meta-wrt-tizen/recipes-wrt/calendar-service/calendar-service/generator.sh.patch [new file with mode: 0644]
meta-wrt-tizen/recipes-wrt/dlog/dlog-extraconf.inc
meta-wrt-tizen/recipes-wrt/dlog/dlog/dlog.pc.in.patch [new file with mode: 0644]

index e69de29..c883343 100644 (file)
@@ -0,0 +1,12 @@
+DEPENDS += "sqlite3-native"
+DEPENDS += "dlog-native"
+DEPENDS += "libslp-db-util-native"
+
+SRC_URI += "\
+  file://generator.sh.patch \
+  "
+  
+do_patch_append () {
+ echo RLM begining of python do_patch
+ cat ${WORKDIR}/generator.sh.patch | patch -s -p1 --fuzz=2
+}
\ No newline at end of file
diff --git a/meta-wrt-tizen/recipes-wrt/calendar-service/calendar-service/generator.sh.patch b/meta-wrt-tizen/recipes-wrt/calendar-service/calendar-service/generator.sh.patch
new file mode 100644 (file)
index 0000000..6ec5106
--- /dev/null
@@ -0,0 +1,47 @@
+diff --git a/schema/db-gen/Makefile b/schema/db-gen/Makefile
+index a1b8ab1..4c2f6a1 100755
+--- a/schema/db-gen/Makefile
++++ b/schema/db-gen/Makefile
+@@ -2,7 +2,10 @@ CC = gcc
+ REQUIRED_PKG = db-util
+ CFLAGS = -g -Wall #-fprofile-arcs -ftest-coverage
+-LDFLAGS =
++CFLAGS += -I${STAGING_DIR_NATIVE}/usr/include/
++LDFLAGS = -L${STAGING_DIR_NATIVE}/lib/
++LDFLAGS +=  -L${STAGING_DIR_NATIVE}/usr/lib/
++
+ ifdef REQUIRED_PKG
+       CFLAGS += $(shell pkg-config --cflags $(REQUIRED_PKG))
+       LDFLAGS += -L$(shell pkg-config --variable=libdir $(REQUIRED_PKG))
+diff --git a/schema/generator.sh b/schema/generator.sh
+index e900e5a..3e85be0 100755
+--- a/schema/generator.sh
++++ b/schema/generator.sh
+@@ -31,6 +31,9 @@ make clean
+ # Make DB
+ cd ../db-gen
+ make
++LD_LIBRARY_PATH="${STAGING_DIR_NATIVE}/usr/lib:${LD_LIBRARY_PATH}"
++echo STAGING_DIR_NATIVE ${STAGING_DIR_NATIVE}
++echo LD_LIBRARY_PATH ${LD_LIBRARY_PATH}
+ ../initdb ../
+ make clean
+diff --git a/schema/header-gen/Makefile b/schema/header-gen/Makefile
+index 70b2727..c718cfa 100755
+--- a/schema/header-gen/Makefile
++++ b/schema/header-gen/Makefile
+@@ -1,8 +1,10 @@
+ CC = gcc
+-REQUIRED_PKG =
++REQUIRED_PKG = 
+ CFLAGS = -g -Wall #-fprofile-arcs -ftest-coverage
+-LDFLAGS =
++CFLAGS +=  -I${STAGING_DIR_NATIVE}/usr/include/
++LDFLAGS =  -L${STAGING_DIR_NATIVE}/lib/
++LDFLAGS +=  -L${STAGING_DIR_NATIVE}/usr/lib/
+ ifdef REQUIRED_PKG
+       CFLAGS += `pkg-config --cflags $(REQUIRED_PKG)`
+       LDFLAGS += `pkg-config --libs $(REQUIRED_PKG)`
index 8c3eba9..d1dc98f 100644 (file)
@@ -1,10 +1,12 @@
 SRC_URI += "\
   file://configure.ac.patch \
+  file://dlog.pc.in.patch \
   "
   
 do_patch_append () {
  echo RLM begining of python do_patch
  cat ${WORKDIR}/configure.ac.patch | patch -s -p1 --fuzz=2
+ cat ${WORKDIR}/dlog.pc.in.patch | patch -s -p1 --fuzz=2
 }
 
 EXTRA_OECONF_LAST = "--build=${BUILD_SYS} --host=${HOST_SYS}"
\ No newline at end of file
diff --git a/meta-wrt-tizen/recipes-wrt/dlog/dlog/dlog.pc.in.patch b/meta-wrt-tizen/recipes-wrt/dlog/dlog/dlog.pc.in.patch
new file mode 100644 (file)
index 0000000..7bc2a1f
--- /dev/null
@@ -0,0 +1,10 @@
+diff --git a/dlog.pc.in b/dlog.pc.in
+index b0d787d..b06f160 100755
+--- a/dlog.pc.in
++++ b/dlog.pc.in
+@@ -1,4 +1,4 @@
+-prefix=/usr
++prefix=@prefix@
+ exec_prefix=${prefix}
+ libdir=${exec_prefix}/lib
+ includedir=${prefix}/include