2010-02-15 17:31:51 +02:00
#
2010-02-08 16:53:18 +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-image
PKG_VERSION := 1.2.10
PKG_RELEASE := 1
PKG_SOURCE := SDL_image-$( PKG_VERSION) .tar.gz
PKG_SOURCE_URL := http://www.libsdl.org/projects/SDL_image/release/
PKG_MD5SUM := 6c06584b31559e2b59f2b982d0d1f628
PKG_BUILD_DIR := $( BUILD_DIR) /SDL_image-$( PKG_VERSION)
2010-02-15 17:31:51 +02:00
PKG_INSTALL := 1
2010-02-08 16:53:18 +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:18 +02:00
d e f i n e P a c k a g e / l i b s d l - i m a g e
SECTION:= libs
CATEGORY:= Libraries
TITLE:= Simple DirectMedia Layer Image
URL:= http://www.libsdl.org/projects/SDL_image/
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 - i m a g e / d e s c r i p t i o n
SDL_image is an image loading library that is used with the SDL library, and almost as portable. It allows a programmer to use multiple image formats without having to code all the loading and conversion algorithms themselves.
e n d e f
TARGET_CFLAGS += -I$( STAGING_DIR) /usr/include/SDL
CONFIGURE_ARGS += \
--with-sdl-exec-prefix= $( STAGING_DIR)
CONFIGURE_VARS += \
2011-02-06 21:12:06 +02:00
LIBS = "-lSDL -ldirect -ldirectfb -lfusion"
2010-02-08 16:53:18 +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-15 17:31:51 +02:00
$( INSTALL_DIR) $( 1) /usr/include/SDL $( 1) /usr/lib/pkgconfig
2010-02-08 16:53:18 +02:00
$( CP) \
$( PKG_INSTALL_DIR) /usr/include/SDL/SDL_image.h \
$( 1) /usr/include/SDL/
$( CP) \
$( PKG_INSTALL_DIR) /usr/lib/libSDL_image*.{ a,so*} \
$( 1) /usr/lib/
2010-02-15 17:31:51 +02:00
$( INSTALL_DATA) \
$( PKG_INSTALL_DIR) /usr/lib/pkgconfig/* \
$( 1) /usr/lib/pkgconfig/
2010-02-08 16:53:18 +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 - i m a g e / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/lib
$( CP) $( PKG_INSTALL_DIR) /usr/lib/libSDL_image*.so* $( 1) /usr/lib/
e n d e f
$( eval $ ( call BuildPackage ,libsdl -image ) )