From a7bb571d7f433fba134a463562ec982212953f91 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Fri, 7 Feb 2014 19:35:26 +0100 Subject: fix cross-compile on Darwin --- package/gpsd/Makefile | 8 ++++---- package/gpsd/patches/patch-SConstruct | 12 ++++++++++++ 2 files changed, 16 insertions(+), 4 deletions(-) create mode 100644 package/gpsd/patches/patch-SConstruct 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 -- cgit v1.2.3