1
0
mirror of git://projects.qi-hardware.com/openwrt-packages.git synced 2024-11-19 07:15:20 +02:00

remove X11-dependency and therefore need for GL

This commit is contained in:
Mirko Vogt 2010-02-20 10:35:44 +01:00
parent ed16950f42
commit 4f6e75dcf5

View File

@ -16,6 +16,8 @@ PKG_SOURCE_URL:=http://www.libsdl.org/projects/SDL_ttf/release/
PKG_MD5SUM:=6dd5a85e4924689a35a5fb1cb3336156 PKG_MD5SUM:=6dd5a85e4924689a35a5fb1cb3336156
PKG_BUILD_DIR:=$(BUILD_DIR)/SDL_ttf-$(PKG_VERSION) PKG_BUILD_DIR:=$(BUILD_DIR)/SDL_ttf-$(PKG_VERSION)
PKG_INSTALL:=1
include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/package.mk
define Package/libsdl-ttf define Package/libsdl-ttf
@ -30,34 +32,29 @@ 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. 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 endef
TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include/SDL CONFIGURE_ARGS += --without-x
CONFIGURE_ARGS += \
--with-sdl-exec-prefix=$(STAGING_DIR)
CONFIGURE_VARS += \
LIBS="-lSDL -ldirect -ldirectfb -lfusion"
define Build/Compile
rm -rf $(PKG_INSTALL_DIR)
$(MAKE) -C $(PKG_BUILD_DIR) \
DESTDIR="$(PKG_INSTALL_DIR)" \
all install
endef
define Build/InstallDev define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include/SDL $(1)/usr/lib $(INSTALL_DIR) \
$(1)/usr/include/SDL \
$(1)/usr/lib
$(CP) \ $(CP) \
$(PKG_INSTALL_DIR)/usr/include/SDL/SDL_ttf.h \ $(PKG_INSTALL_DIR)/usr/include/SDL/SDL_ttf.h \
$(1)/usr/include/SDL/ $(1)/usr/include/SDL/
$(CP) \ $(CP) \
$(PKG_INSTALL_DIR)/usr/lib/libSDL_ttf*.{a,so*} \ $(PKG_INSTALL_DIR)/usr/lib/libSDL_ttf*.{a,so*} \
$(1)/usr/lib/ $(1)/usr/lib/
endef endef
define Package/libsdl-ttf/install define Package/libsdl-ttf/install
$(INSTALL_DIR) $(1)/usr/lib $(INSTALL_DIR) \
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libSDL_ttf*.so* $(1)/usr/lib/ $(1)/usr/lib
$(CP) \
$(PKG_INSTALL_DIR)/usr/lib/libSDL_ttf*.so* \
$(1)/usr/lib/
endef endef
$(eval $(call BuildPackage,libsdl-ttf)) $(eval $(call BuildPackage,libsdl-ttf))