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