diff options
Diffstat (limited to 'meta/packages/gsm/gsmd.inc')
-rw-r--r-- | meta/packages/gsm/gsmd.inc | 96 |
1 files changed, 96 insertions, 0 deletions
diff --git a/meta/packages/gsm/gsmd.inc b/meta/packages/gsm/gsmd.inc new file mode 100644 index 0000000000..4ce23d51f5 --- /dev/null +++ b/meta/packages/gsm/gsmd.inc | |||
@@ -0,0 +1,96 @@ | |||
1 | DESCRIPTION = "GSM libraries and daemons implementing the 07.10 specification" | ||
2 | HOMEPAGE = "http://www.openmoko.org" | ||
3 | LICENSE = "GPL LGPL" | ||
4 | SECTION = "libs/gsm" | ||
5 | PROVIDES += "gsmd" | ||
6 | RPROVIDES_${PN} = "libgsmd0 libgsmd gsmd gsmd-devel" | ||
7 | PV = "0.1+svnr${SRCREV}" | ||
8 | PR = "r44" | ||
9 | |||
10 | SRC_URI = "svn://svn.openmoko.org/trunk/src/target;module=gsm;proto=http \ | ||
11 | file://gsmd \ | ||
12 | file://default" | ||
13 | S = "${WORKDIR}/gsm" | ||
14 | |||
15 | inherit autotools pkgconfig update-rc.d | ||
16 | # handle update-rc.d RDEPENDS manually, we don't need it on | ||
17 | # anything but gsmd | ||
18 | RDEPENDS_append = "" | ||
19 | |||
20 | INITSCRIPT_NAME = "gsmd" | ||
21 | INITSCRIPT_PARAMS = "defaults 35" | ||
22 | |||
23 | do_stage() { | ||
24 | autotools_stage_all | ||
25 | } | ||
26 | |||
27 | do_install_append() { | ||
28 | install -d ${D}/${sysconfdir}/init.d | ||
29 | install -m 0755 ${WORKDIR}/gsmd ${D}/${sysconfdir}/init.d/ | ||
30 | install -d ${D}/${sysconfdir}/default | ||
31 | install ${WORKDIR}/default ${D}/${sysconfdir}/default/gsmd | ||
32 | } | ||
33 | |||
34 | PACKAGES =+ "\ | ||
35 | ${PN}-tools \ | ||
36 | ${BASEPN}-plugins \ | ||
37 | ${BASEPN}-plugin-machine-generic \ | ||
38 | ${BASEPN}-plugin-machine-tihtc \ | ||
39 | ${BASEPN}-plugin-machine-gta01 \ | ||
40 | ${BASEPN}-plugin-vendor-bcm \ | ||
41 | ${BASEPN}-plugin-vendor-qc \ | ||
42 | ${BASEPN}-plugin-vendor-ti \ | ||
43 | ${BASEPN}-plugin-vendor-tihtc \ | ||
44 | " | ||
45 | |||
46 | ALLOW_EMPTY_${BASEPN}-plugin-machine-gta01 = "1" | ||
47 | |||
48 | RDEPENDS_${BASEPN}-plugins = "\ | ||
49 | ${BASEPN}-plugin-machine-generic \ | ||
50 | ${BASEPN}-plugin-machine-tihtc \ | ||
51 | ${BASEPN}-plugin-machine-gta01 \ | ||
52 | ${BASEPN}-plugin-vendor-bcm \ | ||
53 | ${BASEPN}-plugin-vendor-qc \ | ||
54 | ${BASEPN}-plugin-vendor-ti \ | ||
55 | ${BASEPN}-plugin-vendor-tihtc \ | ||
56 | " | ||
57 | |||
58 | RDEPENDS_${PN} += "update-rc.d initscripts" | ||
59 | RRECOMMENDS_${PN} += "${BASEPN}-plugins" | ||
60 | |||
61 | FILES_${PN}-dbg += "${libdir}/gsmd/.debug/*" | ||
62 | FILES_${PN}-tools = "${bindir}/*" | ||
63 | FILES_${BASEPN}-plugins = "" | ||
64 | FILES_${BASEPN}-plugin-machine-generic = "${libdir}/gsmd/libgsmd-machine_generic.so*" | ||
65 | FILES_${BASEPN}-plugin-machine-tihtc = "${libdir}/gsmd/libgsmd-machine_tihtc.so*" | ||
66 | FILES_${BASEPN}-plugin-machine-gta01 = "${libdir}/gsmd/libgsmd-machine_gta01.so*" | ||
67 | FILES_${BASEPN}-plugin-vendor-qc = "${libdir}/gsmd/libgsmd-vendor_qc.so*" | ||
68 | FILES_${BASEPN}-plugin-vendor-bcm = "${libdir}/gsmd/libgsmd-vendor_bcm.so*" | ||
69 | FILES_${BASEPN}-plugin-vendor-ti = "${libdir}/gsmd/libgsmd-vendor_ti.so*" | ||
70 | FILES_${BASEPN}-plugin-vendor-tihtc = "${libdir}/gsmd/libgsmd-vendor_tihtc.so*" | ||
71 | |||
72 | PACKAGES_DYNAMIC = "lib${BASEPN}* ${BASEPN}" | ||
73 | |||
74 | ALLOW_EMPTY_${BASEPN}-plugins = "1" | ||
75 | |||
76 | RCONFLICTS_lib${BASEPN} = "lib${CONFLICTNAME}" | ||
77 | RCONFLICTS_${BASEPN} = "${CONFLICTNAME}" | ||
78 | RCONFLICTS_${BASEPN}-plugins = "${CONFLICTNAME}-plugins" | ||
79 | RCONFLICTS_${BASEPN}-plugin-machine-generic = "${CONFLICTNAME}-plugin-machine-generic" | ||
80 | RCONFLICTS_${BASEPN}-plugin-machine-tihtc = "${CONFLICTNAME}-plugin-machine-tihtc" | ||
81 | RCONFLICTS_${BASEPN}-plugin-machine-gta01 = "${CONFLICTNAME}-plugin-machine-gta01" | ||
82 | RCONFLICTS_${BASEPN}-plugin-vendor-qc = "${CONFLICTNAME}-plugin-vendor-qc" | ||
83 | RCONFLICTS_${BASEPN}-plugin-vendor-bcm = "${CONFLICTNAME}-plugin-vendor-bcm" | ||
84 | RCONFLICTS_${BASEPN}-plugin-vendor-ti = "${CONFLICTNAME}-plugin-vendor-ti" | ||
85 | RCONFLICTS_${BASEPN}-plugin-vendor-tihtc = "${CONFLICTNAME}-plugin-vendor-tihtc" | ||
86 | |||
87 | RPROVIDES_lib${BASEPN} += "lib${CONFLICTNAME}" | ||
88 | RPROVIDES_${BASEPN} = "${CONFLICTNAME}" | ||
89 | RPROVIDES_${BASEPN}-plugins = "${CONFLICTNAME}-plugins" | ||
90 | RPROVIDES_${BASEPN}-plugin-machine-generic = "${CONFLICTNAME}-plugin-machine-generic" | ||
91 | RPROVIDES_${BASEPN}-plugin-machine-tihtc = "${CONFLICTNAME}-plugin-machine-tihtc" | ||
92 | RPROVIDES_${BASEPN}-plugin-machine-gta01 = "${CONFLICTNAME}-plugin-machine-gta01" | ||
93 | RPROVIDES_${BASEPN}-plugin-vendor-qc = "${CONFLICTNAME}-plugin-vendor-qc" | ||
94 | RPROVIDES_${BASEPN}-plugin-vendor-bcm = "${CONFLICTNAME}-plugin-vendor-bcm" | ||
95 | RPROVIDES_${BASEPN}-plugin-vendor-ti = "${CONFLICTNAME}-plugin-vendor-ti" | ||
96 | RPROVIDES_${BASEPN}-plugin-vendor-tihtc = "${CONFLICTNAME}-plugin-vendor-tihtc" | ||