summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-02-07 19:35:26 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2014-02-07 19:35:26 +0100
commita7bb571d7f433fba134a463562ec982212953f91 (patch)
tree77e944b60a918a2dfa46b871b5c1c7e4bb0d6754
parent4f6040ec25279563206482675b237b5f388f8481 (diff)
fix cross-compile on Darwin
-rw-r--r--package/gpsd/Makefile8
-rw-r--r--package/gpsd/patches/patch-SConstruct12
2 files changed, 16 insertions, 4 deletions
diff --git a/package/gpsd/Makefile b/package/gpsd/Makefile
index 3bed165ab..a161d860f 100644
--- a/package/gpsd/Makefile
+++ b/package/gpsd/Makefile
@@ -4,9 +4,9 @@
include ${TOPDIR}/rules.mk
PKG_NAME:= gpsd
-PKG_VERSION:= 3.9
+PKG_VERSION:= 3.10
PKG_RELEASE:= 1
-PKG_MD5SUM:= 53a88f24a0973d23427e82e9a8914f19
+PKG_MD5SUM:= fc5b03aae38b9b5b6880b31924d0ace3
PKG_DESCR:= An interface daemon for GPS receivers
PKG_SECTION:= misc
PKG_DEPENDS:= libpthread
@@ -27,8 +27,8 @@ BUILD_STYLE:= manual
INSTALL_STYLE:= manual
do-install:
- (cd $(WRKBUILD); PATH='$(TARGET_PATH)' CCFLAGS='' \
- scons install prefix=$(WRKINST)/usr python=no chrpath=no bluez=no usb=no libgpsmm=no)
+ (cd $(WRKBUILD); env PATH='$(TARGET_PATH)' CCFLAGS='' \
+ scons install prefix=$(WRKINST)/usr platform=linux python=no chrpath=no bluez=no usb=no libgpsmm=no)
gpsd-install:
${INSTALL_DIR} ${IDIR_GPSD}/usr/lib ${IDIR_GPSD}/usr/sbin
diff --git a/package/gpsd/patches/patch-SConstruct b/package/gpsd/patches/patch-SConstruct
new file mode 100644
index 000000000..0937d9f67
--- /dev/null
+++ b/package/gpsd/patches/patch-SConstruct
@@ -0,0 +1,12 @@
+--- gpsd-3.10.orig/SConstruct 2013-11-22 14:10:01.000000000 +0100
++++ gpsd-3.10/SConstruct 2014-02-07 19:33:32.000000000 +0100
+@@ -231,6 +231,9 @@ for (name, default, help) in pathopts:
+
+ env['VERSION'] = gpsd_version
+ env['PYTHON'] = sys.executable
++env['PLATFORM'] = "posix"
++env['SHLIBSUFFIX'] = ".so"
++env['SHLINKFLAGS'] = "-shared"
+
+ # Set defaults from environment. Note that scons doesn't cope well
+ # with multi-word CPPFLAGS/LDFLAGS/SHLINKFLAGS values; you'll have to