1 DESCRIPTION = "Application Service"
2 HOMEPAGE = "http://nohomepage.org"
3 SECTION = "Application Framework/Service"
10 inherit autotools-brokensep
17 #PROVIDES by app-svc-dev
21 #RDEPENDS of app-svc (${PN})
22 RDEPENDS_${PN} += "eglibc"
24 #RDEPENDS of app-svc-dev (${PN}-dev)
25 RDEPENDS_${PN}-dev += "app-svc"
30 DEPENDS += "pkgmgr-info"
32 DEPENDS_append_class-native = " cmake-native"
33 DEPENDS_append_class-target = " cmake-native"
34 DEPENDS += "iniparser"
40 DEPENDS += "libsoup-2.4"
43 DEPENDS += "libprivilege-control"
47 chmod -Rf a+rX,u+w,g-w,o-w ${S}
49 cp ${S}/packaging/app-svc.manifest .
54 bb.build.exec_func('do_prep', d)
65 CFLAGS="-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables" ; export CFLAGS ;
66 CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ;
67 FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I%_fmoddir}" ; export FFLAGS ;
68 LD_AS_NEEDED=1; export LD_AS_NEEDED ;
71 CFLAGS="${CFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CFLAGS ;
72 CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ;
73 FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export FFLAGS ;
75 -DCMAKE_VERBOSE_MAKEFILE=ON \
76 -DCMAKE_INSTALL_PREFIX:PATH=${prefix} \
77 -DCMAKE_INSTALL_LIBDIR:PATH=${prefix}/lib \
78 -DINCLUDE_INSTALL_DIR:PATH=${prefix}/include \
79 -DLIB_INSTALL_DIR:PATH=${prefix}/lib \
80 -DSYSCONF_INSTALL_DIR:PATH=${sysconfdir} \
81 -DSHARE_INSTALL_PREFIX:PATH=${prefix}/share \
82 -DCMAKE_SKIP_RPATH:BOOL=ON \
83 -DBUILD_SHARED_LIBS:BOOL=ON . \
93 echo export RPM_BUILD_ROOT=${D}
105 BINDIR=${prefix}/bin \
107 rm -f ${D}${infodir}/dir
108 find ${D} -regex ".*\.la$" | xargs rm -f --
109 find ${D} -regex ".*\.a$" | xargs rm -f --
112 mkdir -p ${D}/opt/dbspace
113 sqlite3 ${D}/opt/dbspace/.appsvc.db < data/appsvc_db.sql
115 mkdir -p ${D}/usr/share/license
116 cp LICENSE ${D}/usr/share/license/app-svc
123 app-svc_files += "app-svc.manifest"
124 app-svc_files += "%verify(not md5 mtime size) %attr(664,root,app) /opt/dbspace/.appsvc.db"
125 app-svc_files += "%verify(not md5 mtime size) %attr(664,root,app) /opt/dbspace/.appsvc.db-journal"
126 app-svc_files += "/usr/bin/appsvc_test"
127 app-svc_files += "${prefix}/lib/libappsvc.so.0"
128 app-svc_files += "${prefix}/lib/libappsvc.so.0.1.0"
129 app-svc_files += "/usr/share/license/app-svc"
131 app-svc-dev_files = ""
132 app-svc-dev_files += "app-svc.manifest"
133 app-svc-dev_files += "${prefix}/lib/pkgconfig/appsvc.pc"
134 app-svc-dev_files += "${prefix}/lib/libappsvc.so"
135 app-svc-dev_files += "${prefix}/include/appsvc/appsvc.h"
137 FILES_${PN} = "${app-svc_files}"
138 FILES_${PN}-dev = "${app-svc-dev_files}"
140 PKG_app-svc= "app-svc"
141 PKG_app-svc-dev= "app-svc-dev"
143 require app-svc-extraconf.inc