summaryrefslogtreecommitdiff
path: root/packages/gpsd/gpsd_2.6.bb
blob: e89d77592825d83d0fd6b77a5c557c3594a7f1d5 (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 = "net"
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}/${datadir}/man/man1
	install -d ${D}/${datadir}/man/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}/usr/share/man/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}/${datadir}/man/man3/
	install -m 755 gpsd.init ${D}${sysconfdir}/init.d/gpsd
}

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