[31206] trunk/dports/games/fortune
afb at macports.org
afb at macports.org
Sun Nov 18 02:13:35 PST 2007
Revision: 31206
http://trac.macosforge.org/projects/macports/changeset/31206
Author: afb at macports.org
Date: 2007-11-18 02:13:34 -0800 (Sun, 18 Nov 2007)
Log Message:
-----------
fix building on leopard, and probably panther too (#13020)
Modified Paths:
--------------
trunk/dports/games/fortune/Portfile
trunk/dports/games/fortune/files/patch-fortune.c
trunk/dports/games/fortune/files/patch-strfile.c
trunk/dports/games/fortune/files/patch-unstr.c
Added Paths:
-----------
trunk/dports/games/fortune/files/patch-strfile.h
Modified: trunk/dports/games/fortune/Portfile
===================================================================
--- trunk/dports/games/fortune/Portfile 2007-11-18 10:10:42 UTC (rev 31205)
+++ trunk/dports/games/fortune/Portfile 2007-11-18 10:13:34 UTC (rev 31206)
@@ -22,7 +22,8 @@
patchfiles \
patch-fortune-Makefile patch-strfile-Makefile \
- patch-unstr-Makefile patch-datfiles-Makefile
+ patch-unstr-Makefile patch-datfiles-Makefile \
+ patch-strfile.h
configure {
reinplace "s|/usr|${prefix}|" ${worksrcpath}/fortune/pathnames.h
Modified: trunk/dports/games/fortune/files/patch-fortune.c
===================================================================
--- trunk/dports/games/fortune/files/patch-fortune.c 2007-11-18 10:10:42 UTC (rev 31205)
+++ trunk/dports/games/fortune/files/patch-fortune.c 2007-11-18 10:13:34 UTC (rev 31206)
@@ -19,7 +19,7 @@
# include <sys/endian.h>
+#elif defined(__APPLE__) && defined(__MACH__)
+# include <machine/endian.h>
-+# define be32toh OSSwapBigToHostInt32
++# define be32toh ntohl
+#else
+# include <netinet/in.h>
+# define be32toh ntohl
Modified: trunk/dports/games/fortune/files/patch-strfile.c
===================================================================
--- trunk/dports/games/fortune/files/patch-strfile.c 2007-11-18 10:10:42 UTC (rev 31205)
+++ trunk/dports/games/fortune/files/patch-strfile.c 2007-11-18 10:13:34 UTC (rev 31206)
@@ -19,7 +19,7 @@
# include <sys/endian.h>
+#elif defined(__APPLE__) && defined(__MACH__)
+# include <machine/endian.h>
-+# define htobe32 OSSwapHostToBigInt32
++# define htobe32 htonl
+#else
+# include <netinet/in.h>
+# define htobe32 htonl
Added: trunk/dports/games/fortune/files/patch-strfile.h
===================================================================
--- trunk/dports/games/fortune/files/patch-strfile.h (rev 0)
+++ trunk/dports/games/fortune/files/patch-strfile.h 2007-11-18 10:13:34 UTC (rev 31206)
@@ -0,0 +1,14 @@
+--- strfile/strfile.h.orig 2007-11-17 23:09:17.000000000 -0700
++++ strfile/strfile.h 2007-11-17 23:10:41.000000000 -0700
+@@ -36,10 +36,11 @@
+ * @(#)strfile.h 8.1 (Berkeley) 5/31/93
+ */
+ /* $FreeBSD: src/games/fortune/strfile/strfile.h,v 1.4 2005/02/17 18:06:37 ru Exp $ */
+
+ #include <sys/types.h>
++#include <stdint.h>
+
+ #define STR_ENDSTRING(line,tbl) \
+ (((unsigned char)(line)[0]) == (tbl).str_delim && (line)[1] == '\n')
+
+ typedef struct { /* information table */
Modified: trunk/dports/games/fortune/files/patch-unstr.c
===================================================================
--- trunk/dports/games/fortune/files/patch-unstr.c 2007-11-18 10:10:42 UTC (rev 31205)
+++ trunk/dports/games/fortune/files/patch-unstr.c 2007-11-18 10:13:34 UTC (rev 31206)
@@ -8,7 +8,7 @@
# include <sys/endian.h>
+#elif defined(__APPLE__) && defined(__MACH__)
+# include <machine/endian.h>
-+# define be32toh OSSwapBigToHostInt32
++# define be32toh ntohl
+#else
+# include <netinet/in.h>
+# define be32toh ntohl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20071118/269fa600/attachment.html
More information about the macports-changes
mailing list