Date:2010-02-08 15:53:18 (11 years 17 days ago)
Author:Mirko Lindner
Commit:106f87c1d67a32e9d4e720c54b2ddcee72cd6b6c
Message:add libsdl-image

Signed-off-by: Mirko Lindner <mirko@sharism.cc>
Files: libsdl-image/Makefile (1 diff)

Change Details

libsdl-image/Makefile
1#
2# Copyright (C) 2010 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=libsdl-image
11PKG_VERSION:=1.2.10
12PKG_RELEASE:=1
13
14PKG_SOURCE:=SDL_image-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=http://www.libsdl.org/projects/SDL_image/release/
16PKG_MD5SUM:=6c06584b31559e2b59f2b982d0d1f628
17PKG_BUILD_DIR:=$(BUILD_DIR)/SDL_image-$(PKG_VERSION)
18
19include $(INCLUDE_DIR)/package.mk
20
21define Package/libsdl-image
22  SECTION:=libs
23  CATEGORY:=Libraries
24  TITLE:=Simple DirectMedia Layer Image
25  URL:=http://www.libsdl.org/projects/SDL_image/
26  DEPENDS:=+libsdl
27endef
28
29define Package/libsdl-image/description
30  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.
31endef
32
33TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include/SDL
34
35CONFIGURE_ARGS += \
36    --with-sdl-exec-prefix=$(STAGING_DIR)
37
38CONFIGURE_VARS += \
39    LIBS="-lSDL -ldirect -ldirectfb -lfusion"
40
41define Build/Compile
42    rm -rf $(PKG_INSTALL_DIR)
43    $(MAKE) -C $(PKG_BUILD_DIR) \
44        DESTDIR="$(PKG_INSTALL_DIR)" \
45        all install
46endef
47
48define Build/InstallDev
49    $(INSTALL_DIR) $(1)/usr/include/SDL $(1)/usr/lib
50    $(CP) \
51        $(PKG_INSTALL_DIR)/usr/include/SDL/SDL_image.h \
52        $(1)/usr/include/SDL/
53    $(CP) \
54        $(PKG_INSTALL_DIR)/usr/lib/libSDL_image*.{a,so*} \
55        $(1)/usr/lib/
56endef
57
58define Package/libsdl-image/install
59    $(INSTALL_DIR) $(1)/usr/lib
60    $(CP) $(PKG_INSTALL_DIR)/usr/lib/libSDL_image*.so* $(1)/usr/lib/
61endef
62
63$(eval $(call BuildPackage,libsdl-image))

Archive Download the corresponding diff file



interactive