1 DESCRIPTION = "App Checker"
2 HOMEPAGE = "http://nohomepage.org"
3 SECTION = "System/Libraries"
10 inherit autotools-brokensep
15 #PROVIDES by app-checker-server-dev
18 #PROVIDES by app-checker-dev
21 #PROVIDES by app-checker
24 #PROVIDES by app-checker-server
28 #RDEPENDS of app-checker-server-dev (${PN}-server-dev)
29 RDEPENDS_${PN}-server-dev += "app-checker-server"
31 #RDEPENDS of app-checker-dev (${PN}-dev)
32 RDEPENDS_${PN}-dev += "app-checker"
34 #RDEPENDS of app-checker-server (${PN}-server)
35 RDEPENDS_${PN}-server += "app-checker"
39 #DEPENDS of app-checker
40 DEPENDS_append_class-native = " cmake-native"
41 DEPENDS_append_class-target = " cmake-native"
47 chmod -Rf a+rX,u+w,g-w,o-w ${S}
49 cp ${S}/packaging/app-checker.manifest .
55 bb.build.exec_func('do_prep', d)
66 LD_AS_NEEDED=1; export LD_AS_NEEDED ;
70 CFLAGS="${CFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CFLAGS ;
71 CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ;
72 FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export FFLAGS ;
74 -DCMAKE_VERBOSE_MAKEFILE=ON \
75 -DCMAKE_INSTALL_PREFIX:PATH=${prefix} \
76 -DCMAKE_INSTALL_LIBDIR:PATH=${prefix}/lib \
77 -DINCLUDE_INSTALL_DIR:PATH=${prefix}/include \
78 -DLIB_INSTALL_DIR:PATH=${prefix}/lib \
79 -DSYSCONF_INSTALL_DIR:PATH=${sysconfdir} \
80 -DSHARE_INSTALL_PREFIX:PATH=${prefix}/share \
81 -DCMAKE_SKIP_RPATH:BOOL=ON \
82 -DBUILD_SHARED_LIBS:BOOL=ON .
91 echo export RPM_BUILD_ROOT=${D}
104 BINDIR=${prefix}/bin \
106 rm -f ${D}${infodir}/dir
107 find ${D} -regex ".*\.la$" | xargs rm -f --
108 find ${D} -regex ".*\.a$" | xargs rm -f --
109 mkdir -p ${D}${prefix}/lib/ac-plugins
111 mkdir -p ${D}/usr/share/license
112 cp LICENSE ${D}/usr/share/license/app-checker
113 cp LICENSE ${D}/usr/share/license/app-checker-devel
114 cp LICENSE ${D}/usr/share/license/app-checker-server
115 cp LICENSE ${D}/usr/share/license/app-checker-server-devel
120 pkg_postinst_${PN}() {
132 PACKAGES = "${PN}-dbg ${PN}-doc ${PN}-locale"
133 PACKAGES += " app-checker-server-dev "
134 PACKAGES += " app-checker-server "
135 PACKAGES += " app-checker "
136 PACKAGES += " app-checker-dev "
138 app-checker-server-dev_files = ""
139 app-checker-server-dev_files += "app-checker.manifest"
140 app-checker-server-dev_files += "${prefix}/lib/libapp-checker-server.so"
141 app-checker-server-dev_files += "${prefix}/lib/pkgconfig/app-checker-server.pc"
142 app-checker-server-dev_files += "${prefix}/include/app-checker/app-checker-server.h"
143 app-checker-server-dev_files += "/usr/share/license/app-checker-server-devel"
145 app-checker-server_files = ""
146 app-checker-server_files += "app-checker.manifest"
147 app-checker-server_files += "${prefix}/lib/libapp-checker-server.so.0"
148 app-checker-server_files += "${prefix}/lib/libapp-checker-server.so.0.1.0"
149 app-checker-server_files += "/usr/share/license/app-checker-server"
151 app-checker_files = ""
152 app-checker_files += "app-checker.manifest"
153 app-checker_files += "${prefix}/lib/libapp-checker.so.0"
154 app-checker_files += "${prefix}/lib/libapp-checker.so.0.1.0"
155 app-checker_files += "${prefix}/lib/ac-plugins"
156 app-checker_files += "/usr/share/license/app-checker"
158 app-checker-dev_files = ""
159 app-checker-dev_files += "app-checker.manifest"
160 app-checker-dev_files += "${prefix}/lib/libapp-checker.so"
161 app-checker-dev_files += "${prefix}/lib/pkgconfig/app-checker.pc"
162 app-checker-dev_files += "${prefix}/include/app-checker/app-checker.h"
163 app-checker-dev_files += "/usr/share/license/app-checker-devel"
165 FILES_${PN}-server-dev = "${app-checker-server-dev_files}"
166 FILES_${PN}-server = "${app-checker-server_files}"
167 FILES_${PN} = "${app-checker_files}"
168 FILES_${PN}-dev = "${app-checker-dev_files}"
170 PKG_app-checker-server-dev= "app-checker-server-dev"
171 PKG_app-checker-server= "app-checker-server"
172 PKG_app-checker= "app-checker"
173 PKG_app-checker-dev= "app-checker-dev"
175 require app-checker-extraconf.inc