OpenWrt packages
Sign in or create your account | Project List | Help
OpenWrt packages Commit Details
Date: | 2010-02-08 15:53:33 (11 years 17 days ago) |
---|---|
Author: | Mirko Lindner |
Commit: | 09839212fe7ef3f1b744689645af6bf6bf2644bd |
Message: | add libsdl-ttf Signed-off-by: Mirko Lindner <mirko@sharism.cc> |
Files: |
libsdl-ttf/Makefile (1 diff) |
Change Details
libsdl-ttf/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 | ||
8 | include $(TOPDIR)/rules.mk | |
9 | ||
10 | PKG_NAME:=libsdl-ttf | |
11 | PKG_VERSION:=2.0.9 | |
12 | PKG_RELEASE:=1 | |
13 | ||
14 | PKG_SOURCE:=SDL_ttf-$(PKG_VERSION).tar.gz | |
15 | PKG_SOURCE_URL:=http://www.libsdl.org/projects/SDL_ttf/release/ | |
16 | PKG_MD5SUM:=6dd5a85e4924689a35a5fb1cb3336156 | |
17 | PKG_BUILD_DIR:=$(BUILD_DIR)/SDL_ttf-$(PKG_VERSION) | |
18 | ||
19 | include $(INCLUDE_DIR)/package.mk | |
20 | ||
21 | define Package/libsdl-ttf | |
22 | SECTION:=libs | |
23 | CATEGORY:=Libraries | |
24 | TITLE:=Simple DirectMedia Layer True Font | |
25 | URL:=http://www.libsdl.org/projects/SDL_ttf/ | |
26 | DEPENDS:=+libsdl | |
27 | endef | |
28 | ||
29 | define Package/libsdl-ttf/description | |
30 | SDL_ttf is a TrueType font rendering library that is used with the SDL library, and almost as portable. It depends on freetype2 to handle the TrueType font data. It allows a programmer to use multiple TrueType fonts without having to code a font rendering routine themselves. With the power of outline fonts and antialiasing, high quality text output can be obtained without much effort. | |
31 | endef | |
32 | ||
33 | TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include/SDL | |
34 | ||
35 | CONFIGURE_ARGS += \ | |
36 | --with-sdl-exec-prefix=$(STAGING_DIR) | |
37 | ||
38 | CONFIGURE_VARS += \ | |
39 | LIBS="-lSDL -ldirect -ldirectfb -lfusion" | |
40 | ||
41 | define Build/Compile | |
42 | rm -rf $(PKG_INSTALL_DIR) | |
43 | $(MAKE) -C $(PKG_BUILD_DIR) \ | |
44 | DESTDIR="$(PKG_INSTALL_DIR)" \ | |
45 | all install | |
46 | endef | |
47 | ||
48 | define Build/InstallDev | |
49 | $(INSTALL_DIR) $(1)/usr/include/SDL $(1)/usr/lib | |
50 | $(CP) \ | |
51 | $(PKG_INSTALL_DIR)/usr/include/SDL/SDL_ttf.h \ | |
52 | $(1)/usr/include/SDL/ | |
53 | $(CP) \ | |
54 | $(PKG_INSTALL_DIR)/usr/lib/libSDL_ttf*.{a,so*} \ | |
55 | $(1)/usr/lib/ | |
56 | endef | |
57 | ||
58 | define Package/libsdl-ttf/install | |
59 | $(INSTALL_DIR) $(1)/usr/lib | |
60 | $(CP) $(PKG_INSTALL_DIR)/usr/lib/libSDL_ttf*.so* $(1)/usr/lib/ | |
61 | endef | |
62 | ||
63 | $(eval $(call BuildPackage,libsdl-ttf)) |