2aa71cd670a7d3f9df3881cd25c43500555e5c82
[scm/bb/meta-tizen.git] / meta-tizen-common-base / recipes-application-framework / appcore-agent / appcore-agent.inc
1 DESCRIPTION = "Agent Application basic"
2 HOMEPAGE = "http://nohomepage.org"
3 SECTION = "Application Framework/Service"
4 LICENSE = "Apache-2.0"
5 PV = "1.0"
6
7 SRC_URI = ""
8
9 S = "${WORKDIR}/git"
10
11 inherit manifest autotools-brokensep
12
13 BBCLASSEXTEND = ""
14 PROVIDES = ""
15
16 #PROVIDES by appcore-agent
17
18
19 #PROVIDES by appcore-agent-dev
20 PROVIDES += "appcore-agent-dev"
21
22
23 RDEPENDS = ""
24 #RDEPENDS of appcore-agent-dev (${PN}-dev)
25 RDEPENDS_${PN}-dev += "appcore-agent"
26
27
28 DEPENDS = ""
29 #DEPENDS of appcore-agent
30 inherit tizen_cmake
31 inherit pkgconfig
32 DEPENDS += "dlog"
33 DEPENDS += "capi-appfw-application"
34 DEPENDS += "system-server"
35 DEPENDS += "aul"
36 DEPENDS += "glib-2.0"
37 DEPENDS += "vconf"
38
39 do_prep() {
40  cd ${S}
41  chmod -Rf a+rX,u+w,g-w,o-w ${S}
42  #setup -q
43  cp ${S}/packaging/appcore-agent.manifest .
44  
45  
46 }
47 do_patch_append() {
48     bb.build.exec_func('do_prep', d)
49 }
50
51 do_configure() {
52 }
53
54 do_compile() {
55  cd ${S}
56  LANG=C
57  export LANG
58  unset DISPLAY
59  LD_AS_NEEDED=1; export LD_AS_NEEDED ;
60  
61  
62    cmake \
63          -DCMAKE_VERBOSE_MAKEFILE=ON \
64          -DCMAKE_INSTALL_PREFIX:PATH=${prefix} \
65          -DCMAKE_INSTALL_LIBDIR:PATH=${prefix}/lib \
66          -DINCLUDE_INSTALL_DIR:PATH=${prefix}/include \
67          -DLIB_INSTALL_DIR:PATH=${prefix}/lib \
68          -DSYSCONF_INSTALL_DIR:PATH=${sysconfdir} \
69          -DSHARE_INSTALL_PREFIX:PATH=${prefix}/share \
70          -DCMAKE_SKIP_RPATH:BOOL=ON \
71          -DBUILD_SHARED_LIBS:BOOL=ON \
72          -DCMAKE_TOOLCHAIN_FILE=${WORKDIR}/toolchain.cmake \
73          ${EXTRA_OECMAKE} .
74  oe_runmake
75  
76  
77  
78 }
79
80 do_install() {
81  export RPM_BUILD_ROOT=${D}
82  cd ${S}
83  LANG=C
84  export LANG
85  unset DISPLAY
86  rm -rf ${D}
87  mkdir -p ${D}
88  
89  
90    oe_runmake \
91          DESTDIR=${D} \
92          INSTALL_ROOT=${D} \
93          BINDIR=${prefix}/bin \
94    install  
95    rm -f ${D}${infodir}/dir 
96    find ${D} -regex ".*\.la$" | xargs rm -f -- 
97    find ${D} -regex ".*\.a$" | xargs rm -f --
98  
99  
100 }
101
102 pkg_postinst_${PN}() {
103     #!/bin/sh -e
104
105     [ "x$D" == "x" ] && ldconfig
106 }
107
108 pkg_postrm_${PN}() {
109     #!/bin/sh -e
110
111     [ "x$D" == "x" ] && ldconfig
112 }
113
114 PACKAGES = "${PN}-dbg ${PN}-doc ${PN}-locale"
115 PACKAGES += " appcore-agent "
116 PACKAGES += " appcore-agent-dev "
117
118 appcore-agent_files = ""
119 appcore-agent_files += "${prefix}/lib/libappcore-agent.so.1"
120 appcore-agent_files += "${prefix}/lib/libappcore-agent.so.1.1"
121 MANIFESTFILES_${PN} = "appcore-agent.manifest"
122
123 appcore-agent-dev_files = ""
124 appcore-agent-dev_files += "${prefix}/lib/pkgconfig/appcore-agent.pc"
125 appcore-agent-dev_files += "${prefix}/lib/libappcore-agent.so"
126 appcore-agent-dev_files += "${prefix}/include/appcore-agent/appcore-agent.h"
127 appcore-agent-dev_files += "${prefix}/include/appcore-agent/service_app.h"
128 MANIFESTFILES_${PN}-dev = "appcore-agent.manifest"
129
130 FILES_${PN} = "${appcore-agent_files}"
131 FILES_${PN}-dev = "${appcore-agent-dev_files}"
132
133 PKG_appcore-agent= "appcore-agent"
134 PKG_appcore-agent-dev= "appcore-agent-dev"
135
136 require appcore-agent-extraconf.inc
137