[114883] trunk/dports/x11/vnc
ryandesign at macports.org
ryandesign at macports.org
Wed Dec 18 16:00:18 PST 2013
Revision: 114883
https://trac.macports.org/changeset/114883
Author: ryandesign at macports.org
Date: 2013-12-18 16:00:18 -0800 (Wed, 18 Dec 2013)
Log Message:
-----------
vnc: fix build failure with clang (#41855)
Modified Paths:
--------------
trunk/dports/x11/vnc/Portfile
Added Paths:
-----------
trunk/dports/x11/vnc/files/
trunk/dports/x11/vnc/files/patch-stdlib.diff
Modified: trunk/dports/x11/vnc/Portfile
===================================================================
--- trunk/dports/x11/vnc/Portfile 2013-12-18 23:58:59 UTC (rev 114882)
+++ trunk/dports/x11/vnc/Portfile 2013-12-19 00:00:18 UTC (rev 114883)
@@ -26,8 +26,11 @@
port:xorg-libXtst \
port:zlib
-worksrcdir ${worksrcdir}/unix
+patchfiles patch-stdlib.diff
+configure.dir ${worksrcpath}/unix
+build.dir ${configure.dir}
+
configure.args --with-x --with-installed-zlib
destroot.cmd ./vncinstall
@@ -36,7 +39,7 @@
post-destroot {
xinstall -d -m 0755 ${destroot}${prefix}/share/${name}/classes
- foreach f [glob -directory ${worksrcpath}/../common/javabin *] {
+ foreach f [glob -directory ${worksrcpath}/common/javabin *] {
xinstall -m 0644 $f ${destroot}${prefix}/share/${name}/classes
}
# server binary requires building XFree86, so delete the wrapper script
Added: trunk/dports/x11/vnc/files/patch-stdlib.diff
===================================================================
--- trunk/dports/x11/vnc/files/patch-stdlib.diff (rev 0)
+++ trunk/dports/x11/vnc/files/patch-stdlib.diff 2013-12-19 00:00:18 UTC (rev 114883)
@@ -0,0 +1,30 @@
+--- common/network/TcpSocket.cxx.orig 2008-10-16 10:16:20.000000000 -0500
++++ common/network/TcpSocket.cxx 2013-12-18 17:50:54.000000000 -0600
+@@ -24,6 +24,7 @@
+ #else
+ #define errorNumber errno
+ #define closesocket close
++#include <stdlib.h>
+ #include <sys/types.h>
+ #include <sys/socket.h>
+ #include <arpa/inet.h>
+--- unix/tx/TXImage.cxx.orig 2008-10-16 10:16:21.000000000 -0500
++++ unix/tx/TXImage.cxx 2013-12-18 17:52:06.000000000 -0600
+@@ -20,6 +20,7 @@
+ //
+
+
++#include <stdlib.h>
+ #include <stdio.h>
+ #include <strings.h>
+ #include <sys/types.h>
+--- unix/x0vncserver/Image.cxx.orig 2008-10-16 10:16:21.000000000 -0500
++++ unix/x0vncserver/Image.cxx 2013-12-18 17:53:56.000000000 -0600
+@@ -20,6 +20,7 @@
+ //
+
+
++#include <stdlib.h>
+ #include <stdio.h>
+ #include <sys/types.h>
+ #include <sys/ipc.h>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20131218/16755be5/attachment.html>
More information about the macports-changes
mailing list