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-ttf |
11 | PKG_VERSION:=2.0.9 |
12 | PKG_RELEASE:=2 |
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 | PKG_INSTALL:=1 |
20 | |
21 | include $(INCLUDE_DIR)/package.mk |
22 | |
23 | define Package/libsdl-ttf |
24 | SECTION:=libs |
25 | CATEGORY:=Libraries |
26 | TITLE:=Simple DirectMedia Layer True Font |
27 | URL:=http://www.libsdl.org/projects/SDL_ttf/ |
28 | DEPENDS:=+libsdl |
29 | endef |
30 | |
31 | define Package/libsdl-ttf/description |
32 | 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. |
33 | endef |
34 | |
35 | PKG_FIXUP:=libtool |
36 | |
37 | TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include/SDL |
38 | |
39 | CONFIGURE_ARGS += \ |
40 | --with-sdl-exec-prefix=$(STAGING_DIR) \ |
41 | --without-x \ |
42 | LIBS="-lSDL" |
43 | |
44 | TARGET_LDFLAGS+= \ |
45 | -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \ |
46 | -L$(STAGING_DIR)/usr/lib/libintl/lib \ |
47 | -L$(STAGING_DIR)/usr/lib/libiconv/lib |
48 | |
49 | define Build/InstallDev |
50 | $(INSTALL_DIR) \ |
51 | $(1)/usr/include/SDL \ |
52 | $(1)/usr/lib |
53 | |
54 | $(CP) \ |
55 | $(PKG_INSTALL_DIR)/usr/include/SDL/SDL_ttf.h \ |
56 | $(1)/usr/include/SDL/ |
57 | |
58 | $(CP) \ |
59 | $(PKG_INSTALL_DIR)/usr/lib/libSDL_ttf*.{a,so*} \ |
60 | $(1)/usr/lib/ |
61 | endef |
62 | |
63 | define Package/libsdl-ttf/install |
64 | $(INSTALL_DIR) \ |
65 | $(1)/usr/lib |
66 | |
67 | $(CP) \ |
68 | $(PKG_INSTALL_DIR)/usr/lib/libSDL_ttf*.so* \ |
69 | $(1)/usr/lib/ |
70 | endef |
71 | |
72 | $(eval $(call BuildPackage,libsdl-ttf)) |
73 |