aboutsummaryrefslogtreecommitdiffstats
path: root/meta-application-manager/recipes-application-framework/libcom-core/libcom-core.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta-application-manager/recipes-application-framework/libcom-core/libcom-core.inc')
-rw-r--r--meta-application-manager/recipes-application-framework/libcom-core/libcom-core.inc141
1 files changed, 141 insertions, 0 deletions
diff --git a/meta-application-manager/recipes-application-framework/libcom-core/libcom-core.inc b/meta-application-manager/recipes-application-framework/libcom-core/libcom-core.inc
new file mode 100644
index 0000000..19d99ee
--- /dev/null
+++ b/meta-application-manager/recipes-application-framework/libcom-core/libcom-core.inc
@@ -0,0 +1,141 @@
+DESCRIPTION = "Library for the light-weight IPC"
+HOMEPAGE = "http://nohomepage.org"
+SECTION = "Base/IPC"
+LICENSE = "Apache-2.0"
+PV = "0.5.9"
+
+SRC_URI = "file://0001-remove-dbus-check.patch "
+
+S = "${WORKDIR}/git"
+
+inherit autotools-brokensep
+
+BBCLASSEXTEND = ""
+PROVIDES = ""
+
+#PROVIDES by libcom-core
+
+
+#PROVIDES by libcom-core-dev
+PROVIDES += "libcom-core-dev"
+
+
+RDEPENDS = ""
+#RDEPENDS of libcom-core-dev (${PN}-dev)
+RDEPENDS_${PN}-dev += "libcom-core"
+
+
+DEPENDS = ""
+#DEPENDS of libcom-core
+#Replace "DEPENDS" on gettext by "inherit gettext"
+inherit gettext
+inherit tizen_cmake
+DEPENDS += "systemd"
+DEPENDS += "dlog"
+inherit pkgconfig
+DEPENDS += "glib-2.0"
+
+do_prep() {
+ cd ${S}
+ chmod -Rf a+rX,u+w,g-w,o-w ${S}
+ #setup -q
+ cp ${S}/packaging/libcom-core.manifest .
+
+
+}
+do_patch_append() {
+ bb.build.exec_func('do_prep', d)
+}
+
+do_configure() {
+}
+
+do_compile() {
+ cd ${S}
+ LANG=C
+ export LANG
+ unset DISPLAY
+ LD_AS_NEEDED=1; export LD_AS_NEEDED ;
+
+
+
+ cmake \
+ -DCMAKE_VERBOSE_MAKEFILE=ON \
+ -DCMAKE_INSTALL_PREFIX:PATH=${prefix} \
+ -DCMAKE_INSTALL_LIBDIR:PATH=${prefix}/lib \
+ -DINCLUDE_INSTALL_DIR:PATH=${prefix}/include \
+ -DLIB_INSTALL_DIR:PATH=${prefix}/lib \
+ -DSYSCONF_INSTALL_DIR:PATH=${sysconfdir} \
+ -DSHARE_INSTALL_PREFIX:PATH=${prefix}/share \
+ -DCMAKE_SKIP_RPATH:BOOL=ON \
+ -DBUILD_SHARED_LIBS:BOOL=ON \
+ -DCMAKE_TOOLCHAIN_FILE=${WORKDIR}/toolchain.cmake \
+ ${EXTRA_OECMAKE}
+ make ${PARALLEL_MAKE}
+
+
+
+}
+
+do_install() {
+ export RPM_BUILD_ROOT=${D}
+ cd ${S}
+ LANG=C
+ export LANG
+ unset DISPLAY
+ rm -rf ${D}
+ mkdir -p ${D}
+
+ rm -rf ${D}
+
+ oe_runmake \
+ DESTDIR=${D} \
+ INSTALL_ROOT=${D} \
+ BINDIR=${prefix}/bin \
+ install
+ rm -f ${D}${infodir}/dir
+ find ${D} -regex ".*\.la$" | xargs rm -f --
+ find ${D} -regex ".*\.a$" | xargs rm -f --
+ mkdir -p ${D}${prefix}/share/license
+
+
+}
+
+pkg_postinst_libcom-core() {
+ #!/bin/sh -e
+
+ [ "x$D" == "x" ] && ldconfig
+}
+
+pkg_postrm_libcom-core() {
+ #!/bin/sh -e
+
+ [ "x$D" == "x" ] && ldconfig
+}
+
+PACKAGES = "${PN}-dbg ${PN}-doc ${PN}-locale"
+PACKAGES += " libcom-core "
+PACKAGES += " libcom-core-dev "
+
+libcom-core_files = ""
+libcom-core_files += "${prefix}/lib/*.so*"
+libcom-core_files += "${prefix}/share/license/*"
+MANIFESTFILES_${PN} = "libcom-core.manifest"
+
+libcom-core-dev_files = ""
+libcom-core-dev_files += "${prefix}/include/com-core/com-core.h"
+libcom-core-dev_files += "${prefix}/include/com-core/packet.h"
+libcom-core-dev_files += "${prefix}/include/com-core/com-core_packet.h"
+libcom-core-dev_files += "${prefix}/include/com-core/com-core_thread.h"
+libcom-core-dev_files += "${prefix}/include/com-core/secure_socket.h"
+libcom-core-dev_files += "${prefix}/lib/pkgconfig/*.pc"
+MANIFESTFILES_${PN}-dev = "libcom-core.manifest"
+
+FILES_${PN} = "${libcom-core_files}"
+FILES_${PN}-dev = "${libcom-core-dev_files}"
+
+PKG_libcom-core= "libcom-core"
+PKG_libcom-core-dev= "libcom-core-dev"
+
+require libcom-core-extraconf.inc
+