summaryrefslogtreecommitdiff
path: root/packages/gpsd/gpsd_2.6.bb
blob: 1bf8d8783795ff53413c15cd4ac45a9c2839b05f (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
DESCRIPTION = "A TCP/IP Daemon simplifying the communication with GPS devices"
SECTION = "network"
PRIORITY = "optional"
MAINTAINER = "Robert Anderson <rea@sr.unh.edu>"
LICENSE = "GPL"
PR = "r1"

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

inherit autotools update-rc.d

INITSCRIPT_NAME = "gpsd"
INITSCRIPT_PARAMS = "defaults 35"

LDFLAGS = "-lm"

do_configure() {
	oe_runconf 
}

do_compile() {
	oe_runmake gpsd gpsd.1 libgps.3 libgpsd.3 gps.h gpsd.h
}

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 () {
	install -d ${D}${sbindir}
	install -d ${D}${mandir}/man1
	install -d ${D}${mandir}/man3
	install -d ${D}${incdir}
	install -d ${D}${libdir}
	install -d ${D}${sysconfdir}/init.d

	install -m 0755 ${S}/.libs/gpsd ${D}${sbindir}
	oe_libinstall -so -C ${S}/.libs libgps ${D}${libdir}
	install -m 755 gpsd.1 ${D}${mandir}/man1/gpsd.1
	install -m 0755 ${S}/libgps.la ${D}${libdir}libgps.la
	install -m 0755 ${S}/gps.h ${S}/gpsd.h ${D}${incdir}
	install -m 755 libgps.3 libgpsd.3 ${D}${mandir}/man3/
	install -m 755 gpsd.init ${D}${sysconfdir}/init.d/gpsd
}

PACKAGES =+ "gpsd-devdoc "
FILES_${PN}-devdoc = "${mandir}/man3 "