Fix pkgmgr fr native build
[scm/bb/meta-tizen.git] / recipes-tizen / security-server / security-server-extraconf.inc
index 116cbb2..025ca45 100644 (file)
@@ -1,18 +1,8 @@
-B = "${S}"
-
 SRC_URI += "file://0001-PATCH-link-to-the-pthread-library.patch"
-
-do_configure_prepend() {
-    # Remove failing expression
-    sed -i 's!STRING(REGEX MATCH .*!!g' ${S}/CMakeLists.txt
-    sed -i 's!ADD_DEFINITIONS("-DAPI_VERSION=.*!!g' ${S}/CMakeLists.txt
-
-    # Replace undefined variables
-    find ${S} -name "CMakeLists.txt" -exec sed -i 's!\${LIB_INSTALL_DIR}!lib!g' {} \;
-    find ${S} -name "CMakeLists.txt" -exec sed -i 's!\${INCLUDE_INSTALL_DIR}!/usr/include!g' {} \;
-
-    # Replace macros that aren't automatically expanded
-    sed -i 's!@LIB_INSTALL_DIR@!${prefix}/lib!g' ${S}/build/security-server/security-server.pc.in
-}
+SRC_URI_append_class-native = " file://remove-dlog-for-native-build.patch"
 
 CXXFLAGS += "-std=c++11"
+
+RDEPENDS_${PN}_remove_class-native = "systemd-native"
+DEPENDS_remove_class-native = "systemd-native"
+DEPENDS_remove_class-native = "dlog-native"