[63233] trunk/dports/devel/libsdl_net/Portfile

nox at macports.org nox at macports.org
Sat Jan 30 03:57:18 PST 2010


Revision: 63233
          http://trac.macports.org/changeset/63233
Author:   nox at macports.org
Date:     2010-01-30 03:57:15 -0800 (Sat, 30 Jan 2010)
Log Message:
-----------
Fix libsdl_net building when using libsdl-devel (#23482)

Modified Paths:
--------------
    trunk/dports/devel/libsdl_net/Portfile

Modified: trunk/dports/devel/libsdl_net/Portfile
===================================================================
--- trunk/dports/devel/libsdl_net/Portfile	2010-01-30 10:55:01 UTC (rev 63232)
+++ trunk/dports/devel/libsdl_net/Portfile	2010-01-30 11:57:15 UTC (rev 63233)
@@ -22,15 +22,19 @@
                 sha1 b46c7e3221621cc34fec1238f1b5f0ce8972274d \
                 rmd160 5c95cf28f35ceb796188323666b92cafa60fba25
 
+post-patch {
+    # SDL_byteorder.h is deprecated and SDL_endian.h should be used directly
+    # instead. This fixes building when using libsdl-devel.
+    reinplace s/byteorder/endian/ ${worksrcpath}/SDLnet.c
+}
+
 depends_lib     path:lib/pkgconfig/sdl.pc:libsdl
 
 configure.args  --disable-sdltest
 
-use_parallel_build  yes
-
 post-destroot {
-    xinstall -m 0755 -d ${destroot}${prefix}/share/doc/${name}
-    xinstall -m 0644 -W ${worksrcpath} CHANGES COPYING README \
+    xinstall -d ${destroot}${prefix}/share/doc/${name}
+    xinstall -m 644 -W ${worksrcpath} CHANGES COPYING README \
         ${destroot}${prefix}/share/doc/${name}
 }
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100130/ee125c17/attachment.html>


More information about the macports-changes mailing list