2010-02-08 16:53:33 +02:00
#
# Copyright (C) 2010 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
i n c l u d e $( TOPDIR ) / r u l e s . m k
PKG_NAME := libsdl-ttf
PKG_VERSION := 2.0.9
2010-03-01 16:37:02 +02:00
PKG_RELEASE := 2
2010-02-08 16:53:33 +02:00
PKG_SOURCE := SDL_ttf-$( PKG_VERSION) .tar.gz
PKG_SOURCE_URL := http://www.libsdl.org/projects/SDL_ttf/release/
PKG_MD5SUM := 6dd5a85e4924689a35a5fb1cb3336156
PKG_BUILD_DIR := $( BUILD_DIR) /SDL_ttf-$( PKG_VERSION)
2010-02-20 11:35:44 +02:00
PKG_INSTALL := 1
2010-02-08 16:53:33 +02:00
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
2011-02-06 21:12:06 +02:00
i n c l u d e $( INCLUDE_DIR ) / n l s . m k
2010-02-08 16:53:33 +02:00
d e f i n e P a c k a g e / l i b s d l - t t f
SECTION:= libs
CATEGORY:= Libraries
TITLE:= Simple DirectMedia Layer True Font
URL:= http://www.libsdl.org/projects/SDL_ttf/
2011-02-06 21:12:06 +02:00
DEPENDS:= +libsdl $( ICONV_DEPENDS) $( INTL_DEPENDS)
2010-02-08 16:53:33 +02:00
e n d e f
d e f i n e P a c k a g e / l i b s d l - t t f / d e s c r i p t i o n
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.
e n d e f
2010-03-01 16:37:02 +02:00
PKG_FIXUP := libtool
TARGET_CFLAGS += -I$( STAGING_DIR) /usr/include/SDL
CONFIGURE_ARGS += \
--with-sdl-exec-prefix= $( STAGING_DIR) \
--without-x \
2011-02-06 21:12:06 +02:00
LIBS = "-lSDL -liconv"
2010-03-01 16:37:02 +02:00
TARGET_LDFLAGS += \
2011-02-06 21:12:06 +02:00
-Wl,-rpath-link= $( STAGING_DIR) /usr/lib
2010-02-08 16:53:33 +02:00
d e f i n e B u i l d / I n s t a l l D e v
2010-02-20 11:35:44 +02:00
$( INSTALL_DIR) \
$( 1) /usr/include/SDL \
$( 1) /usr/lib
2010-02-08 16:53:33 +02:00
$( CP) \
$( PKG_INSTALL_DIR) /usr/include/SDL/SDL_ttf.h \
$( 1) /usr/include/SDL/
2010-02-20 11:35:44 +02:00
2010-02-08 16:53:33 +02:00
$( CP) \
$( PKG_INSTALL_DIR) /usr/lib/libSDL_ttf*.{ a,so*} \
$( 1) /usr/lib/
e n d e f
d e f i n e P a c k a g e / l i b s d l - t t f / i n s t a l l
2010-02-20 11:35:44 +02:00
$( INSTALL_DIR) \
$( 1) /usr/lib
$( CP) \
$( PKG_INSTALL_DIR) /usr/lib/libSDL_ttf*.so* \
$( 1) /usr/lib/
2010-02-08 16:53:33 +02:00
e n d e f
$( eval $ ( call BuildPackage ,libsdl -ttf ) )