Date: Friday, February 26, 2021 @ 23:06:52 Author: heftig Revision: 874485
extra2community: Moving sdl_ttf from extra to community Added: sdl_ttf/ sdl_ttf/repos/ sdl_ttf/trunk/ sdl_ttf/trunk/PKGBUILD sdl_ttf/trunk/bug1433.patch sdl_ttf/trunk/freetype-pkgconfig.patch --------------------------+ PKGBUILD | 43 ++++++++++++++++++++++++++++++++++++++++++ bug1433.patch | 11 ++++++++++ freetype-pkgconfig.patch | 46 +++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 100 insertions(+) Added: sdl_ttf/trunk/PKGBUILD =================================================================== --- sdl_ttf/trunk/PKGBUILD (rev 0) +++ sdl_ttf/trunk/PKGBUILD 2021-02-26 23:06:52 UTC (rev 874485) @@ -0,0 +1,43 @@ +# Maintainer: Jan Alexander Steffens (heftig) <jan.steff...@gmail.com> +# Contributor: Allan McRae <al...@archlinux.org> +# Contributor: Tom Newsom <jeeps...@gmx.co.uk> + +pkgname=sdl_ttf +pkgver=2.0.11 +pkgrel=6 +pkgdesc="A library that allows you to use TrueType fonts in your SDL applications" +url="https://www.libsdl.org/projects/SDL_ttf/" +arch=(x86_64) +license=(custom) +depends=(sdl freetype2) +source=(https://www.libsdl.org/projects/SDL_ttf/release/SDL_ttf-$pkgver.tar.gz + freetype-pkgconfig.patch + bug1433.patch) +sha256sums=('724cd895ecf4da319a3ef164892b72078bd92632a5d812111261cde248ebcdb7' + '87412f614b97b4724cb4845db882f07c15caf098dee57a856d6dbae0f58de80d' + '4baea703454b9bca9498a920485552f1b8489a5007f8f1366080b14a4cd74c90') + +prepare() { + cd SDL_ttf-$pkgver + + # Fix FS#28674 + patch -Ni ../bug1433.patch + + # Fix build with FreeType 2.9.1 + patch -Np1 -i ../freetype-pkgconfig.patch + + touch NEWS README AUTHORS ChangeLog + autoreconf -vi +} + +build() { + cd SDL_ttf-$pkgver + ./configure --prefix=/usr --disable-static + make +} + +package() { + cd SDL_ttf-$pkgver + make DESTDIR="$pkgdir" install + install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} Added: sdl_ttf/trunk/bug1433.patch =================================================================== --- sdl_ttf/trunk/bug1433.patch (rev 0) +++ sdl_ttf/trunk/bug1433.patch 2021-02-26 23:06:52 UTC (rev 874485) @@ -0,0 +1,11 @@ +--- SDL_ttf.c.orig 2012-02-12 16:36:41.859977617 +0100 ++++ SDL_ttf.c 2012-02-12 16:36:53.696580159 +0100 +@@ -1747,7 +1747,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; \ No newline at end of file Added: sdl_ttf/trunk/freetype-pkgconfig.patch =================================================================== --- sdl_ttf/trunk/freetype-pkgconfig.patch (rev 0) +++ sdl_ttf/trunk/freetype-pkgconfig.patch 2021-02-26 23:06:52 UTC (rev 874485) @@ -0,0 +1,46 @@ +https://bugs.gentoo.org/654758 + +--- SDL_ttf-2.0.11/configure.in ++++ SDL_ttf-2.0.11/configure.in +@@ -64,6 +64,7 @@ + ;; + esac + ++PKG_PROG_PKG_CONFIG + + dnl Check for iconv (character conversion library; see iconv.m4) + dnl This isn't available on many systems +@@ -94,6 +95,17 @@ + dnl + dnl Get the cflags and libraries from the freetype-config script + dnl ++PKG_CHECK_MODULES( ++ FREETYPE2, ++ freetype2, ++ [ ++ ft_found=yes ++ CFLAGS="$CFLAGS $FREETYPE2_CFLAGS" ++ LIBS="$LIBS $FREETYPE2_LIBS" ++ ], ++ ft_found=no ++) ++ + AC_ARG_WITH(freetype-prefix,[ --with-freetype-prefix=PFX Prefix where FREETYPE is + installed (optional)], + freetype_prefix="$withval", freetype_prefix="") +@@ -101,6 +113,7 @@ + where FREETYPE is installed (optional)], + freetype_exec_prefix="$withval", freetype_exec_prefix="") + ++if test "x$ft_found" != "xyes" ; then + if test x$freetype_exec_prefix != x ; then + freetype_args="$freetype_args --exec-prefix=$freetype_exec_prefix" + if test x${FREETYPE_CONFIG+set} != xset ; then +@@ -123,6 +136,7 @@ + CFLAGS="$CFLAGS `$FREETYPE_CONFIG $freetypeconf_args --cflags`" + LIBS="$LIBS `$FREETYPE_CONFIG $freetypeconf_args --libs`" + fi ++fi + + dnl Check for SDL + SDL_VERSION=1.2.4