ports/opt (2.3): sdl_ttf: added patch for avoiding freetype internals
commit a965639515ca2ce73b2b55caa89e142962467d52 Author: Simone Rota <sip@crux.nu> Date: Wed Jan 3 13:35:33 2007 +0100 sdl_ttf: added patch for avoiding freetype internals diff --git a/sdl_ttf/.md5sum b/sdl_ttf/.md5sum index b8d5334..d4083fa 100644 --- a/sdl_ttf/.md5sum +++ b/sdl_ttf/.md5sum @@ -1 +1,2 @@ 094b6c08769e9842dbe1dfb5efa22df7 SDL_ttf-2.0.8.tar.gz +b6c2d4ca22bea6031192e97aba7acb72 sdl_ttf-noftinternals.patch diff --git a/sdl_ttf/Pkgfile b/sdl_ttf/Pkgfile index 6eed98e..aef8394 100644 --- a/sdl_ttf/Pkgfile +++ b/sdl_ttf/Pkgfile @@ -5,11 +5,13 @@ name=sdl_ttf version=2.0.8 -release=1 -source=(http://www.libsdl.org/projects/SDL_ttf/release/SDL_ttf-$version.tar.gz) +release=2 +source=(http://www.libsdl.org/projects/SDL_ttf/release/SDL_ttf-$version.tar.gz \ + $name-noftinternals.patch) build() { cd SDL_ttf-$version + patch < ../$name-noftinternals.patch ./configure --prefix=/usr make make DESTDIR=$PKG install diff --git a/sdl_ttf/sdl_ttf-noftinternals.patch b/sdl_ttf/sdl_ttf-noftinternals.patch new file mode 100644 index 0000000..2d536ff --- /dev/null +++ b/sdl_ttf/sdl_ttf-noftinternals.patch @@ -0,0 +1,24 @@ +diff -Nru SDL_ttf-2.0.8.orig/SDL_ttf.c SDL_ttf-2.0.8/SDL_ttf.c +--- SDL_ttf-2.0.8.orig/SDL_ttf.c 2006-05-01 11:26:17.000000000 +0200 ++++ SDL_ttf-2.0.8/SDL_ttf.c 2007-01-03 13:32:42.438178717 +0100 +@@ -47,9 +47,9 @@ + #include <freetype/freetype.h> + #include <freetype/ftoutln.h> + #include <freetype/ttnameid.h> +-*/ +-#include <freetype/internal/ftobjs.h> + ++#include <freetype/internal/ftobjs.h> ++*/ + #ifndef FT_OPEN_STREAM + #define FT_OPEN_STREAM ft_open_stream + #endif +@@ -278,7 +278,7 @@ + } + memset(stream, 0, sizeof(*stream)); + +- stream->memory = library->memory; ++ stream->memory = NULL; + stream->read = RWread; + stream->descriptor.pointer = src; + stream->pos = (unsigned long)position;
participants (1)
-
crux@crux.nu