[23754] trunk/dports/devel/libsdl_ttf

source_changes at macosforge.org source_changes at macosforge.org
Sun Apr 8 14:42:30 PDT 2007


Revision: 23754
          http://trac.macosforge.org/projects/macports/changeset/23754
Author:   jann at macports.org
Date:     2007-04-08 14:42:30 -0700 (Sun, 08 Apr 2007)

Log Message:
-----------
Made compatible with latest freetype

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

Added Paths:
-----------
    trunk/dports/devel/libsdl_ttf/files/
    trunk/dports/devel/libsdl_ttf/files/SDL_ttf.c.diff

Modified: trunk/dports/devel/libsdl_ttf/Portfile
===================================================================
--- trunk/dports/devel/libsdl_ttf/Portfile	2007-04-08 20:50:32 UTC (rev 23753)
+++ trunk/dports/devel/libsdl_ttf/Portfile	2007-04-08 21:42:30 UTC (rev 23754)
@@ -2,35 +2,38 @@
 
 PortSystem 1.0
 
-name		libsdl_ttf
-version		2.0.8
-categories	devel graphics
-maintainers	nomaintainer at macports.org
-platforms	macosx
-description	add on library for libSDL for rendering TrueType fonts
-long_description	This library is a wrapper around the excellent \
-			FreeType 2.0 library allowing to render TrueType fonts \
-			in SDL applications.
-	
-homepage	http://www.libsdl.org/projects/SDL_ttf
-master_sites	${homepage}/release/
-distname	SDL_ttf-${version}
-checksums	sha1 a2c4cb1525173414ca7e5eaefbabadca69bd1114
+name                libsdl_ttf
+version             2.0.8
+revision            1
+categories          devel graphics
+maintainers         nomaintainer at macports.org
+platforms           macosx
+description         add on library for libSDL for rendering TrueType fonts
+long_description    This library is a wrapper around the excellent \
+                    FreeType 2.0 library allowing to render TrueType fonts \
+                    in SDL applications.
+    
+homepage            http://www.libsdl.org/projects/SDL_ttf
+master_sites        ${homepage}/release/
+distname            SDL_ttf-${version}
+checksums           sha1 a2c4cb1525173414ca7e5eaefbabadca69bd1114
 
-depends_lib	port:libsdl port:freetype port:zlib
+depends_lib         port:libsdl port:freetype port:zlib
 
-configure.args	--disable-sdltest
+patchfiles          SDL_ttf.c.diff
 
-post-destroot	{
-	xinstall -m 0755 -d ${destroot}${prefix}/share/doc/${name}
-	xinstall -m 0644 -W ${worksrcpath} CHANGES COPYING README \
-		${destroot}${prefix}/share/doc/${name}
+configure.args      --disable-sdltest
+
+post-destroot   {
+    xinstall -m 0755 -d ${destroot}${prefix}/share/doc/${name}
+    xinstall -m 0644 -W ${worksrcpath} CHANGES COPYING README \
+        ${destroot}${prefix}/share/doc/${name}
 }
 
 platform darwin 6 {
-	depends_lib-append	lib:libdl:dlcompat
+    depends_lib-append  lib:libdl:dlcompat
 }
 
 platform darwin 8 {
-	configure.env CC=/usr/bin/gcc CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0
+    configure.env CC=/usr/bin/gcc CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0
 }

Added: trunk/dports/devel/libsdl_ttf/files/SDL_ttf.c.diff
===================================================================
--- trunk/dports/devel/libsdl_ttf/files/SDL_ttf.c.diff	                        (rev 0)
+++ trunk/dports/devel/libsdl_ttf/files/SDL_ttf.c.diff	2007-04-08 21:42:30 UTC (rev 23754)
@@ -0,0 +1,23 @@
+--- SDL_ttf.c.orig	2007-04-08 14:37:18.000000000 -0700
++++ SDL_ttf.c	2007-04-08 14:40:43.000000000 -0700
+@@ -48,11 +48,6 @@
+ #include <freetype/ftoutln.h>
+ #include <freetype/ttnameid.h>
+ */
+-#include <freetype/internal/ftobjs.h>
+-
+-#ifndef FT_OPEN_STREAM
+-#define FT_OPEN_STREAM ft_open_stream
+-#endif
+ 
+ #include "SDL.h"
+ #include "SDL_endian.h"
+@@ -278,7 +273,7 @@
+ 	}
+ 	memset(stream, 0, sizeof(*stream));
+ 
+-	stream->memory = library->memory;
++	stream->memory = NULL;  /* set by FT_Open_Face */
+ 	stream->read = RWread;
+ 	stream->descriptor.pointer = src;
+ 	stream->pos = (unsigned long)position;

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070408/3b740198/attachment.html


More information about the macports-changes mailing list