CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
sdl_ttf: initial import (verified compilation)
authorJose V Beneyto <sepen@crux.nu>
Wed, 13 Jan 2010 20:46:45 +0000 (21:46 +0100)
committerJose V Beneyto <sepen@crux.nu>
Wed, 13 Jan 2010 20:46:45 +0000 (21:46 +0100)
sdl_ttf/.footprint [new file with mode: 0644]
sdl_ttf/.md5sum [new file with mode: 0644]
sdl_ttf/Pkgfile [new file with mode: 0644]
sdl_ttf/sdl_ttf-noftinternals.patch [new file with mode: 0644]

diff --git a/sdl_ttf/.footprint b/sdl_ttf/.footprint
new file mode 100644 (file)
index 0000000..c698074
--- /dev/null
@@ -0,0 +1,10 @@
+drwxr-xr-x     root/root       usr/
+drwxr-xr-x     root/root       usr/include/
+drwxr-xr-x     root/root       usr/include/SDL/
+-rw-r--r--     root/root       usr/include/SDL/SDL_ttf.h
+drwxr-xr-x     root/root       usr/lib/
+lrwxrwxrwx     root/root       usr/lib/libSDL_ttf-2.0.so.0 -> libSDL_ttf-2.0.so.0.6.2
+-rwxr-xr-x     root/root       usr/lib/libSDL_ttf-2.0.so.0.6.2
+-rw-r--r--     root/root       usr/lib/libSDL_ttf.a
+-rwxr-xr-x     root/root       usr/lib/libSDL_ttf.la
+lrwxrwxrwx     root/root       usr/lib/libSDL_ttf.so -> libSDL_ttf-2.0.so.0.6.2
diff --git a/sdl_ttf/.md5sum b/sdl_ttf/.md5sum
new file mode 100644 (file)
index 0000000..d4083fa
--- /dev/null
@@ -0,0 +1,2 @@
+094b6c08769e9842dbe1dfb5efa22df7  SDL_ttf-2.0.8.tar.gz
+b6c2d4ca22bea6031192e97aba7acb72  sdl_ttf-noftinternals.patch
diff --git a/sdl_ttf/Pkgfile b/sdl_ttf/Pkgfile
new file mode 100644 (file)
index 0000000..a474424
--- /dev/null
@@ -0,0 +1,36 @@
+# Description: TrueType library for libsdl.
+# URL: http://www.libsdl.org/projects/SDL_ttf/
+# Packager: Simone Rota sip at crux dot nu
+# Maintainer: Danny Rawlins monster dot romster at gmail dot com
+# Arch Maintainer: CRUX-ARM System Team, crux-arm at mikeux dot dyndns dot org
+# Depends on: freetype libsdl
+
+name=sdl_ttf
+version=2.0.8
+release=1
+source=(http://www.libsdl.org/projects/SDL_ttf/release/SDL_ttf-$version.tar.gz \
+        sdl_ttf-noftinternals.patch)
+
+build() {
+  cd SDL_ttf-$version
+
+  patch  -i $SRC/sdl_ttf-noftinternals.patch
+  export DEFAULT_LIBS="-L$CLFS/usr/lib"
+  export DEFAULT_CFLAGS="-I$CLFS/usr/include"
+  export SDL_LIBS="$DEFAULT_LIBS -lSDL -lpthread"
+  export SDL_CFLAGS="$DEFAULT_CFLAGS -I$CLFS/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT"
+
+  ./configure --build=$CHOST \
+              --host=$CTARGET \
+              --prefix=/usr \
+              --with-sdl-prefix=$CLFS/usr \
+              --with-freetype-prefix=$CLFS/usr \
+              --disable-sdltest 
+
+  sed -i Makefile \
+      -e "s|-I/usr|-I$CLFS/usr|g" \
+      -e "s|-L/usr|-L$CLFS/usr|g"
+
+  make
+  make DESTDIR=$PKG install
+}
diff --git a/sdl_ttf/sdl_ttf-noftinternals.patch b/sdl_ttf/sdl_ttf-noftinternals.patch
new file mode 100644 (file)
index 0000000..2d536ff
--- /dev/null
@@ -0,0 +1,24 @@
+diff -Nru SDL_ttf-2.0.8.orig/SDL_ttf.c SDL_ttf-2.0.8/SDL_ttf.c
+--- SDL_ttf-2.0.8.orig/SDL_ttf.c       2006-05-01 11:26:17.000000000 +0200
++++ SDL_ttf-2.0.8/SDL_ttf.c    2007-01-03 13:32:42.438178717 +0100
+@@ -47,9 +47,9 @@
+ #include <freetype/freetype.h>
+ #include <freetype/ftoutln.h>
+ #include <freetype/ttnameid.h>
+-*/
+-#include <freetype/internal/ftobjs.h>
++#include <freetype/internal/ftobjs.h>
++*/
+ #ifndef FT_OPEN_STREAM
+ #define FT_OPEN_STREAM ft_open_stream
+ #endif
+@@ -278,7 +278,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;