gpsd: update to 3.4
authorDenis 'GNUtoo' Carikli <GNUtoo@no-log.org>
Thu, 8 Mar 2012 23:07:47 +0000 (00:07 +0100)
committerPatrick Ohly <patrick.ohly@intel.com>
Fri, 9 Jan 2015 16:20:26 +0000 (08:20 -0800)
(From meta-openembedded rev: 38dac2ac3d37b81985646aa9a4908b2a1633f203)

Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@no-log.org>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
meta-openembedded/meta-oe/recipes-navigation/gpsd/gpsd-3.4/60-gpsd.rules [moved from meta-openembedded/meta-oe/recipes-navigation/gpsd/gpsd-2.96/60-gpsd.rules with 100% similarity]
meta-openembedded/meta-oe/recipes-navigation/gpsd/gpsd-3.4/gpsd [moved from meta-openembedded/meta-oe/recipes-navigation/gpsd/gpsd-2.96/gpsd with 100% similarity]
meta-openembedded/meta-oe/recipes-navigation/gpsd/gpsd-3.4/gpsd-default [moved from meta-openembedded/meta-oe/recipes-navigation/gpsd/gpsd-2.96/gpsd-default with 100% similarity]
meta-openembedded/meta-oe/recipes-navigation/gpsd/gpsd-3.4/gpsd.service [moved from meta-openembedded/meta-oe/recipes-navigation/gpsd/gpsd-2.96/gpsd.service with 100% similarity]
meta-openembedded/meta-oe/recipes-navigation/gpsd/gpsd-3.4/gpsd.socket [moved from meta-openembedded/meta-oe/recipes-navigation/gpsd/gpsd-2.96/gpsd.socket with 100% similarity]
meta-openembedded/meta-oe/recipes-navigation/gpsd/gpsd_3.4.bb [moved from meta-openembedded/meta-oe/recipes-navigation/gpsd/gpsd_2.96.bb with 74% similarity]

@@ -2,27 +2,21 @@ DESCRIPTION = "A TCP/IP Daemon simplifying the communication with GPS devices"
 SECTION = "console/network"
 LICENSE = "BSD"
 LIC_FILES_CHKSUM = "file://COPYING;md5=d217a23f408e91c94359447735bc1800"
-DEPENDS = "dbus-glib ncurses python libusb1"
+DEPENDS = "dbus dbus-glib ncurses python libusb1"
 PROVIDES = "virtual/gpsd"
 
-PR = "r3"
+PR = "r0"
 
-EXTRA_OECONF = "--x-includes=${STAGING_INCDIR}/X11 \
-                --x-libraries=${STAGING_LIBDIR} \
-                --enable-dbus \
-                --disable-libQgpsmm \
-"
-
-SRC_URI = "http://download.berlios.de/${PN}/${P}bis.tar.gz;name=gpsd \
+SRC_URI = "http://download.savannah.gnu.org/releases/gpsd/gpsd-${PV}.tar.gz;name=gpsd \
            file://gpsd-default \
            file://gpsd \
            file://gpsd.socket \
            file://gpsd.service \
            file://60-gpsd.rules"
-SRC_URI[gpsd.md5sum] = "52b00cab0fb34bbf1923ae35c7ced6c4"
-SRC_URI[gpsd.sha256sum] = "c6d72565bc06b802c749e69808eb7c6ee165962dc17383971c9001b5e1763690"
+SRC_URI[gpsd.md5sum] = "c01353459faa68834309109d4e868460"
+SRC_URI[gpsd.sha256sum] = "79f7de9ead63c7f5d2c9a92e85b5f82e53323c4d451ef8e27ea265ac3ef9a70f"
 
-inherit autotools update-rc.d python-dir systemd
+inherit scons update-rc.d python-dir systemd
 
 INITSCRIPT_NAME = "gpsd"
 INITSCRIPT_PARAMS = "defaults 35"
@@ -35,22 +29,28 @@ LDFLAGS += "-L${STAGING_LIBDIR} -lm"
 export STAGING_INCDIR
 export STAGING_LIBDIR
 
-TARGET_CC_ARCH += "${LDFLAGS}"
+CC += "${LDFLAGS}"
 
-do_configure_prepend() {
-    # skip first
-    sed -i "s#for pylibpath in '/usr/lib'#for pylibpath in #g" ${S}/configure.ac
-    # disable xmlto, in case xsltproc doesn't work xmlto is used and fails 
-    sed -i "s#AC_CHECK_PROG(WITH_XMLTO#AC_CHECK_PROG(WITH_XMLTO_DISABLED_IN_OE#g" ${S}/configure.ac
-}
+EXTRA_OESCONS = " \
+  libQgpsmm='false' \
+  debug='true' \
+  strip='false' \
+  systemd='true' \
+  pkgconfig='${PKG_CONFIG_DIR}' \
+"
 
 do_compile_prepend() {
+    export LIBPATH="${STAGING_LIBDIR}"
+    export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}"
+    export STAGING_PREFIX="${STAGING_DIR_HOST}/${prefix}"
     export BUILD_SYS="${BUILD_SYS}"
     export HOST_SYS="${HOST_SYS}"
-       find ${S} -name "*.so" -exec rm -f {} \;
 }
 
 do_install_prepend() {
+    export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}"
+    export STAGING_PREFIX="${STAGING_DIR_HOST}/${prefix}"
+
     export BUILD_SYS="${BUILD_SYS}"
     export HOST_SYS="${HOST_SYS}"
 }
@@ -67,7 +67,12 @@ do_install_append() {
     install -d ${D}${base_libdir}/udev/
     install -m 0755 ${S}/gpsd.hotplug ${D}${base_libdir}/udev/
     install -d ${D}${base_libdir}/udev/
-    install -m 0755 ${S}/gpsd.hotplug.wrapper ${D}${base_libdir}/udev/
+
+    #support for python
+    install -d ${D}/${PYTHON_SITEPACKAGES_DIR}/gps
+    for f in ${S}/gps/* ;do
+        install $f ${D}/${PYTHON_SITEPACKAGES_DIR}/gps
+    done
 }
 
 pkg_postinst_${PN}-conf() {
@@ -95,7 +100,7 @@ FILES_libgpsd = "${libdir}/libgpsd.so.*"
 DESCRIPTION_libgps = "C service library used for communicating with gpsd"
 FILES_libgps = "${libdir}/libgps.so.*"
 
-DESCRIPTION_gpsd-conf = "gpsd configuration files and init scripts" 
+DESCRIPTION_gpsd-conf = "gpsd configuration files and init scripts"
 FILES_gpsd-conf = "${sysconfdir}"
 
 DESCRIPTION_gpsd-gpsctl = "Tool for tweaking GPS modes"