Root/libsdl-gfx/Makefile

Source at commit 214282e7813b172a2bee70d975a0db5ec8d0f31a created 11 years 2 months ago.
By Mirko Lindner, add libsdl-gfx
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
20
21define Package/libsdl-gfx
22  SECTION:=libs
23  CATEGORY:=Libraries
24  TITLE:=Simple DirectMedia Layer Gfx
25  URL:=https://sourceforge.net/projects/sdlgfx/
26  DEPENDS:=+libsdl
27endef
28
29define Package/libsdl-gfx/description
30  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.
31endef
32
33TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include/SDL
34
35CONFIGURE_VARS += \
36    LIBS="-lSDL -ldirect -ldirectfb -lfusion"
37
38define Build/Configure
39    $(call Build/Configure/Default, \
40      --disable-mmx \
41      --with-sdl-exec-prefix=$(STAGING_DIR)\
42    )
43endef
44
45define Build/Compile
46    rm -rf $(PKG_INSTALL_DIR)
47    $(MAKE) -C $(PKG_BUILD_DIR) \
48        DESTDIR="$(PKG_INSTALL_DIR)" \
49        all install
50endef
51
52define Build/InstallDev
53    $(INSTALL_DIR) $(1)/usr/include/SDL $(1)/usr/lib
54    $(CP) \
55        $(PKG_INSTALL_DIR)/usr/include/SDL/* \
56        $(1)/usr/include/SDL/
57    $(CP) \
58        $(PKG_INSTALL_DIR)/usr/lib/*.{a,so*} \
59        $(1)/usr/lib/
60endef
61
62define Package/libsdl-gfx/install
63    $(INSTALL_DIR) $(1)/usr/lib
64    $(CP) $(PKG_INSTALL_DIR)/usr/lib/libSDL_gfx*.so* $(1)/usr/lib/
65endef
66
67$(eval $(call BuildPackage,libsdl-gfx))
68

Archive Download this file



interactive