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) \
55        $(1)/usr/include/SDL \
56        $(1)/usr/lib \
57        $(1)/usr/lib/pkgconfig
58
59    $(CP) \
60        $(PKG_INSTALL_DIR)/usr/include/SDL/* \
61        $(1)/usr/include/SDL/
62
63    $(CP) \
64        $(PKG_INSTALL_DIR)/usr/lib/*.{a,so*} \
65        $(1)/usr/lib/
66
67    $(INSTALL_DATA) \
68        $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
69        $(1)/usr/lib/pkgconfig
70endef
71
72define Package/libsdl-gfx/install
73    $(INSTALL_DIR) $(1)/usr/lib
74    $(CP) $(PKG_INSTALL_DIR)/usr/lib/libSDL_gfx*.so* $(1)/usr/lib/
75endef
76
77$(eval $(call BuildPackage,libsdl-gfx))
78

Archive Download this file



interactive