Update recipes
[scm/bb/meta-tizen.git] / recipes-tizen / pulseaudio-module-murphy-ivi / pulseaudio-module-murphy-ivi.inc
1 DESCRIPTION = "Pulseaudio module for enforcing policy decisions in the audio domain"
2 HOMEPAGE = "http://nohomepage.org"
3 SECTION = "Multimedia/Audio FW"
4 LICENSE = "LGPL-2.1"
5
6 SRC_URI = ""
7
8 S = "${WORKDIR}/git"
9
10 inherit autotools-brokensep
11
12 BBCLASSEXTEND = ""
13 PROVIDES = ""
14
15 #PROVIDES by pulseaudio-module-murphy-ivi
16
17
18 RDEPENDS = ""
19 #RDEPENDS of pulseaudio-module-murphy-ivi (${PN})
20 RDEPENDS_${PN} += "pulseaudio"
21 RDEPENDS_${PN} += "aul"
22
23
24 DEPENDS = ""
25 #DEPENDS of pulseaudio-module-murphy-ivi
26 DEPENDS += "pulseaudio"
27 DEPENDS += "dbus"
28 DEPENDS += "murphy"
29 inherit pkgconfig
30 DEPENDS += "glib-2.0"
31 DEPENDS += "lua"
32 DEPENDS += "aul"
33 DEPENDS_append_class-native = " libtool"
34 DEPENDS_append_class-target = " libtool-cross"
35
36 do_prep() {
37  cd ${S}
38  chmod -Rf a+rX,u+w,g-w,o-w ${S}
39  #setup -q
40  
41  
42 }
43 do_patch_append() {
44     bb.build.exec_func('do_prep', d)
45 }
46
47 do_configure() {
48 }
49
50 do_compile() {
51  cd ${S}
52   LANG=C
53   export LANG
54   unset DISPLAY
55   LD_AS_NEEDED=1; export LD_AS_NEEDED ;
56   
57   PAVER="`/usr/bin/pkg-config --silence-errors --modversion libpulse |   tr -d \\n | sed -e 's/\([0123456789.]\+\).*/\1/'`"
58   ./bootstrap.sh
59   
60   unset LD_AS_NEEDED
61   
62   autotools_do_configure
63   oe_runmake
64   
65   
66   
67 }
68 EXTRA_OECONF += " --disable-static --with-module-dir=${prefix}/lib/pulse-$PAVER/modules --with-dbus --with-documentation=no --with-murphyif"
69
70 do_install() {
71  export RPM_BUILD_ROOT=${D}
72  cd ${S}
73  LANG=C
74  export LANG
75  unset DISPLAY
76  rm -rf ${D}
77  mkdir -p ${D}
78  
79  rm -rf $RPM_BUILD_ROOT
80  
81    oe_runmake \
82          DESTDIR=${D} \
83          INSTALL_ROOT=${D} \
84          BINDIR=${prefix}/bin \
85    install  
86    rm -f ${D}${infodir}/dir 
87    find ${D} -regex ".*\.la$" | xargs rm -f -- 
88    find ${D} -regex ".*\.a$" | xargs rm -f --
89  rm -f ${prefix}/lib/pulse-*/modules/module-*.la
90  
91  
92 }
93
94 pkg_postinst_${PN}() {
95     #!/bin/sh -e
96
97     [ "x$D" == "x" ] && ldconfig
98 }
99
100 pkg_postrm_${PN}() {
101     #!/bin/sh -e
102
103     [ "x$D" == "x" ] && ldconfig
104 }
105
106 PACKAGES = "${PN}-dbg ${PN}-doc ${PN}-locale"
107 PACKAGES += " pulseaudio-module-murphy-ivi "
108
109 pulseaudio-module-murphy-ivi_files = ""
110 pulseaudio-module-murphy-ivi_files += "${prefix}/lib/pulse-*/modules/module-*.so"
111 pulseaudio-module-murphy-ivi_files += "${sysconfdir}/dbus-1/system.d/pulseaudio-murphy-ivi.conf"
112 pulseaudio-module-murphy-ivi_files += "${sysconfdir}/pulse/murphy-ivi.lua"
113 CONFFILES_${PN} = ""
114 CONFFILES_${PN} += "${sysconfdir}/dbus-1/system.d/pulseaudio-murphy-ivi.conf"
115
116 FILES_${PN} = "${pulseaudio-module-murphy-ivi_files}"
117
118 PKG_pulseaudio-module-murphy-ivi= "pulseaudio-module-murphy-ivi"
119
120 require pulseaudio-module-murphy-ivi-extraconf.inc
121