summaryrefslogtreecommitdiff
path: root/packages/gsm/libgsmd_svn.bb
blob: 4f6fe12766daecaf309146be73dc0f508e7240ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
DESCRIPTION = "GSM libraries and daemons implementing the 07.10 specification"
HOMEPAGE = "http://www.openmoko.org"
LICENSE = "GPL LGPL"
SECTION = "libs/gsm"
PROVIDES += "gsmd"
PV = "0.1+svn${SRCDATE}"
PR = "r19"

SRC_URI_OVERRIDES_PACKAGE_ARCH = "1"

SRC_URI = "svn://svn.openmoko.org/trunk/src/target;module=gsm;proto=http \
           file://fix-mlbuf.patch;patch=1 \
           file://gsmd \
           file://default"
S = "${WORKDIR}/gsm"

inherit autotools pkgconfig update-rc.d

INITSCRIPT_NAME = "gsmd"
INITSCRIPT_PARAMS = "defaults 35"

do_stage() {
    autotools_stage_all
}

do_install_append() {
	install -d ${D}/${sysconfdir}/init.d
	install -m 0755 ${WORKDIR}/gsmd ${D}/${sysconfdir}/init.d/
	install -d ${D}/${sysconfdir}/default
	install ${WORKDIR}/default ${D}/${sysconfdir}/default/gsmd
	# band-aid:
	install -d ${D}${includedir}/common
	install -m 0644 ${S}/include/common/linux_list.h ${D}${includedir}/common
}

# band-aid:
do_stage_append () {
	install -d ${STAGING_INCDIR}/common
	install ${S}/include/common/linux_list.h ${STAGING_INCDIR}/common
}

PACKAGES =+ "${PN}-tools gsmd gsmd-plugins \
             gsmd-plugin-machine-generic gsmd-plugin-machine-tihtc \
             gsmd-plugin-vendor-qc gsmd-plugin-vendor-ti \
             gsmd-plugin-vendor-tihtc"
RDEPENDS_${PN} = "gsmd"
RDEPENDS_gsmd-plugins = "gsmd-plugin-machine-generic \
                         gsmd-plugin-machine-tihtc \
                         gsmd-plugin-vendor-qc \
                         gsmd-plugin-vendor-ti \
                         gsmd-plugin-vendor-tihtc"
RRECOMMENDS_gsmd = "gsmd-plugins"
FILES_${PN}-tools = "${bindir}/*"
FILES_gsmd = "${sbindir}/gsmd ${sysconfdir}"
FILES_gsmd-plugins = ""
FILES_gsmd-plugin-machine-generic = "${libdir}/gsmd/libgsmd-machine_generic.so*"
FILES_gsmd-plugin-machine-tihtc = "${libdir}/gsmd/libgsmd-machine_tihtc.so*"
FILES_gsmd-plugin-vendor-qc = "${libdir}/gsmd/libgsmd-vendor_qc.so*"
FILES_gsmd-plugin-vendor-bcm = "${libdir}/gsmd/libgsmd-vendor_bcm.so*"
FILES_gsmd-plugin-vendor-ti = "${libdir}/gsmd/libgsmd-vendor_ti.so*"
FILES_gsmd-plugin-vendor-tihtc = "${libdir}/gsmd/libgsmd-vendor_tihtc.so*"

PACKAGES_DYNAMIC = "libgsmd* gsmd"

ALLOW_EMPTY_gsmd-plugins = "1"