1 DESCRIPTION = "A TCP/IP Daemon simplifying the communication with GPS devices"
2 SECTION = "console/network"
5 DEPENDS = "dbus-glib ncurses python"
6 RDEPENDS_${PN} = "gpsd-conf gpsd-gpsctl"
8 EXTRA_OECONF = "--x-includes=${STAGING_INCDIR}/X11 \
9 --x-libraries=${STAGING_LIBDIR} \
13 SRC_URI = "http://download.berlios.de/gpsd/gpsd-${PV}.tar.gz \
18 SRC_URI_append_om-gta01 = " \
19 file://restart_gllin.sh \
22 inherit autotools update-rc.d
24 INITSCRIPT_NAME = "gpsd"
25 INITSCRIPT_PARAMS = "defaults 35"
27 export LDFLAGS = "-L${STAGING_LIBDIR} -lm"
29 do_compile_prepend() {
30 export BUILD_SYS="${BUILD_SYS}"
31 export HOST_SYS="${HOST_SYS}"
32 find ${S} -name "*.so" -exec rm -f {} \;
35 do_install_prepend() {
36 export BUILD_SYS="${BUILD_SYS}"
37 export HOST_SYS="${HOST_SYS}"
41 oe_libinstall -so libgps ${STAGING_LIBDIR}
42 install -m 0644 ${S}/gps.h ${STAGING_INCDIR}
43 install -m 0644 ${S}/gpsd.h ${STAGING_INCDIR}
47 install -d ${D}/${sysconfdir}/init.d
49 install -m 0755 ${WORKDIR}/gpsd ${D}/${sysconfdir}/init.d/
50 install -m 0755 ${WORKDIR}/gps-hardware ${D}/${sysconfdir}/init.d/gps-hardware.default
51 install -d ${D}/${sysconfdir}/default
52 install -m 0644 ${WORKDIR}/gpsd-default ${D}/${sysconfdir}/default/gpsd.default
55 do_install_append_om-gta01() {
56 install -d ${D}/${sysconfdir}/apm/resume.d
57 install -m 755 ${WORKDIR}/restart_gllin.sh ${D}/${sysconfdir}/apm/resume.d
60 pkg_postinst_${PN}-conf() {
61 update-alternatives --install ${sysconfdir}/default/gpsd gpsd-defaults ${sysconfdir}/default/gpsd.default 10
62 update-alternatives --install ${sysconfdir}/init.d/gps-hardware gps-hardware ${sysconfdir}/init.d/gps-hardware.default 10
65 pkg_postrm_${PN}-conf() {
66 update-alternatives --remove gpsd-defaults ${sysconfdir}/default/gpsd.default
67 update-alternatives --remove gps-hardware ${sysconfdir}/init.d/gps-hardware.default
70 SRC_URI_OVERRIDES_PACKAGE_ARCH = "0"
72 PACKAGES =+ "libgps python-pygps gpsd-conf gpsd-gpsctl gps-utils"
74 PACKAGE_ARCH_gpsd-conf = "${MACHINE_ARCH}"
76 FILES_libgps = "${libdir}/*.so.*"
77 FILES_gpsd-conf = "${sysconfdir}"
78 FILES_gpsd-gpsctl = "${bindir}/gpsctl"
79 FILES_gps-utils = "${bindir}/*"
80 # might split them up even more fine granular
81 RDEPENDS_gps-utils = "python-pygps"
83 DESCRIPTION_python-pygps = "Python bindings to gpsd"
84 FILES_python-pygps = "${libdir}/*/site-packages/*"
85 RDEPENDS_python-pygps = "python-core python-curses gpsd"