[135710] trunk/dports/net/gpsd
ryandesign at macports.org
ryandesign at macports.org
Thu Apr 30 03:01:01 PDT 2015
Revision: 135710
https://trac.macports.org/changeset/135710
Author: ryandesign at macports.org
Date: 2015-04-30 03:01:00 -0700 (Thu, 30 Apr 2015)
Log Message:
-----------
gpsd: fix endian checks to work on Mac OS X 10.5 and earlier (#45570)
Modified Paths:
--------------
trunk/dports/net/gpsd/Portfile
Added Paths:
-----------
trunk/dports/net/gpsd/files/patch-driver_rtcm2.c.diff
Modified: trunk/dports/net/gpsd/Portfile
===================================================================
--- trunk/dports/net/gpsd/Portfile 2015-04-30 08:40:26 UTC (rev 135709)
+++ trunk/dports/net/gpsd/Portfile 2015-04-30 10:01:00 UTC (rev 135710)
@@ -31,6 +31,7 @@
depends_build-append port:scons
patchfiles patch-SConstruct.diff \
+ patch-driver_rtcm2.c.diff \
patch-libgps.pc.in.diff \
patch-libgpsd.pc.in.diff \
leopard-IPV6_TCLASS.patch
@@ -58,9 +59,7 @@
destroot.env-append {*}${destroot.destdir} {*}${build.env}
post-destroot {
- foreach lib {gps gpsd} {
- copy ${worksrcpath}/lib${lib}.dylib ${destroot}${prefix}/lib
- }
+ xinstall -m 644 -W ${worksrcpath} libgps.dylib libgpsd.dylib ${destroot}${prefix}/lib
}
variant qt description {Build Qt bindings} {
Added: trunk/dports/net/gpsd/files/patch-driver_rtcm2.c.diff
===================================================================
--- trunk/dports/net/gpsd/files/patch-driver_rtcm2.c.diff (rev 0)
+++ trunk/dports/net/gpsd/files/patch-driver_rtcm2.c.diff 2015-04-30 10:01:00 UTC (rev 135710)
@@ -0,0 +1,42 @@
+--- driver_rtcm2.c.orig 2015-03-02 04:40:06.000000000 -0600
++++ driver_rtcm2.c 2015-04-30 04:45:19.000000000 -0500
+@@ -88,19 +88,6 @@
+ #endif
+
+ /*
+- * BSD uses _BYTE_ORDER, and Linux uses __BYTE_ORDER.
+- */
+-#if !defined( __BYTE_ORDER) && defined(_BYTE_ORDER)
+-#define __BYTE_ORDER _BYTE_ORDER
+-#endif
+-#if !defined( __BIG_ENDIAN) && defined(_BIG_ENDIAN)
+-#define __BIG_ENDIAN _BIG_ENDIAN
+-#endif
+-#if !defined( __LITTLE_ENDIAN) && defined(_LITTLE_ENDIAN)
+-#define __LITTLE_ENDIAN _LITTLE_ENDIAN
+-#endif
+-
+-/*
+ * Darwin (Mac OS X) uses special defines.
+ */
+ #if !defined( __BYTE_ORDER) && defined(__DARWIN_BYTE_ORDER)
+@@ -113,6 +100,19 @@
+ #define __LITTLE_ENDIAN __DARWIN_LITTLE_ENDIAN
+ #endif
+
++/*
++ * BSD uses _BYTE_ORDER, and Linux uses __BYTE_ORDER.
++ */
++#if !defined( __BYTE_ORDER) && defined(_BYTE_ORDER)
++#define __BYTE_ORDER _BYTE_ORDER
++#endif
++#if !defined( __BIG_ENDIAN) && defined(_BIG_ENDIAN)
++#define __BIG_ENDIAN _BIG_ENDIAN
++#endif
++#if !defined( __LITTLE_ENDIAN) && defined(_LITTLE_ENDIAN)
++#define __LITTLE_ENDIAN _LITTLE_ENDIAN
++#endif
++
+ #if !defined(__BYTE_ORDER) || !defined(__BIG_ENDIAN) || !defined(__LITTLE_ENDIAN)
+ #error endianness macros are not defined
+ #endif
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150430/8c9eecfb/attachment.html>
More information about the macports-changes
mailing list