Root/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
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=libsdl-ttf
11PKG_VERSION:=2.0.9
12PKG_RELEASE:=2
13
14PKG_SOURCE:=SDL_ttf-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=http://www.libsdl.org/projects/SDL_ttf/release/
16PKG_MD5SUM:=6dd5a85e4924689a35a5fb1cb3336156
17PKG_BUILD_DIR:=$(BUILD_DIR)/SDL_ttf-$(PKG_VERSION)
18
19PKG_INSTALL:=1
20
21include $(INCLUDE_DIR)/package.mk
22
23define 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
29endef
30
31define 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.
33endef
34
35PKG_FIXUP:=libtool
36
37TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include/SDL
38
39CONFIGURE_ARGS += \
40       --with-sdl-exec-prefix=$(STAGING_DIR) \
41       --without-x \
42       LIBS="-lSDL"
43
44TARGET_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
49define 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/
61endef
62
63define 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/
70endef
71
72$(eval $(call BuildPackage,libsdl-ttf))
73

Archive Download this file



interactive