diff options
| author | David Kühling <dvdkhlng@gmx.de> | 2011-01-02 15:19:00 +0100 |
|---|---|---|
| committer | David Kühling <dvdkhlng@gmx.de> | 2011-01-02 15:19:00 +0100 |
| commit | 9aaeb4623d3ff5746e665bc17914eefd292b7dcd (patch) | |
| tree | 370db60ffdc2ef840b7d1124d5a392f93bba3c9d /libsdl-ttf/Makefile | |
| download | qipackages-fork-9aaeb4623d3ff5746e665bc17914eefd292b7dcd.tar.gz | |
New OpenWrt package for GNU Octave. Experimental/probably still broken.grafted
Work in progress. Committing it as compilation seems to take forever.
Not sure whether I can finish this within a few days.
Diffstat (limited to 'libsdl-ttf/Makefile')
| -rw-r--r-- | libsdl-ttf/Makefile | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/libsdl-ttf/Makefile b/libsdl-ttf/Makefile new file mode 100644 index 0000000..9101ade --- /dev/null +++ b/libsdl-ttf/Makefile @@ -0,0 +1,72 @@ +# +# Copyright (C) 2010 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=libsdl-ttf +PKG_VERSION:=2.0.9 +PKG_RELEASE:=2 + +PKG_SOURCE:=SDL_ttf-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=http://www.libsdl.org/projects/SDL_ttf/release/ +PKG_MD5SUM:=6dd5a85e4924689a35a5fb1cb3336156 +PKG_BUILD_DIR:=$(BUILD_DIR)/SDL_ttf-$(PKG_VERSION) + +PKG_INSTALL:=1 + +include $(INCLUDE_DIR)/package.mk + +define Package/libsdl-ttf + SECTION:=libs + CATEGORY:=Libraries + TITLE:=Simple DirectMedia Layer True Font + URL:=http://www.libsdl.org/projects/SDL_ttf/ + DEPENDS:=+libsdl +endef + +define Package/libsdl-ttf/description + 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. +endef + +PKG_FIXUP:=libtool + +TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include/SDL + +CONFIGURE_ARGS += \ + --with-sdl-exec-prefix=$(STAGING_DIR) \ + --without-x \ + LIBS="-lSDL" + +TARGET_LDFLAGS+= \ + -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \ + -L$(STAGING_DIR)/usr/lib/libintl/lib \ + -L$(STAGING_DIR)/usr/lib/libiconv/lib + +define Build/InstallDev + $(INSTALL_DIR) \ + $(1)/usr/include/SDL \ + $(1)/usr/lib + + $(CP) \ + $(PKG_INSTALL_DIR)/usr/include/SDL/SDL_ttf.h \ + $(1)/usr/include/SDL/ + + $(CP) \ + $(PKG_INSTALL_DIR)/usr/lib/libSDL_ttf*.{a,so*} \ + $(1)/usr/lib/ +endef + +define Package/libsdl-ttf/install + $(INSTALL_DIR) \ + $(1)/usr/lib + + $(CP) \ + $(PKG_INSTALL_DIR)/usr/lib/libSDL_ttf*.so* \ + $(1)/usr/lib/ +endef + +$(eval $(call BuildPackage,libsdl-ttf)) |
