2010-02-08 16:52:46 +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-gfx
PKG_VERSION := 2.0.20
PKG_RELEASE := 1
PKG_SOURCE := SDL_gfx-$( PKG_VERSION) .tar.gz
PKG_SOURCE_URL := http://www.ferzkopp.net/Software/SDL_gfx-2.0/
PKG_MD5SUM := 8a787e538a8e4d80d4927535be5af083
PKG_BUILD_DIR := $( BUILD_DIR) /SDL_gfx-$( PKG_VERSION)
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
d e f i n e P a c k a g e / l i b s d l - g f x
SECTION:= libs
CATEGORY:= Libraries
TITLE:= Simple DirectMedia Layer Gfx
URL:= https://sourceforge.net/projects/sdlgfx/
DEPENDS:= +libsdl
e n d e f
d e f i n e P a c k a g e / l i b s d l - g f x / d e s c r i p t i o n
The SDL_gfx library evolved out of the SDL_gfxPrimitives code which provided basic drawing routines such as lines, circles or polygons and SDL_rotozoom which implemented a interpolating rotozoomer for SDL surfaces.
e n d e f
TARGET_CFLAGS += -I$( STAGING_DIR) /usr/include/SDL
CONFIGURE_VARS += \
2011-01-18 09:22:30 +02:00
LIBS = "-lSDL -ldirect -ldirectfb -lfusion -liconv"
2010-02-08 16:52:46 +02:00
d e f i n e B u i l d / C o n f i g u r e
$( call Build/Configure/Default, \
--disable-mmx \
--with-sdl-exec-prefix= $( STAGING_DIR) \
)
e n d e f
d e f i n e B u i l d / C o m p i l e
rm -rf $( PKG_INSTALL_DIR)
$( MAKE) -C $( PKG_BUILD_DIR) \
DESTDIR = " $( PKG_INSTALL_DIR) " \
all install
e n d e f
d e f i n e B u i l d / I n s t a l l D e v
$( INSTALL_DIR) $( 1) /usr/include/SDL $( 1) /usr/lib
$( CP) \
$( PKG_INSTALL_DIR) /usr/include/SDL/* \
$( 1) /usr/include/SDL/
$( CP) \
$( PKG_INSTALL_DIR) /usr/lib/*.{ 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 - g f x / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/lib
$( CP) $( PKG_INSTALL_DIR) /usr/lib/libSDL_gfx*.so* $( 1) /usr/lib/
e n d e f
$( eval $ ( call BuildPackage ,libsdl -gfx ) )