1 DESCRIPTION = "MMSound Package contains client lib and sound_server binary"
2 HOMEPAGE = "http://nohomepage.org"
3 SECTION = "System/Libraries"
10 inherit autotools-brokensep
15 #PROVIDES by libmm-sound-dev
18 #PROVIDES by libmm-sound
21 #PROVIDES by libmm-sound-tool
24 #PROVIDES by libmm-sound-sdk-dev
28 #RDEPENDS of libmm-sound-dev (${PN}-dev)
29 RDEPENDS_${PN}-dev += "libmm-sound"
31 #RDEPENDS of libmm-sound-sdk-dev (${PN}-sdk-dev)
32 RDEPENDS_${PN}-sdk-dev += "libmm-sound-dev"
34 #RDEPENDS of libmm-sound-tool (${PN}-tool)
35 RDEPENDS_${PN}-tool += "libmm-sound"
37 #RDEPENDS of libmm-sound (${PN})
38 RDEPENDS_${PN} += "eglibc"
39 RDEPENDS_${PN} += "vconf"
43 #DEPENDS of libmm-sound
45 DEPENDS += "libmm-common"
46 DEPENDS += "audio-session-manager"
47 DEPENDS += "libmm-log"
48 DEPENDS += "security-server"
51 DEPENDS += "libslp-sysman"
53 DEPENDS += "libmm-session"
57 chmod -Rf a+rX,u+w,g-w,o-w ${S}
59 cp ${S}/packaging/libmm-sound.manifest .
65 bb.build.exec_func('do_prep', d)
76 CFLAGS="-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables" ; export CFLAGS ;
77 CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ;
78 FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I%_fmoddir}" ; export FFLAGS ;
79 LD_AS_NEEDED=1; export LD_AS_NEEDED ;
82 CFLAGS="-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -fvisibility=hidden -DMM_DEBUG_FLAG -DSEPARATE_SPEAKER_AND_WIRED_ACCESSORY -DEXPORT_API=\"__attribute__((visibility(\\\"default\\\")))\""; export CFLAGS
84 CFLAGS="${CFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CFLAGS ;
85 CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ;
86 FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I%_fmoddir}" ; export FFLAGS ;
87 autotools_do_configure --build=${TARGET_SYS} --host=${HOST_SYS} \
88 --target=x86_64-tizen-linux \
91 --exec-prefix=${prefix} \
92 --bindir=${prefix}/bin \
93 --sbindir=${prefix}/sbin \
94 --sysconfdir=${sysconfdir} \
95 --datadir=${prefix}/share \
96 --includedir=${prefix}/include \
97 --libdir=${prefix}/lib \
98 --libexecdir=${prefix}/libexec \
99 --localstatedir=${localstatedir} \
100 --sharedstatedir=${prefix}/com \
102 --infodir=${infodir} --prefix=/usr --enable-pulse --enable-security
110 echo export RPM_BUILD_ROOT=${D}
122 BINDIR=${prefix}/bin \
124 rm -f ${D}${infodir}/dir
125 find ${D} -regex ".*\.la$" | xargs rm -f --
126 find ${D} -regex ".*\.a$" | xargs rm -f --
127 install -d ${D}/usr/lib/systemd/system/multi-user.target.wants
128 install -m0644 ${S}/packaging/sound-server.service ${D}/usr/lib/systemd/system/
129 install -m0644 ${S}/packaging/sound-server.path ${D}/usr/lib/systemd/system/
130 ln -sf ../sound-server.path ${D}/usr/lib/systemd/system/multi-user.target.wants/sound-server.path
132 # FIXME: remove after systemd is in
133 mkdir -p ${D}${sysconfdir}/rc.d/rc3.d
134 mkdir -p ${D}${sysconfdir}/rc.d/rc4.d
135 mkdir -p ${D}${sysconfdir}/rc.d/rc5.d
136 ln -s ${sysconfdir}/rc.d/init.d/soundserver ${D}${sysconfdir}/rc.d/rc3.d/S23soundserver
137 ln -s ${sysconfdir}/rc.d/init.d/soundserver ${D}${sysconfdir}/rc.d/rc4.d/S23soundserver
144 PACKAGES += " libmm-sound-tool "
145 PACKAGES += " libmm-sound-sdk-dev "
147 libmm-sound-dev_files = ""
148 libmm-sound-dev_files += "libmm-sound.manifest"
149 libmm-sound-dev_files += "${prefix}/lib/libmmfkeysound.so"
150 libmm-sound-dev_files += "${prefix}/lib/libmmfsound.so"
151 libmm-sound-dev_files += "${prefix}/lib/libmmfsoundcommon.so"
152 libmm-sound-dev_files += "${prefix}/include/mmf/mm_sound_private.h"
153 libmm-sound-dev_files += "${prefix}/include/mmf/mm_sound_plugin.h"
154 libmm-sound-dev_files += "${prefix}/include/mmf/mm_sound_plugin_hal.h"
156 libmm-sound_files = ""
157 libmm-sound_files += "libmm-sound.manifest"
158 libmm-sound_files += "${prefix}/bin/sound_server"
159 libmm-sound_files += "${prefix}/lib/libmmfsound.so.*"
160 libmm-sound_files += "${prefix}/lib/libmmfsoundcommon.so.*"
161 libmm-sound_files += "${prefix}/lib/libmmfkeysound.so.*"
162 libmm-sound_files += "${prefix}/lib/libsoundplugintone.so*"
163 libmm-sound_files += "${prefix}/lib/libsoundpluginwave.so*"
164 libmm-sound_files += "${prefix}/lib/libsoundpluginkeytone.so*"
165 libmm-sound_files += "${prefix}/lib/soundplugins/libsoundplugintone.so"
166 libmm-sound_files += "${prefix}/lib/soundplugins/libsoundpluginwave.so"
167 libmm-sound_files += "${prefix}/lib/soundplugins/libsoundpluginkeytone.so"
168 libmm-sound_files += "${sysconfdir}/rc.d/init.d/soundserver"
169 libmm-sound_files += "${sysconfdir}/rc.d/rc3.d/S23soundserver"
170 libmm-sound_files += "${sysconfdir}/rc.d/rc4.d/S23soundserver"
171 libmm-sound_files += "/usr/share/sounds/sound-server/*"
172 libmm-sound_files += "/usr/lib/systemd/system/multi-user.target.wants/sound-server.path"
173 libmm-sound_files += "/usr/lib/systemd/system/sound-server.service"
174 libmm-sound_files += "/usr/lib/systemd/system/sound-server.path"
176 libmm-sound-tool_files = ""
177 libmm-sound-tool_files += "libmm-sound.manifest"
178 libmm-sound-tool_files += "${prefix}/bin/mm_sound_testsuite"
180 libmm-sound-sdk-dev_files = ""
181 libmm-sound-sdk-dev_files += "libmm-sound.manifest"
182 libmm-sound-sdk-dev_files += "${prefix}/include/mmf/mm_sound.h"
183 libmm-sound-sdk-dev_files += "${prefix}/lib/pkgconfig/mm-keysound.pc"
184 libmm-sound-sdk-dev_files += "${prefix}/lib/pkgconfig/mm-sound.pc"
186 FILES_${PN}-dev = "${libmm-sound-dev_files}"
187 FILES_${PN} = "${libmm-sound_files}"
188 FILES_${PN}-tool = "${libmm-sound-tool_files}"
189 FILES_${PN}-sdk-dev = "${libmm-sound-sdk-dev_files}"
191 PKG_libmm-sound-dev= "libmm-sound-dev"
192 PKG_libmm-sound= "libmm-sound"
193 PKG_libmm-sound-tool= "libmm-sound-tool"
194 PKG_libmm-sound-sdk-dev= "libmm-sound-sdk-dev"
196 require libmm-sound-extraconf.inc