New package: sdl-ttf - SDL_ttf module

Signed-off-by: Markus Rathgeb <rathgeb.mar...@googlemail.com>
===============================================================================
diff -Naur org/rules/sdl-ttf.in sdl-ttf/rules/sdl-ttf.in
--- org/rules/sdl-ttf.in        1970-01-01 01:00:00.000000000 +0100
+++ sdl-ttf/rules/sdl-ttf.in    2009-08-08 02:32:16.000000000 +0200
@@ -0,0 +1,7 @@
+## SECTION=multimedia_sdl
+
+config SDL_TTF
+       tristate
+       select SDL
+       select FREETYPE
+       prompt "SDL ttf                     "
diff -Naur org/rules/sdl-ttf.make sdl-ttf/rules/sdl-ttf.make
--- org/rules/sdl-ttf.make      1970-01-01 01:00:00.000000000 +0100
+++ sdl-ttf/rules/sdl-ttf.make  2009-08-08 02:32:16.000000000 +0200
@@ -0,0 +1,77 @@
+# Copyright (C) 2009 by Markus Rathgeb <rathgeb.mar...@googlemail.com>
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_SDL_TTF) += sdl-ttf
+
+#
+# Paths and names
+#
+SDL_TTF_VERSION        := 2.0.9
+SDL_TTF                := SDL_ttf-$(SDL_TTF_VERSION)
+SDL_TTF_SUFFIX := tar.gz
+SDL_TTF_URL    := 
http://www.libsdl.org/projects/SDL_ttf/release/$(SDL_TTF).$(SDL_TTF_SUFFIX)
+SDL_TTF_SOURCE := $(SRCDIR)/$(SDL_TTF).$(SDL_TTF_SUFFIX)
+SDL_TTF_DIR    := $(BUILDDIR)/$(SDL_TTF)
+
+
+# ----------------------------------------------------------------------------
+# Get
+# ----------------------------------------------------------------------------
+
+$(SDL_TTF_SOURCE):
+       @$(call targetinfo)
+       @$(call get, SDL_TTF)
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+SDL_TTF_PATH   :=  PATH=$(CROSS_PATH)
+SDL_TTF_ENV    :=  $(CROSS_ENV)
+
+#
+# autoconf
+#
+SDL_TTF_AUTOCONF := \
+       $(CROSS_AUTOCONF_USR) \
+       --with-sdl-prefix=$(SYSROOT)/usr \
+       --disable-sdltest \
+       --disable-dependency-tracking \
+       --without-x 
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/sdl-ttf.targetinstall:
+       @$(call targetinfo)
+
+       @$(call install_init, sdl-ttf)
+       @$(call install_fixup, sdl-ttf,PACKAGE,sdl-ttf)
+       @$(call install_fixup, sdl-ttf,PRIORITY,optional)
+       @$(call install_fixup, sdl-ttf,VERSION,$(SDL_TTF_VERSION))
+       @$(call install_fixup, sdl-ttf,SECTION,base)
+       @$(call install_fixup, sdl-ttf,AUTHOR,"Markus Rathgeb 
<rathgeb.mark...@googlemail.com>")
+       @$(call install_fixup, sdl-ttf,DEPENDS,)
+       @$(call install_fixup, sdl-ttf,DESCRIPTION,missing)
+
+       @$(call install_copy, sdl-ttf, 0, 0, 0644, 
$(SDL_TTF_DIR)/.libs/libSDL_ttf-2.0.so.0.6.3, /usr/lib/libSDL_ttf-2.0.so.0.6.3)
+       @$(call install_link, sdl-ttf, libSDL_ttf-2.0.so.0.6.3, 
/usr/lib/libSDL_ttf-2.0.so.0)
+       @$(call install_link, sdl-ttf, libSDL_ttf-2.0.so.0.6.3, 
/usr/lib/libSDL_ttf.so)
+
+       @$(call install_finish, sdl-ttf)
+
+       @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Clean
+# ----------------------------------------------------------------------------
+
+sdl-ttf_clean:
+       rm -rf $(STATEDIR)/sdl-ttf.*
+       rm -rf $(PKGDIR)/sdl-ttf_*
+       rm -rf $(SDL_TTF_DIR)
+
+# vim: syntax=make

-- 

Markus Rathgeb
Public Key Server: http://wwwkeys.us.pgp.net/ bzw. hkp://wwwkeys.us.pgp.net/
Public Key Server: http://stinkfoot.org:11371/ bzw. hkp://stinkfoot.org

"Erst nachdem wir alles verloren haben, haben wir die Freiheit, alles zu tun."
"It's only after we've lost everything, that we're free to do anything!" 

Attachment: signature.asc
Description: This is a digitally signed message part.

--
ptxdist mailing list
ptxdist@pengutronix.de

Reply via email to