Magellan Linux

Contents of /smage/branches/alx-0_6_0/extras/citrix-plugin-speechmike/citrix-plugin-speechmike-0.4.2-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4911 - (show annotations) (download)
Wed May 29 09:29:39 2013 UTC (11 years ago) by niro
File size: 1885 byte(s)
-fixed missing include
1 # $Id$
2
3 PNAME="citrix-plugin-speechmike"
4 PVER="0.4.2"
5 PBUILD="r1"
6
7 SPLIT_PACKAGES="speechmike-config-tools citrix-plugin-speechmike"
8
9 PCATEGORIE="net-misc"
10 HOMEPAGE="http://magellan-linux.de"
11
12 CONFIG_DEPEND=">= virtual/glibc"
13 PLUGIN_DEPEND=">= media-libs/alsa-lib-1.0.27
14 >= net-misc/ica-client-11
15 >= sys-apps/dbus-1.5"
16 SDEPEND="${CONFIG_DEPEND}
17 ${PLUGIN_DEPEND}"
18
19 SRCFILE="${PNAME}-${PVER}.tar.bz2"
20 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
21
22 sminclude mbuild mtools alx
23
24 SRC_URI=( mirror://${PNAME}/${SRCFILE} )
25
26 UP2DATE="echo ${PVER}"
27
28 split_info_speechmike-config-tools()
29 {
30 DESCRIPTION="Philips SpeechMike config helper tools."
31 DEPEND="${CONFIG_DEPEND}"
32 }
33
34 split_info_citrix-plugin-speechmike()
35 {
36 DESCRIPTION="Philips SpeechMike Driver and SDK for Citrix."
37 DEPEND="== ${PCATEGORIE}/speechmike-config-tools-${PVER}
38 ${PLUGIN_DEPEND}"
39 }
40
41 src_compile()
42 {
43 cd ${SRCDIR}
44 mmake ICAROOTDIR=/opt/ica-client || die
45 }
46
47 src_install_speechmike-config-tools()
48 {
49 cd ${SRCDIR}
50 mmake ICAROOTDIR=/opt/ica-client DESTDIR=${BINDIR} install-config-tools || die
51 }
52
53 src_install_citrix-plugin-speechmike()
54 {
55 cd ${SRCDIR}
56 mmake ICAROOTDIR=/opt/ica-client SYSTEMINIT=sysvinit DESTDIR=${BINDIR} install || die
57
58 # remove config tools
59 rm ${BINDIR}/usr/bin/nuainitool || die
60 rm ${BINDIR}/usr/bin/speechmike-config || die
61 }
62
63 preinstall_citrix-plugin-speechmike()
64 {
65 add_conf_prot_mask /etc/rc.d/init.d /etc/modprobe.d
66 }
67
68 postinstall_citrix-plugin-speechmike()
69 {
70 if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]]
71 then
72 [[ -x /usr/bin/speechmike-config ]] && /usr/bin/speechmike-config install
73 fi
74 mstartservice dpmmountd DPMMountd
75 }
76
77 postremove_citrix-plugin-speechmike()
78 {
79 if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]]
80 then
81 # do nothing on update
82 [[ -x /usr/sbin/DPMMountd ]] && return
83 [[ -x /usr/bin/speechmike-config ]] && /usr/bin/speechmike-config remove
84 fi
85 mstopservice dpmmountd DPMMountd
86 }