OpenWrt packages
Sign in or create your account | Project List | Help
OpenWrt packages Git Source Tree
Root/
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 | |
8 | include $(TOPDIR)/rules.mk |
9 | |
10 | PKG_NAME:=libsdl-gfx |
11 | PKG_VERSION:=2.0.20 |
12 | PKG_RELEASE:=1 |
13 | |
14 | PKG_SOURCE:=SDL_gfx-$(PKG_VERSION).tar.gz |
15 | PKG_SOURCE_URL:=http://www.ferzkopp.net/Software/SDL_gfx-2.0/ |
16 | PKG_MD5SUM:=8a787e538a8e4d80d4927535be5af083 |
17 | PKG_BUILD_DIR:=$(BUILD_DIR)/SDL_gfx-$(PKG_VERSION) |
18 | |
19 | include $(INCLUDE_DIR)/package.mk |
20 | include $(INCLUDE_DIR)/nls.mk |
21 | |
22 | define 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 |
28 | endef |
29 | |
30 | define 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. |
32 | endef |
33 | |
34 | TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include/SDL |
35 | |
36 | CONFIGURE_VARS += \ |
37 | LIBS="-lSDL -ldirect -ldirectfb -lfusion" |
38 | |
39 | define Build/Configure |
40 | $(call Build/Configure/Default, \ |
41 | --disable-mmx \ |
42 | --with-sdl-exec-prefix=$(STAGING_DIR)\ |
43 | ) |
44 | endef |
45 | |
46 | define Build/Compile |
47 | rm -rf $(PKG_INSTALL_DIR) |
48 | $(MAKE) -C $(PKG_BUILD_DIR) \ |
49 | DESTDIR="$(PKG_INSTALL_DIR)" \ |
50 | all install |
51 | endef |
52 | |
53 | define 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 |
70 | endef |
71 | |
72 | define Package/libsdl-gfx/install |
73 | $(INSTALL_DIR) $(1)/usr/lib |
74 | $(CP) $(PKG_INSTALL_DIR)/usr/lib/libSDL_gfx*.so* $(1)/usr/lib/ |
75 | endef |
76 | |
77 | $(eval $(call BuildPackage,libsdl-gfx)) |
78 |