do_configure() {
sed -i 's@wrappersrcdir=.*@wrappersrcdir=$(PKG_CONFIG_SYSROOT_DIR)$(datadir)@' ${S}/src/Makefile.am
}
+
+do_install_append_class-native() {
+ sed -i "s@=/home@=${D}/home@g" ${D}${sysconfdir}/tizen-platform.conf
+ sed -i "s@=/opt@=${D}/opt@g" ${D}${sysconfdir}/tizen-platform.conf
+ sed -i "s@=/usr@=${D}/usr@g" ${D}${sysconfdir}/tizen-platform.conf
+ sed -i "s@=/etc@=${D}/etc@g" ${D}${sysconfdir}/tizen-platform.conf
+ sed -i "s@=/root@=${D}/root@g" ${D}${sysconfdir}/tizen-platform.conf
+}
+
--- /dev/null
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 28d168d..9dd6e52 100755
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -17,7 +17,7 @@ INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include)
+
+ INCLUDE(FindPkgConfig)
+ pkg_check_modules(glib_pkg REQUIRED gobject-2.0)
+-pkg_check_modules(pkgs REQUIRED glib-2.0 dlog libtzplatform-config vconf-internal-keys)
++pkg_check_modules(pkgs REQUIRED glib-2.0 libtzplatform-config vconf-internal-keys)
+
+ FOREACH(flag ${pkgs_CFLAGS})
+ SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
+diff --git a/include/vconf-log.h b/include/vconf-log.h
+index fa53102..f70d1e1 100755
+--- a/include/vconf-log.h
++++ b/include/vconf-log.h
+@@ -26,7 +26,6 @@
+ #include <unistd.h>
+ #include <stdlib.h>
+
+-#define VCONF_DLOG_OUT
+
+ /************** Error ***************/
+ #ifdef VCONF_SYSLOG_OUT
+SRC_URI_append_class-native = " file://remove-dlog-for-native.patch"
+
+RDEPENDS_${PN}_remove_class-native = "eglibc-native"
+RDEPENDS_${PN}_remove_class-native = "systemd-native"
+DEPENDS_remove_class-native = "dlog-native"
+
+DEPENDS_class-target += "vconf-native"
+
+do_install_append_class-native() {
+ sed -i "s@source /etc/tizen-platform.conf@source ${sysconfdir}/tizen-platform.conf@g" ${D}${prefix}/bin/vconf-init
+}