debian/0000755000000000000000000000000012255063304007166 5ustar debian/docs0000644000000000000000000000000711710511305010030 0ustar README debian/libsdl-ttf2.0-0.install0000644000000000000000000000003611710511305013170 0ustar usr/lib/*/libSDL_ttf-2.0.so.* debian/source/0000755000000000000000000000000011724437001010465 5ustar debian/source/format0000644000000000000000000000001411710511030011661 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000001414012255063165011045 0ustar sdl-ttf2.0 (2.0.11-3) unstable; urgency=medium * Bump Policy Standards-Version to 3.9.5 (no changes needed) * Remove field "DM-Upload-Allowed: yes", obsolete * Change maintainer address to @debian.org * Regenerate with dh_autoreconf without using upstream's autogen.sh -- Manuel A. Fernandez Montecelo Fri, 20 Dec 2013 15:46:53 +0000 sdl-ttf2.0 (2.0.11-2) unstable; urgency=low * Bump Standards-Version to 3.9.3 (no changes needed) * Depend on debhelper>=9~ - Remove lintian warning package-needs-versioned-debhelper-build-depends 9 * Add lintian override for the slightly different name libSDL-ttf-2.0-0 * Use "dh_autoreconf --as-needed" in debian/rules * Change debian/copyright format URI to http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ * Added patch for "TTF_RenderGlyph_Shaded is broken" (Closes: #661987), thanks Ying-Chun Liu (PaulLiu) for the report and pointing to the fix. * Added patch for "Lack of error reporting for glyph rendering errors" (Closes: #405378), thanks Kevin Locke for the report and providing the the fix (accepted upstream already). -- Manuel A. Fernandez Montecelo Sat, 03 Mar 2012 15:46:34 +0000 sdl-ttf2.0 (2.0.11-1) unstable; urgency=low * New upstream release (Closes: #515122, #595739, #413069, #438749, #594824) - License switched to zlib/libpng * New maintainers - Make package as part of SDL team - Add myself to Uploaders, and setting DM-Upload-Allowed: yes - Remove previous maintainers/uploaders, inactive for years and they have been informed * Changes in packaging: - Switch to debhelper compat level v9 (level 4 before, obsolete) - Greatly simplifying debian/rules accordingly - Build for multiarch (Closes: #653656) - Bump Standards-Version to 3.9.2 (no changes needed) - Added 'source/format', with '3.0 (quilt)' - Modifications to dependencies and build options: - Depending on newer dpkg-dev - Depending on SDL >= 1.2.14 (instead of misc old versions) - debian/copyright: updated license and converted to DEP-5 - Modifying slightly the descriptions - lintian source override for versioned debhelper warning -- Manuel A. Fernandez Montecelo Fri, 27 Jan 2012 11:43:59 +0000 sdl-ttf2.0 (2.0.9-1.1) unstable; urgency=low * Non-maintainer upload. * Explicitly link against libm, fixing FTBFS with --no-undefined. Closes: #556340. * Stop shipping la file. Closes: #631839, 633341. -- Regis Boudin Wed, 28 Sep 2011 20:12:07 +0100 sdl-ttf2.0 (2.0.9-1) unstable; urgency=low [ Aurelien Jarno ] * debian/control: + Make the package binNMU safe. [ Samuel Mimram ] * New upstream release. * Removed no_freetype_internals.dpatch and pixel_mode_mono.dpatch, integrated upstream. * Don't ignore errors when cleaning. -- Samuel Mimram Mon, 23 Jul 2007 14:39:46 +0200 sdl-ttf2.0 (2.0.8-3) unstable; urgency=low * Added pixel_mode_mono.dpatch to fix a bug with monochrome bitmaps (thanks Guillaume Cottenceau). -- Samuel Mimram Tue, 22 Aug 2006 17:02:35 +0000 sdl-ttf2.0 (2.0.8-2) unstable; urgency=low * Update config.sub and config.guess in order to be able to build on GNU/kFreeBSD, closes: #373147. -- Samuel Mimram Tue, 13 Jun 2006 12:39:37 +0000 sdl-ttf2.0 (2.0.8-1) unstable; urgency=low * New upstream release. * Added no_freetype_internals.dpatch in order to avoid using freetype internals (cf. http://www.freetype.org/freetype2/freetype-2.2.0.html), closes: #373108. * Added a watch file. * Updated standards version to 3.7.2, no changes needed. -- Samuel Mimram Mon, 12 Jun 2006 23:04:40 +0000 sdl-ttf2.0 (2.0.7-1) unstable; urgency=low * New maintainer. * New upstream release, closes: #318802. * Corrected copyright file, closes: #290203. * Relibtoolized, closes: #269297. * Removed file-opening-fix.dpatch and freetype-fix.dpatch, integrated upstream. * Removed useless call to ldconfig in postinst. * Updated standards version to 3.6.2, no changes needed. -- Samuel Mimram Wed, 23 Nov 2005 22:04:06 +0100 sdl-ttf2.0 (2.0.6-5) unstable; urgency=low * debian/control: - Changed Section field of libsdl-ttf2.0-dev from libs to libdevel. -- Jerome Marant Sat, 10 Jan 2004 14:59:22 +0100 sdl-ttf2.0 (2.0.6-4) unstable; urgency=low * debian/control: - Bumped Standards-Version to 3.6.1. - Added build-dependency on dpatch. * debian/patches/file-opening-fix.dpatch: new patch providing previous fix from Sam Hocevar. * debian/patches/freetype-fix.dpatch: added patch fixing a build failure with last version of Freetype. Closes: Bug#227015. Thanks Daniel Schepler . -- Jerome Marant Sat, 10 Jan 2004 14:10:04 +0100 sdl-ttf2.0 (2.0.6-3) unstable; urgency=low * debian/control: + Set policy to 3.5.10. + Added Sam Hocevar as co-maintainer. * Backported a fix from HEAD for a crash when opening a font file that does not exist. -- Sam Hocevar (Debian packages) Sun, 15 Jun 2003 13:15:15 +0200 sdl-ttf2.0 (2.0.6-2) unstable; urgency=low * config.{guess,sub}: updated again from versions from autotools-dev. Closes: Bug#183661. -- Jerome Marant Sun, 6 Apr 2003 00:12:06 +0200 sdl-ttf2.0 (2.0.6-1) unstable; urgency=low * New upstream release. -- Jerome Marant Thu, 20 Mar 2003 19:39:07 +0100 sdl-ttf2.0 (2.0.5-3) unstable; urgency=low * debian/control: changed libsdl-ttf2.0-0 section from devel to libs. -- Jerome Marant Sat, 8 Mar 2003 15:30:56 +0100 sdl-ttf2.0 (2.0.5-2) unstable; urgency=low * config.{guess,sub}: updated from versions from autotools-dev. -- Jerome Marant Thu, 6 Mar 2003 21:40:49 +0100 sdl-ttf2.0 (2.0.5-1) unstable; urgency=low * Initial Release. Closes: Bug#174871. -- Jerome Marant Sat, 1 Mar 2003 12:19:52 +0100 debian/libsdl-ttf2.0-dev.examples0000644000000000000000000000006211710511305013756 0ustar debian/Makefile debian/glfont.c debian/showfont.c debian/watch0000644000000000000000000000012511710511305010207 0ustar version=3 http://www.libsdl.org/projects/SDL_ttf/release/SDL_ttf-([0-9\.]*)\.tar\.gz debian/control0000644000000000000000000000254412255062555010605 0ustar Source: sdl-ttf2.0 Section: libs Priority: optional Maintainer: Debian SDL packages maintainers Uploaders: Manuel A. Fernandez Montecelo Standards-Version: 3.9.5 Build-Depends: debhelper (>= 9~), dh-autoreconf, dpkg-dev (>= 1.16.1~), libfreetype6-dev, libsdl1.2-dev (>= 1.2.14) Homepage: http://www.libsdl.org/projects/SDL_ttf/ Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-sdl/packages/sdl-ttf2.0.git Vcs-Git: git://anonscm.debian.org/pkg-sdl/packages/sdl-ttf2.0.git Package: libsdl-ttf2.0-0 Architecture: any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${shlibs:Depends}, ${misc:Depends} Description: TrueType Font library for Simple DirectMedia Layer 1.2, libraries Sample library which allows you to use TrueType fonts in your SDL applications. . This package contains the shared library. Package: libsdl-ttf2.0-dev Section: libdevel Architecture: any Multi-Arch: same Depends: ${misc:Depends}, libc6-dev, libsdl-ttf2.0-0 (= ${binary:Version}), libsdl1.2-dev (>= 1.2.14) Description: TrueType Font library for Simple DirectMedia Layer 1.2, development files Sample library which allows you to use TrueType fonts in your SDL applications. . This package contains the development files. debian/libsdl-ttf2.0-dev.install0000644000000000000000000000012311710514710013607 0ustar usr/include/SDL usr/lib/*/pkgconfig usr/lib/*/libSDL_ttf.a usr/lib/*/libSDL_ttf.so debian/libsdl-ttf2.0-0.lintian-overrides0000644000000000000000000000010411724447353015174 0ustar libsdl-ttf2.0-0: package-name-doesnt-match-sonames libSDL-ttf-2.0-0 debian/rules0000755000000000000000000000137212255062663010260 0ustar #!/usr/bin/make -f #export DH_VERBOSE=1 export DEB_CFLAGS_MAINT_APPEND := -pipe -Wall export DEB_LDFLAGS_MAINT_APPEND := -Wl,--no-undefined %: dh $@ --with autoreconf --parallel override_dh_autoreconf: AUTOMAKE="automake --foreign" dh_autoreconf --as-needed override_dh_auto_configure: dh_auto_configure -- $(confflags) override_dh_install: # copy files (modifying header includes) to install as examples in the # -dev package sed -e 's:"SDL.h":\:' -e 's:"SDL_ttf.h":\:' showfont.c > debian/showfont.c sed -e 's:"SDL.h":\:' -e 's:"SDL_ttf.h":\:' glfont.c > debian/glfont.c dh_install --fail-missing -XlibSDL_ttf.la override_dh_auto_installchangelogs: dh_auto_installchangelogs -- CHANGES debian/Makefile0000644000000000000000000000042511710511305010621 0ustar # Makefile for showfont CC = gcc CFLAGS = -Wall -O LIBS = -I/usr/include/SDL -lSDL_ttf EXE = showfont glfont all: $(EXE) showfont: showfont.c Makefile $(CC) -o $@ $@.c $(CFLAGS) $(LIBS) glfont: glfont.c Makefile $(CC) -o $@ $@.c $(CFLAGS) $(LIBS) clean: -rm *.o $(EXE) debian/compat0000644000000000000000000000000211710511305010356 0ustar 9 debian/copyright0000644000000000000000000000235211724445504011131 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: SDL_ttf Upstream-Contact: Sam Lantinga Source: http://www.libsdl.org/projects/SDL_ttf/ Files: * Copyright: 2001-2012 Sam Lantinga License: zlib/libpng Files: debian/* Copyright: 2012, Manuel A. Fernandez Montecelo License: zlib/libpng License: zlib/libpng This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. . Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: . 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. debian/patches/0000755000000000000000000000000011724443717010627 5ustar debian/patches/fix_bug_661987_TTF_RenderGlyph_Shaded_is_broken0000644000000000000000000000105511724443660021362 0ustar Description: Fix bug report "TTF_RenderGlyph_Shaded is broken" Introduced in 2.0.11-2 (Sat, 03 Mar 2012). Author: Unknown Last-Update: 2012-03-03 Bug-Debian: http://bugs.debian.org/661987 --- a/SDL_ttf.c +++ b/SDL_ttf.c @@ -1752,7 +1752,7 @@ /* Copy the character from the pixmap */ src = glyph->pixmap.buffer; dst = (Uint8*) textbuf->pixels; - for ( row = 0; row < glyph->bitmap.rows; ++row ) { + for ( row = 0; row < glyph->pixmap.rows; ++row ) { memcpy( dst, src, glyph->pixmap.width ); src += glyph->pixmap.pitch; dst += textbuf->pitch; debian/patches/fix_bug_405378_error_reporting_upstream_b09799bf8dff0000644000000000000000000000520011724442551022244 0ustar Description: Better error reporting Introduced in 2.0.11-2 (Sat, 03 Mar 2012). . Applied Upstream: http://hg.libsdl.org/SDL_ttf/rev/b09799bf8dff Author: Kevin Locke Last-Update: 2012-03-03 Bug-Debian: http://bugs.debian.org/405378 Forwarded: http://bugzilla.libsdl.org/show_bug.cgi?id=1400 # HG changeset patch # User Sam Lantinga # Date 1327764534 18000 # Node ID b09799bf8dff36eca61ecc5272cfdcce39b6b186 # Parent 077db903bfdf89f6cb9a32e8be1f3e5c95d429b4 Fixed bug 1400 - Lack of error reporting for glyph rendering errors I was just bitten by bug 374062 (any word if this will be fixed for etch given that it is fixed upstream?), and found that there is no error message set by sdl-ttf when it is unable to render a glyph, which makes bugs like this a bit more difficult to track down. I would really appreciate it if TTF_GetError() could return a useful message in such situations. The attached patch does just that by duplicating the existing error reporting for calls to Find_Glyph() into the places where it is missing, although it might be nice to know which glyph it was that could not be found... --- a/SDL_ttf.c +++ b/SDL_ttf.c @@ -1155,6 +1155,7 @@ error = Find_Glyph(font, c, CACHED_METRICS); if ( error ) { + TTF_SetFTError("Couldn't find glyph", error); return -1; } glyph = font->current; @@ -1364,6 +1365,7 @@ error = Find_Glyph(font, c, CACHED_METRICS|CACHED_BITMAP); if( error ) { + TTF_SetFTError("Couldn't find glyph", error); SDL_FreeSurface( textbuf ); return NULL; } @@ -1438,6 +1440,7 @@ /* Get the glyph itself */ error = Find_Glyph(font, ch, CACHED_METRICS|CACHED_BITMAP); if ( error ) { + TTF_SetFTError("Couldn't find glyph", error); return(NULL); } glyph = font->current; @@ -1630,6 +1633,7 @@ error = Find_Glyph(font, c, CACHED_METRICS|CACHED_PIXMAP); if( error ) { + TTF_SetFTError("Couldn't find glyph", error); SDL_FreeSurface( textbuf ); return NULL; } @@ -1711,6 +1715,7 @@ /* Get the glyph itself */ error = Find_Glyph(font, ch, CACHED_METRICS|CACHED_PIXMAP); if( error ) { + TTF_SetFTError("Couldn't find glyph", error); return NULL; } glyph = font->current; @@ -1887,6 +1892,7 @@ } error = Find_Glyph(font, c, CACHED_METRICS|CACHED_PIXMAP); if( error ) { + TTF_SetFTError("Couldn't find glyph", error); SDL_FreeSurface( textbuf ); return NULL; } @@ -1967,6 +1973,7 @@ /* Get the glyph itself */ error = Find_Glyph(font, ch, CACHED_METRICS|CACHED_PIXMAP); if ( error ) { + TTF_SetFTError("Couldn't find glyph", error); return(NULL); } glyph = font->current; debian/patches/link_libm_ftbfs_binutils-gold0000644000000000000000000000060611710515440016520 0ustar --- a/Makefile.am +++ b/Makefile.am @@ -36,6 +36,13 @@ -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) endif +# Manuel A. Fernandez Montecelo +# +# 20120127 +# Fix for http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=556340 +# FTBFS with binutils-gold +libSDL_ttf_la_LDFLAGS += -lm + pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = SDL_ttf.pc debian/patches/series0000644000000000000000000000020311724443701012030 0ustar link_libm_ftbfs_binutils-gold fix_bug_405378_error_reporting_upstream_b09799bf8dff fix_bug_661987_TTF_RenderGlyph_Shaded_is_broken