- build fix for newer libfreetype

- bump PKGNAME

from and ok brad@
This commit is contained in:
ajacoutot 2007-01-15 17:53:44 +00:00
parent 9e0053e336
commit 4ce77292dd
2 changed files with 32 additions and 2 deletions

View File

@ -1,10 +1,10 @@
# $OpenBSD: Makefile,v 1.25 2007/01/15 16:31:46 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.26 2007/01/15 17:53:44 ajacoutot Exp $
COMMENT= "SDL TrueType fonts library"
V= 2.0.8
DISTNAME= SDL_ttf-${V}
PKGNAME= sdl-ttf-${V}
PKGNAME= sdl-ttf-${V}p1
SHARED_LIBS= SDL_ttf 7.0
CATEGORIES= devel graphics
MASTER_SITES= http://www.libsdl.org/projects/SDL_ttf/release/

View File

@ -0,0 +1,30 @@
$OpenBSD: patch-SDL_ttf_c,v 1.3 2007/01/15 17:53:44 ajacoutot Exp $
--- SDL_ttf.c.orig Mon May 1 05:26:17 2006
+++ SDL_ttf.c Sat Jan 6 19:26:23 2007
@@ -43,17 +43,7 @@
#include FT_FREETYPE_H
#include FT_OUTLINE_H
#include FT_TRUETYPE_IDS_H
-/*
-#include <freetype/freetype.h>
-#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"
#include "SDL_ttf.h"
@@ -278,7 +268,7 @@ TTF_Font* TTF_OpenFontIndexRW( SDL_RWops
}
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;