svn commit: r494347 - head/graphics/sdl2_ttf

Dmitry Marakasov amdmi3 at FreeBSD.org
Sat Mar 2 00:20:39 UTC 2019


Author: amdmi3
Date: Sat Mar  2 00:20:37 2019
New Revision: 494347
URL: https://svnweb.freebsd.org/changeset/ports/494347

Log:
  - Update to 2.0.15
  - Fix dependency on OpenGL
  - Update pkg-descr

Modified:
  head/graphics/sdl2_ttf/Makefile
  head/graphics/sdl2_ttf/distinfo
  head/graphics/sdl2_ttf/pkg-descr
  head/graphics/sdl2_ttf/pkg-plist

Modified: head/graphics/sdl2_ttf/Makefile
==============================================================================
--- head/graphics/sdl2_ttf/Makefile	Fri Mar  1 23:55:43 2019	(r494346)
+++ head/graphics/sdl2_ttf/Makefile	Sat Mar  2 00:20:37 2019	(r494347)
@@ -1,8 +1,7 @@
 # $FreeBSD$
 
 PORTNAME=	sdl2_ttf
-PORTVERSION=	2.0.14
-PORTREVISION=	1
+PORTVERSION=	2.0.15
 CATEGORIES=	graphics
 MASTER_SITES=	http://www.libsdl.org/projects/SDL_ttf/release/
 DISTNAME=	SDL2_ttf-${PORTVERSION}
@@ -15,18 +14,26 @@ LICENSE_FILE=	${WRKSRC}/COPYING.txt
 
 LIB_DEPENDS=	libfreetype.so:print/freetype2
 
-USES=		pkgconfig:build pathfix gmake libtool localbase
+USES=		gmake libtool localbase pathfix pkgconfig sdl
 USE_SDL=	sdl2
 GNU_CONFIGURE=	yes
 INSTALL_TARGET=	install-strip
 USE_LDCONFIG=	yes
 
 OPTIONS_DEFINE=	OPENGL
+OPTIONS_SUB=	yes
 
-OPENGL_USE=	GL=yes
+OPENGL_DESC=	Build sdl2-glfont demo program
+OPENGL_USES=	gl
+OPENGL_USE=	GL=gl
 
+post-patch-OPENGL-off:
+	@${REINPLACE_CMD} -e '/have_opengl=yes/d' ${WRKSRC}/configure
+
 post-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/.libs/glfont ${STAGEDIR}${PREFIX}/bin/sdl2-glfont
 	${INSTALL_PROGRAM} ${WRKSRC}/.libs/showfont ${STAGEDIR}${PREFIX}/bin/sdl2-showfont
+
+post-install-OPENGL-on:
+	${INSTALL_PROGRAM} ${WRKSRC}/.libs/glfont ${STAGEDIR}${PREFIX}/bin/sdl2-glfont
 
 .include <bsd.port.mk>

Modified: head/graphics/sdl2_ttf/distinfo
==============================================================================
--- head/graphics/sdl2_ttf/distinfo	Fri Mar  1 23:55:43 2019	(r494346)
+++ head/graphics/sdl2_ttf/distinfo	Sat Mar  2 00:20:37 2019	(r494347)
@@ -1,2 +1,3 @@
-SHA256 (SDL2_ttf-2.0.14.tar.gz) = 34db5e20bcf64e7071fe9ae25acaa7d72bdc4f11ab3ce59acc768ab62fe39276
-SIZE (SDL2_ttf-2.0.14.tar.gz) = 4147462
+TIMESTAMP = 1551469142
+SHA256 (SDL2_ttf-2.0.15.tar.gz) = a9eceb1ad88c1f1545cd7bd28e7cbc0b2c14191d40238f531a15b01b1b22cd33
+SIZE (SDL2_ttf-2.0.15.tar.gz) = 4479718

Modified: head/graphics/sdl2_ttf/pkg-descr
==============================================================================
--- head/graphics/sdl2_ttf/pkg-descr	Fri Mar  1 23:55:43 2019	(r494346)
+++ head/graphics/sdl2_ttf/pkg-descr	Sat Mar  2 00:20:37 2019	(r494347)
@@ -1,15 +1,8 @@
-This library is a wrapper around the excellent FreeType library.
+SDL_ttf is a TrueType font rendering library that is used with the
+SDL library, and almost as portable. It depends on freetype2 to
+handle the TrueType font data. It allows a programmer to use multiple
+TrueType fonts without having to code a font rendering routine
+themselves. With the power of outline fonts and antialiasing, high
+quality text output can be obtained without much effort.
 
-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/
+WWW: https://www.libsdl.org/projects/SDL_ttf/

Modified: head/graphics/sdl2_ttf/pkg-plist
==============================================================================
--- head/graphics/sdl2_ttf/pkg-plist	Fri Mar  1 23:55:43 2019	(r494346)
+++ head/graphics/sdl2_ttf/pkg-plist	Sat Mar  2 00:20:37 2019	(r494347)
@@ -1,8 +1,8 @@
-bin/sdl2-glfont
+%%OPENGL%%bin/sdl2-glfont
 bin/sdl2-showfont
 include/SDL2/SDL_ttf.h
 lib/libSDL2_ttf-2.0.so.0
-lib/libSDL2_ttf-2.0.so.0.14.0
+lib/libSDL2_ttf-2.0.so.0.14.1
 lib/libSDL2_ttf.a
 lib/libSDL2_ttf.so
 libdata/pkgconfig/SDL2_ttf.pc


More information about the svn-ports-all mailing list