[136732] trunk/dports/x11/xorg-xproto

jeremyhu at macports.org jeremyhu at macports.org
Mon May 25 04:35:07 PDT 2015


Revision: 136732
          https://trac.macports.org/changeset/136732
Author:   jeremyhu at macports.org
Date:     2015-05-25 04:35:07 -0700 (Mon, 25 May 2015)
Log Message:
-----------
xorg-xproto: Include strings.h on darwin (#47813)

Modified Paths:
--------------
    trunk/dports/x11/xorg-xproto/Portfile

Added Paths:
-----------
    trunk/dports/x11/xorg-xproto/files/
    trunk/dports/x11/xorg-xproto/files/0001-darwin-Include-strings.h.patch

Modified: trunk/dports/x11/xorg-xproto/Portfile
===================================================================
--- trunk/dports/x11/xorg-xproto/Portfile	2015-05-25 11:27:44 UTC (rev 136731)
+++ trunk/dports/x11/xorg-xproto/Portfile	2015-05-25 11:35:07 UTC (rev 136732)
@@ -4,6 +4,7 @@
 
 name		xorg-xproto
 version		7.0.27
+revision        1
 categories	x11 devel
 license		X11
 maintainers	jeremyhu openmaintainer
@@ -28,6 +29,10 @@
         ${destroot}${docdir}
 }
 
+patch.pre_args -p1
+patchfiles \
+         0001-darwin-Include-strings.h.patch 
+
 configure.args \
 	--without-xmlto \
 	--without-fop \

Added: trunk/dports/x11/xorg-xproto/files/0001-darwin-Include-strings.h.patch
===================================================================
--- trunk/dports/x11/xorg-xproto/files/0001-darwin-Include-strings.h.patch	                        (rev 0)
+++ trunk/dports/x11/xorg-xproto/files/0001-darwin-Include-strings.h.patch	2015-05-25 11:35:07 UTC (rev 136732)
@@ -0,0 +1,42 @@
+From 2dc2c38fb530c717b1944c93a889e4deff61b7f9 Mon Sep 17 00:00:00 2001
+From: Jeremy Huddleston Sequoia <jeremyhu at apple.com>
+Date: Mon, 25 May 2015 04:30:29 -0700
+Subject: [PATCH] darwin: Include strings.h
+
+https://trac.macports.org/ticket/47813
+
+Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu at apple.com>
+---
+ Xfuncs.h | 2 +-
+ Xos.h    | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/Xfuncs.h b/Xfuncs.h
+index 469bb48..b7c4029 100644
+--- a/Xfuncs.h
++++ b/Xfuncs.h
+@@ -44,7 +44,7 @@ void bcopy();
+ #    define bcmp(b1,b2,len) memcmp(b1, b2, len)
+ #   else
+ #    include <string.h>
+-#    if defined(__SCO__) || defined(__sun) || defined(__UNIXWARE__) || defined(__CYGWIN__) || defined(_AIX)
++#    if defined(__SCO__) || defined(__sun) || defined(__UNIXWARE__) || defined(__CYGWIN__) || defined(_AIX) || defined(__APPLE__)
+ #     include <strings.h>
+ #    endif
+ #    define _XFUNCS_H_INCLUDED_STRING_H
+diff --git a/Xos.h b/Xos.h
+index 7e53946..28dfc67 100644
+--- a/Xos.h
++++ b/Xos.h
+@@ -60,7 +60,7 @@ in this Software without prior written authorization from The Open Group.
+  */
+ 
+ # include <string.h>
+-# if defined(__SCO__) || defined(__UNIXWARE__) || defined(__sun) || defined(__CYGWIN__) || defined(_AIX)
++# if defined(__SCO__) || defined(__UNIXWARE__) || defined(__sun) || defined(__CYGWIN__) || defined(_AIX) || defined(__APPLE__)
+ #  include <strings.h>
+ # else
+ #  ifndef index
+-- 
+2.4.0
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150525/65cbb6e4/attachment.html>


More information about the macports-changes mailing list