Root/libsdl-gfx/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-gfx
11PKG_VERSION:=2.0.20
12PKG_RELEASE:=1
13
14PKG_SOURCE:=SDL_gfx-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=http://www.ferzkopp.net/Software/SDL_gfx-2.0/
16PKG_MD5SUM:=8a787e538a8e4d80d4927535be5af083
17PKG_BUILD_DIR:=$(BUILD_DIR)/SDL_gfx-$(PKG_VERSION)
18
19include $(INCLUDE_DIR)/package.mk
20include $(INCLUDE_DIR)/nls.mk
21
22define Package/libsdl-gfx
23  SECTION:=libs
24  CATEGORY:=Libraries
25  TITLE:=Simple DirectMedia Layer Gfx
26  URL:=https://sourceforge.net/projects/sdlgfx/
27  DEPENDS:=+libsdl
28endef
29
30define Package/libsdl-gfx/description
31  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.
32endef
33
34TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include/SDL
35
36CONFIGURE_VARS += \
37    LIBS="-lSDL -ldirect -ldirectfb -lfusion"
38
39define Build/Configure
40    $(call Build/Configure/Default, \
41      --disable-mmx \
42      --with-sdl-exec-prefix=$(STAGING_DIR)\
43    )
44endef
45
46define Build/Compile
47    rm -rf $(PKG_INSTALL_DIR)
48    $(MAKE) -C $(PKG_BUILD_DIR) \
49        DESTDIR="$(PKG_INSTALL_DIR)" \
50        all install
51endef
52
53define Build/InstallDev
54    $(INSTALL_DIR) $(1)/usr/include/SDL $(1)/usr/lib
55    $(CP) \
56        $(PKG_INSTALL_DIR)/usr/include/SDL/* \
57        $(1)/usr/include/SDL/
58    $(CP) \
59        $(PKG_INSTALL_DIR)/usr/lib/*.{a,so*} \
60        $(1)/usr/lib/
61endef
62
63define Package/libsdl-gfx/install
64    $(INSTALL_DIR) $(1)/usr/lib
65    $(CP) $(PKG_INSTALL_DIR)/usr/lib/libSDL_gfx*.so* $(1)/usr/lib/
66endef
67
68$(eval $(call BuildPackage,libsdl-gfx))
69

Archive Download this file



interactive