summaryrefslogtreecommitdiff
path: root/packages/gpsd/gpsd_2.16.bb
blob: a024351609b8dc3076b0305a839f0eba91b84464 (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
DESCRIPTION = "A TCP/IP Daemon simplifying the communication with GPS devices"
SECTION = "network"
PRIORITY = "optional"
MAINTAINER = "Jose Bernardo Silva <jbs@bandos.homelinux.com> \
		Robert Anderson <rea@sr.unh.edu> \
		Stephan Zalewski <stephan.zalewski@uni-dusseldorf.de>"
LICENSE = "GPL"

SRC_URI = "http://download.berlios.de/gpsd/gpsd-${PV}.tar.gz \
	file://gpsd"

inherit autotools update-rc.d

INITSCRIPT_NAME = "gpsd"
INITSCRIPT_PARAMS = "defaults 35"

LDFLAGS = -lm

do_stage () {
        oe_libinstall -so -C ${S}/.libs libgps ${STAGING_LIBDIR}
        install -m 0655 ${S}/libgps.la ${STAGING_LIBDIR}
        install -m 0655 ${S}/gps.h ${STAGING_INCDIR}
        install -m 0655 ${S}/gpsd.h ${STAGING_INCDIR}
}

do_install_append () {
        install -d ${D}/${sysconfdir}/init.d
        install -d ${D}/dev
        install -m 0755 ${WORKDIR}/gpsd ${D}/${sysconfdir}/init.d/
	ln -sf /dev/ttyS3 ${D}/dev/gps
}

FILES_gpsd =+ "/dev/gps ${sysconfdir}/inid.d/gpsd"
PACKAGES =+ "libgps"
FILES_libgps = "${libdir}"