[51805] trunk/dports/devel/libical
jonas at macports.org
jonas at macports.org
Wed Jun 3 12:56:10 PDT 2009
Revision: 51805
http://trac.macports.org/changeset/51805
Author: jonas at macports.org
Date: 2009-06-03 12:56:08 -0700 (Wed, 03 Jun 2009)
Log Message:
-----------
fixed bswap macros, closing #19821
Modified Paths:
--------------
trunk/dports/devel/libical/Portfile
Added Paths:
-----------
trunk/dports/devel/libical/files/
trunk/dports/devel/libical/files/patch-src-libical-icaltz-util.c.diff
Modified: trunk/dports/devel/libical/Portfile
===================================================================
--- trunk/dports/devel/libical/Portfile 2009-06-03 18:53:52 UTC (rev 51804)
+++ trunk/dports/devel/libical/Portfile 2009-06-03 19:56:08 UTC (rev 51805)
@@ -5,6 +5,7 @@
name libical
version 0.43
+revision 1
categories devel
maintainers fs.ei.tum.de:jonas openmaintainer
description An implementation of iCalendar protocols and data formats
@@ -15,6 +16,8 @@
checksums md5 5f0a1feb60894d0be537aefea5647474 \
sha1 a972fa876b3b9834a6e8102b7e2a670f73091cdf \
rmd160 a0a79aec38970c5d694a3e9065a4cb7746b31fea
+
+patchfiles patch-src-libical-icaltz-util.c.diff
post-configure {
reinplace "s|CC -dynamiclib|CC ${configure.universal_ldflags} -dynamiclib|g" ${worksrcpath}/libtool
Added: trunk/dports/devel/libical/files/patch-src-libical-icaltz-util.c.diff
===================================================================
--- trunk/dports/devel/libical/files/patch-src-libical-icaltz-util.c.diff (rev 0)
+++ trunk/dports/devel/libical/files/patch-src-libical-icaltz-util.c.diff 2009-06-03 19:56:08 UTC (rev 51805)
@@ -0,0 +1,44 @@
+--- src/libical/icaltz-util.c.orig 2009-01-08 08:50:21.000000000 -0800
++++ src/libical/icaltz-util.c 2009-05-30 20:24:36.000000000 -0700
+@@ -41,26 +41,26 @@
+ # endif
+ # ifdef HAVE_ENDIAN_H
+ # include <endian.h>
+ # endif
++# if !defined(HAVE_BYTESWAP_H) && !defined(HAVE_SYS_ENDIAN_H) && !defined(HAVE_ENDIAN_H)
++# define bswap_16(x) (((x) << 8) & 0xff00) | (((x) >> 8 ) & 0xff)
++# define bswap_32(x) (((x) << 24) & 0xff000000) \
++ | (((x) << 8) & 0xff0000) \
++ | (((x) >> 8) & 0xff00) \
++ | (((x) >> 24) & 0xff )
++# define bswap_64(x) ((((x) & 0xff00000000000000ull) >> 56) \
++ | (((x) & 0x00ff000000000000ull) >> 40) \
++ | (((x) & 0x0000ff0000000000ull) >> 24) \
++ | (((x) & 0x000000ff00000000ull) >> 8) \
++ | (((x) & 0x00000000ff000000ull) << 8) \
++ | (((x) & 0x0000000000ff0000ull) << 24) \
++ | (((x) & 0x000000000000ff00ull) << 40) \
++ | (((x) & 0x00000000000000ffull) << 56))
++# endif
+ #endif
+
+ #ifdef WIN32
+-#if !defined(HAVE_BYTESWAP_H) && !defined(HAVE_SYS_ENDIAN_H) && !defined(HAVE_ENDIAN_H)
+-#define bswap_16(x) (((x) << 8) & 0xff00) | (((x) >> 8 ) & 0xff)
+-#define bswap_32(x) (((x) << 24) & 0xff000000) \
+- | (((x) << 8) & 0xff0000) \
+- | (((x) >> 8) & 0xff00) \
+- | (((x) >> 24) & 0xff )
+-#define bswap_64(x) ((((x) & 0xff00000000000000ull) >> 56) \
+- | (((x) & 0x00ff000000000000ull) >> 40) \
+- | (((x) & 0x0000ff0000000000ull) >> 24) \
+- | (((x) & 0x000000ff00000000ull) >> 8) \
+- | (((x) & 0x00000000ff000000ull) << 8) \
+- | (((x) & 0x0000000000ff0000ull) << 24) \
+- | (((x) & 0x000000000000ff00ull) << 40) \
+- | (((x) & 0x00000000000000ffull) << 56))
+-#endif
+ #include <io.h>
+ #endif
+
+ #ifndef PATH_MAX
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090603/8fceb354/attachment-0001.html>
More information about the macports-changes
mailing list