[Midnightbsd-cvs] mports: graphics/sdl_ttf: add sdl_ttf

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Sun Aug 26 17:48:48 EDT 2007


Log Message:
-----------
add sdl_ttf

Added Files:
-----------
    mports/graphics/sdl_ttf:
        Makefile (r1.1)
        distinfo (r1.1)
        pkg-descr (r1.1)
        pkg-plist (r1.1)
    mports/graphics/sdl_ttf/files:
        patch-SDL_ttf.c (r1.1)
        patch-aa (r1.1)

-------------- next part --------------
--- /dev/null
+++ 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/
--- /dev/null
+++ 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
+ at dirrmtry include/SDL
--- /dev/null
+++ graphics/sdl_ttf/Makefile
@@ -0,0 +1,37 @@
+# New ports collection makefile for:	sdl_ttf
+# Date created:				20 September 2000
+# Whom:					Maxim Sobolev <sobomax at FreeBSD.org>
+#
+# $MidnightBSD: mports/graphics/sdl_ttf/Makefile,v 1.1 2007/08/26 21:48:45 laffer1 Exp $
+# $FreeBSD: ports/graphics/sdl_ttf/Makefile,v 1.36 2007/05/19 20:10:48 flz Exp $
+#
+
+PORTNAME=	sdl_ttf
+PORTVERSION=	2.0.8
+CATEGORIES=	graphics
+MASTER_SITES=	http://www.libsdl.org/projects/SDL_ttf/release/
+DISTNAME=	SDL_ttf-${PORTVERSION}
+
+MAINTAINER=	ports at MidnightBSD.org
+COMMENT=	A library to use TrueType fonts to render text in SDL applications
+LICENSE=	lgpl
+
+LIB_DEPENDS=	freetype.9:${PORTSDIR}/print/freetype2
+
+USE_SDL=	sdl
+USE_GMAKE=	yes
+GNU_CONFIGURE=	yes
+CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd6.0
+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>
--- /dev/null
+++ 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
--- /dev/null
+++ 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;
--- /dev/null
+++ graphics/sdl_ttf/files/patch-aa
@@ -0,0 +1,13 @@
+
+$FreeBSD: ports/graphics/sdl_ttf/files/patch-aa,v 1.4 2006/10/14 08:53:06 marcus 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 = 


More information about the Midnightbsd-cvs mailing list