+inherit pkgconfig cmake
+
+INSANE_SKIP_${PN} = "dev-so"
+
+EXTRA_OECMAKE += " \
+ -DUSE_BUILD_LIBS=OFF \
+ -DWITH_TESTS=OFF \
+ -DWITH_DBUS_WRAPPER=ON \
+ -DWITH_NSM=OFF \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ "
+
+cmake_do_install_append() {
+
+ export RPM_BUILD_ROOT=${D}
+
+ rm -f ${D}${infodir}/dir
+
+ find ${D} -regex ".*\.la$" | xargs rm -f --
+ find ${D} -regex ".*\.a$" | xargs rm -f -- DESTDIR=$RPM_BUILD_ROOT
+
+ mkdir $RPM_BUILD_ROOT${prefix}/include/genivi-audio-manager
+ mv $RPM_BUILD_ROOT${prefix}/include/*.h $RPM_BUILD_ROOT${prefix}/include/command $RPM_BUILD_ROOT${prefix}/include/control $RPM_BUILD_ROOT${prefix}/include/routing $RPM_BUILD_ROOT${prefix}/include/shared $RPM_BUILD_ROOT${prefix}/include/genivi-audio-manager
+ rm $RPM_BUILD_ROOT${prefix}/lib/audioManager/routing/libPluginRoutingInterfaceAsync.so*
+}
+
+FILES_${PN}-dbg += "${prefix}/lib/audioManager/command/.debug/libPluginCommandInterfaceDbus.so.2.0"
+FILES_${PN}-dbg += "${prefix}/lib/audioManager/control/.debug/libPluginControlInterfaceDbus.so.2.0"
+FILES_${PN}-dbg += "${prefix}/lib/audioManager/control/.debug/libPluginControlInterface.so.2.0"
+FILES_${PN}-dbg += "${prefix}/lib/audioManager/routing/.debug/libPluginRoutingInterfaceDbus.so.2.0"
unset DISPLAY
LD_AS_NEEDED=1; export LD_AS_NEEDED ;
- mkdir build
+ mkdir -p build
cd build
cmake -DUSE_BUILD_LIBS=OFF -DWITH_TESTS=OFF -DWITH_DBUS_WRAPPER=ON -DWITH_NSM=OFF -DCMAKE_INSTALL_PREFIX=/usr ..
#make VERBOSE=1
- make -j16
+ oe_runmake -j16
}
do_install() {
- echo export RPM_BUILD_ROOT=${D}
+ export RPM_BUILD_ROOT=${D}
cd ${S}
LANG=C
export LANG
rm -rf "$RPM_BUILD_ROOT"
cd build
- make install DESTDIR=$RPM_BUILD_ROOT
+
+ 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 -- DESTDIR=$RPM_BUILD_ROOT
mkdir $RPM_BUILD_ROOT${prefix}/include/genivi-audio-manager
mv $RPM_BUILD_ROOT${prefix}/include/*.h $RPM_BUILD_ROOT${prefix}/include/command $RPM_BUILD_ROOT${prefix}/include/control $RPM_BUILD_ROOT${prefix}/include/routing $RPM_BUILD_ROOT${prefix}/include/shared $RPM_BUILD_ROOT${prefix}/include/genivi-audio-manager
rm $RPM_BUILD_ROOT${prefix}/lib/audioManager/routing/libPluginRoutingInterfaceAsync.so*
LIC_FILES_CHKSUM ??= "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
-SRC_URI += "git://review.tizen.org/profile/ivi/genivi/genivi-audio-manager;tag=c408bbaa028e734b541f08fe4cff122b3da4c4ec;nobranch=1"
+SRC_URI += "git://review.tizen.org/profile/ivi/genivi/genivi-audio-manager;tag=ecbfb15600353a7191cdeca2e0148832bf79e1e2;nobranch=1"
BBCLASSEXTEND += " native "