diff options
author | ahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059> | 2006-09-25 03:48:13 +0800 |
---|---|---|
committer | ahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059> | 2006-09-25 03:48:13 +0800 |
commit | bcf9373fa7a0717cdfb126855c6593648f38ef49 (patch) | |
tree | e7574d77fdabccaa9685ce601f25e61fbaf1973d | |
parent | 29b80136e93a3749352af812c2aeb96a49ef4f02 (diff) | |
download | marcuscom-ports-bcf9373fa7a0717cdfb126855c6593648f38ef49.tar marcuscom-ports-bcf9373fa7a0717cdfb126855c6593648f38ef49.tar.gz marcuscom-ports-bcf9373fa7a0717cdfb126855c6593648f38ef49.tar.bz2 marcuscom-ports-bcf9373fa7a0717cdfb126855c6593648f38ef49.tar.lz marcuscom-ports-bcf9373fa7a0717cdfb126855c6593648f38ef49.tar.xz marcuscom-ports-bcf9373fa7a0717cdfb126855c6593648f38ef49.tar.zst marcuscom-ports-bcf9373fa7a0717cdfb126855c6593648f38ef49.zip |
- Fix build with new freetype2
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@7342 df743ca5-7f9a-e211-a948-0013205c9059
-rw-r--r-- | graphics/sdl_ttf/Makefile | 35 | ||||
-rw-r--r-- | graphics/sdl_ttf/distinfo | 3 | ||||
-rw-r--r-- | graphics/sdl_ttf/files/patch-SDL_ttf.c | 19 | ||||
-rw-r--r-- | graphics/sdl_ttf/files/patch-aa | 13 | ||||
-rw-r--r-- | graphics/sdl_ttf/pkg-descr | 15 | ||||
-rw-r--r-- | graphics/sdl_ttf/pkg-plist | 8 |
6 files changed, 93 insertions, 0 deletions
diff --git a/graphics/sdl_ttf/Makefile b/graphics/sdl_ttf/Makefile new file mode 100644 index 000000000..91acaa6da --- /dev/null +++ b/graphics/sdl_ttf/Makefile @@ -0,0 +1,35 @@ +# New ports collection makefile for: sdl_ttf +# Date created: 20 September 2000 +# Whom: Maxim Sobolev <sobomax@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= sdl_ttf +PORTVERSION= 2.0.8 +CATEGORIES= graphics +MASTER_SITES= http://www.libsdl.org/projects/SDL_ttf/release/ +DISTNAME= SDL_ttf-${PORTVERSION} + +MAINTAINER= shaun@FreeBSD.org +COMMENT= A library to use TrueType fonts to render text in SDL applications + +LIB_DEPENDS= freetype.9:${PORTSDIR}/print/freetype2 + +USE_SDL= sdl +USE_GMAKE= yes +GNU_CONFIGURE= yes +CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib" +USE_LDCONFIG= yes + +.if !defined(WITHOUT_X11) && !defined(WITHOUT_GL) +USE_GL= yes +.endif + +post-install: + ${INSTALL_PROGRAM} ${WRKSRC}/.libs/glfont ${PREFIX}/bin + ${INSTALL_PROGRAM} ${WRKSRC}/.libs/showfont ${PREFIX}/bin + +.include <bsd.port.mk> diff --git a/graphics/sdl_ttf/distinfo b/graphics/sdl_ttf/distinfo new file mode 100644 index 000000000..1b5687245 --- /dev/null +++ b/graphics/sdl_ttf/distinfo @@ -0,0 +1,3 @@ +MD5 (SDL_ttf-2.0.8.tar.gz) = 094b6c08769e9842dbe1dfb5efa22df7 +SHA256 (SDL_ttf-2.0.8.tar.gz) = 6f57c879c0d15211f468aac48ed43653103bbe701a3f1cff462107ad1f74c5bc +SIZE (SDL_ttf-2.0.8.tar.gz) = 2457385 diff --git a/graphics/sdl_ttf/files/patch-SDL_ttf.c b/graphics/sdl_ttf/files/patch-SDL_ttf.c new file mode 100644 index 000000000..dbfadc227 --- /dev/null +++ b/graphics/sdl_ttf/files/patch-SDL_ttf.c @@ -0,0 +1,19 @@ +--- SDL_ttf.c.orig Mon May 1 05:26:17 2006 ++++ SDL_ttf.c Sun Sep 24 15:46:44 2006 +@@ -48,7 +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 +@@ -278,7 +277,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; diff --git a/graphics/sdl_ttf/files/patch-aa b/graphics/sdl_ttf/files/patch-aa new file mode 100644 index 000000000..536b746bf --- /dev/null +++ b/graphics/sdl_ttf/files/patch-aa @@ -0,0 +1,13 @@ + +$FreeBSD: ports/graphics/sdl_ttf/files/patch-aa,v 1.3 2006/09/20 11:21:42 stas Exp $ + +--- Makefile.in.orig ++++ Makefile.in +@@ -243,7 +243,6 @@ + + libSDL_ttf_la_LDFLAGS = \ + -no-undefined \ +- -release $(LT_RELEASE) \ + -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) + + libSDL_ttf_la_LIBADD = diff --git a/graphics/sdl_ttf/pkg-descr b/graphics/sdl_ttf/pkg-descr new file mode 100644 index 000000000..f105e2225 --- /dev/null +++ b/graphics/sdl_ttf/pkg-descr @@ -0,0 +1,15 @@ +This library is a wrapper around the excellent FreeType library. + +WARNING: There may be patent issues with using the FreeType library. Check the +FreeType website for up-to-date details. + +This library allows you to use TrueType fonts to render text in SDL +applications. + +Be careful when including fonts with your application, as many of them are +copyrighted. The Microsoft fonts, for example, are not freely redistributable +and even the free "web" fonts they provide are only redistributable in their +special executable installer form (May 1998). There are plenty of freeware and +shareware fonts available on the Internet though, and may suit your purposes. + +WWW: http://www.libsdl.org/projects/SDL_ttf/ diff --git a/graphics/sdl_ttf/pkg-plist b/graphics/sdl_ttf/pkg-plist new file mode 100644 index 000000000..7f20ac885 --- /dev/null +++ b/graphics/sdl_ttf/pkg-plist @@ -0,0 +1,8 @@ +bin/glfont +bin/showfont +include/SDL/SDL_ttf.h +lib/libSDL_ttf.a +lib/libSDL_ttf.la +lib/libSDL_ttf.so +lib/libSDL_ttf.so.6 +@dirrmtry include/SDL |