diff options
| author | Denis 'GNUtoo' Carikli <GNUtoo@no-log.org> | 2012-08-07 11:08:50 +0200 |
|---|---|---|
| committer | Martin Jansa <Martin.Jansa@gmail.com> | 2012-08-20 10:02:09 +0200 |
| commit | 334b5198e12e95f69af4772c0c2f8e512d63451b (patch) | |
| tree | 9e49c0acbb06b0c5ea5dc4cd17fe366f8e1204fe /meta-oe/recipes-navigation/gpsd/gpsd_3.5.bb | |
| parent | 5fd2b71ccab54b0717ebed21869754de16bd3608 (diff) | |
| download | meta-openembedded-334b5198e12e95f69af4772c0c2f8e512d63451b.tar.gz | |
gpsd: update to 3.7, drop older 3.5 and git recipe
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@no-log.org>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/recipes-navigation/gpsd/gpsd_3.5.bb')
| -rw-r--r-- | meta-oe/recipes-navigation/gpsd/gpsd_3.5.bb | 123 |
1 files changed, 0 insertions, 123 deletions
diff --git a/meta-oe/recipes-navigation/gpsd/gpsd_3.5.bb b/meta-oe/recipes-navigation/gpsd/gpsd_3.5.bb deleted file mode 100644 index 1e3ac0cfe2..0000000000 --- a/meta-oe/recipes-navigation/gpsd/gpsd_3.5.bb +++ /dev/null | |||
| @@ -1,123 +0,0 @@ | |||
| 1 | DESCRIPTION = "A TCP/IP Daemon simplifying the communication with GPS devices" | ||
| 2 | SECTION = "console/network" | ||
| 3 | LICENSE = "BSD" | ||
| 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=d217a23f408e91c94359447735bc1800" | ||
| 5 | DEPENDS = "dbus dbus-glib ncurses python libusb1 chrpath-native" | ||
| 6 | PROVIDES = "virtual/gpsd" | ||
| 7 | |||
| 8 | PR = "r5" | ||
| 9 | |||
| 10 | SRC_URI = "http://download.savannah.gnu.org/releases/${PN}/${P}.tar.gz \ | ||
| 11 | file://0001-SConstruct-respect-sysroot-setting-when-prepending-L.patch \ | ||
| 12 | file://0002-SConstruct-respect-sysroot-also-in-SPLINTOPTS.patch \ | ||
| 13 | file://0003-Revert-The-strptime-prototype-is-not-provided-unless.patch \ | ||
| 14 | file://0004-SConstruct-remove-rpath.patch \ | ||
| 15 | file://0001-SConstruct-prefix-includepy-with-sysroot-and-drop-sy.patch \ | ||
| 16 | file://0001-SConstruct-disable-html-and-man-docs-building-becaus.patch \ | ||
| 17 | file://gpsd-default \ | ||
| 18 | file://gpsd \ | ||
| 19 | file://60-gpsd.rules \ | ||
| 20 | " | ||
| 21 | SRC_URI[md5sum] = "e96881798a0ab67aa3cd5f3249f0e536" | ||
| 22 | SRC_URI[sha256sum] = "5ebb0b00c49421eb8fbead81342e5ce63e82065e5ff27da586f10e342b999171" | ||
| 23 | |||
| 24 | inherit scons update-rc.d python-dir pythonnative | ||
| 25 | |||
| 26 | INITSCRIPT_NAME = "gpsd" | ||
| 27 | INITSCRIPT_PARAMS = "defaults 35" | ||
| 28 | |||
| 29 | SYSTEMD_OESCONS ??= "false" | ||
| 30 | |||
| 31 | export STAGING_INCDIR | ||
| 32 | export STAGING_LIBDIR | ||
| 33 | |||
| 34 | EXTRA_OESCONS = " \ | ||
| 35 | sysroot=${STAGING_DIR_TARGET} \ | ||
| 36 | libQgpsmm='false' \ | ||
| 37 | debug='true' \ | ||
| 38 | strip='false' \ | ||
| 39 | systemd='${SYSTEMD_OESCONS}' \ | ||
| 40 | " | ||
| 41 | # this cannot be used, because then chrpath is not found and only static lib is built | ||
| 42 | # target=${HOST_SYS} | ||
| 43 | |||
| 44 | do_compile_prepend() { | ||
| 45 | export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}" | ||
| 46 | export PKG_CONFIG="PKG_CONFIG_SYSROOT_DIR=\"${PKG_CONFIG_SYSROOT_DIR}\" pkg-config" | ||
| 47 | export STAGING_PREFIX="${STAGING_DIR_HOST}/${prefix}" | ||
| 48 | |||
| 49 | export BUILD_SYS="${BUILD_SYS}" | ||
| 50 | export HOST_SYS="${HOST_SYS}" | ||
| 51 | } | ||
| 52 | |||
| 53 | do_install() { | ||
| 54 | export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}" | ||
| 55 | export PKG_CONFIG="PKG_CONFIG_SYSROOT_DIR=\"${PKG_CONFIG_SYSROOT_DIR}\" pkg-config" | ||
| 56 | export STAGING_PREFIX="${STAGING_DIR_HOST}/${prefix}" | ||
| 57 | |||
| 58 | export BUILD_SYS="${BUILD_SYS}" | ||
| 59 | export HOST_SYS="${HOST_SYS}" | ||
| 60 | |||
| 61 | export DESTDIR="${D}" | ||
| 62 | # prefix is used for RPATH and DESTDIR/prefix for instalation | ||
| 63 | ${STAGING_BINDIR_NATIVE}/scons prefix=${prefix} install ${EXTRA_OESCONS}|| \ | ||
| 64 | bbfatal "scons install execution failed." | ||
| 65 | } | ||
| 66 | |||
| 67 | do_install_append() { | ||
| 68 | install -d ${D}/${sysconfdir}/init.d | ||
| 69 | install -m 0755 ${WORKDIR}/gpsd ${D}/${sysconfdir}/init.d/ | ||
| 70 | install -d ${D}/${sysconfdir}/default | ||
| 71 | install -m 0644 ${WORKDIR}/gpsd-default ${D}/${sysconfdir}/default/gpsd.default | ||
| 72 | |||
| 73 | #support for udev | ||
| 74 | install -d ${D}/${sysconfdir}/udev/rules.d | ||
| 75 | install -m 0644 ${WORKDIR}/60-gpsd.rules ${D}/${sysconfdir}/udev/rules.d | ||
| 76 | install -d ${D}${base_libdir}/udev/ | ||
| 77 | install -m 0755 ${S}/gpsd.hotplug ${D}${base_libdir}/udev/ | ||
| 78 | |||
| 79 | #support for python | ||
| 80 | install -d ${D}/${PYTHON_SITEPACKAGES_DIR}/gps | ||
| 81 | install -m 755 ${S}/gps/*.py ${D}/${PYTHON_SITEPACKAGES_DIR}/gps | ||
| 82 | } | ||
| 83 | |||
| 84 | pkg_postinst_${PN}-conf() { | ||
| 85 | update-alternatives --install ${sysconfdir}/default/gpsd gpsd-defaults ${sysconfdir}/default/gpsd.default 10 | ||
| 86 | } | ||
| 87 | |||
| 88 | pkg_postrm_${PN}-conf() { | ||
| 89 | update-alternatives --remove gpsd-defaults ${sysconfdir}/default/gpsd.default | ||
| 90 | } | ||
| 91 | |||
| 92 | PACKAGES =+ "libgps libgpsd python-pygps-dbg python-pygps gpsd-udev gpsd-conf gpsd-gpsctl gps-utils" | ||
| 93 | |||
| 94 | FILES_gpsd-dev += "${libdir}/pkgconfdir/libgpsd.pc ${libdir}/pkgconfdir/libgps.pc" | ||
| 95 | |||
| 96 | FILES_python-pygps-dbg += " ${libdir}/python*/site-packages/gps/.debug" | ||
| 97 | |||
| 98 | RDEPENDS_${PN} = "gpsd-gpsctl" | ||
| 99 | RRECOMMENDS_${PN} = "gpsd-conf gpsd-udev" | ||
| 100 | |||
| 101 | DESCRIPTION_gpsd-udev = "udev relevant files to use gpsd hotplugging" | ||
| 102 | FILES_gpsd-udev = "${base_libdir}/udev ${sysconfdir}/udev/*" | ||
| 103 | RDEPENDS_gpsd-udev += "udev gpsd-conf" | ||
| 104 | |||
| 105 | DESCRIPTION_libgpsd = "C service library used for communicating with gpsd" | ||
| 106 | FILES_libgpsd = "${libdir}/libgpsd.so.*" | ||
| 107 | |||
| 108 | DESCRIPTION_libgps = "C service library used for communicating with gpsd" | ||
| 109 | FILES_libgps = "${libdir}/libgps.so.*" | ||
| 110 | |||
| 111 | DESCRIPTION_gpsd-conf = "gpsd configuration files and init scripts" | ||
| 112 | FILES_gpsd-conf = "${sysconfdir}" | ||
| 113 | |||
| 114 | DESCRIPTION_gpsd-gpsctl = "Tool for tweaking GPS modes" | ||
| 115 | FILES_gpsd-gpsctl = "${bindir}/gpsctl" | ||
| 116 | |||
| 117 | DESCRIPTION_gps-utils = "Utils used for simulating, monitoring,... a GPS" | ||
| 118 | FILES_gps-utils = "${bindir}/*" | ||
| 119 | RDEPENDS_gps-utils = "python-pygps" | ||
| 120 | |||
| 121 | DESCRIPTION_python-pygps = "Python bindings to gpsd" | ||
| 122 | FILES_python-pygps = "${PYTHON_SITEPACKAGES_DIR}/*" | ||
| 123 | RDEPENDS_python-pygps = "python-core python-curses gpsd python-json" | ||
