2007-11-16 16:33:46 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# SDL_ttf
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
SDL_TTF_VERSION:=2.0.9
|
|
|
|
SDL_TTF_SOURCE:=SDL_ttf-$(SDL_TTF_VERSION).tar.gz
|
|
|
|
SDL_TTF_SITE:=http://www.libsdl.org/projects/SDL_ttf/release/
|
|
|
|
SDL_TTF_CAT:=$(ZCAT)
|
|
|
|
SDL_TTF_DIR:=$(BUILD_DIR)/SDL_ttf-$(SDL_TTF_VERSION)
|
|
|
|
|
|
|
|
$(DL_DIR)/$(SDL_TTF_SOURCE):
|
2009-01-16 12:42:52 +01:00
|
|
|
$(call DOWNLOAD,$(SDL_TTF_SITE),$(SDL_TTF_SOURCE))
|
2007-11-16 16:33:46 +01:00
|
|
|
|
|
|
|
sdl_ttf-source: $(DL_DIR)/$(SDL_TTF_SOURCE)
|
|
|
|
|
|
|
|
$(SDL_TTF_DIR)/.unpacked: $(DL_DIR)/$(SDL_TTF_SOURCE)
|
|
|
|
$(SDL_TTF_CAT) $(DL_DIR)/$(SDL_TTF_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
|
|
|
$(CONFIG_UPDATE) $(SDL_TTF_DIR)
|
|
|
|
touch $@
|
|
|
|
|
|
|
|
$(SDL_TTF_DIR)/.configured: $(SDL_TTF_DIR)/.unpacked
|
|
|
|
(cd $(SDL_TTF_DIR); rm -rf config.cache; \
|
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
|
|
|
$(TARGET_CONFIGURE_ARGS) \
|
2009-10-01 21:24:42 +02:00
|
|
|
./configure $(QUIET) \
|
2007-11-16 16:33:46 +01:00
|
|
|
--target=$(GNU_TARGET_NAME) \
|
|
|
|
--host=$(GNU_TARGET_NAME) \
|
|
|
|
--build=$(GNU_HOST_NAME) \
|
|
|
|
--prefix=/usr \
|
|
|
|
--exec-prefix=/usr \
|
|
|
|
--bindir=/bin \
|
|
|
|
--sbindir=/sbin \
|
|
|
|
--libdir=/lib \
|
|
|
|
--libexecdir=/lib \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--datadir=/share \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--includedir=/include \
|
|
|
|
--mandir=/man \
|
|
|
|
--infodir=/info \
|
|
|
|
--without-x \
|
|
|
|
--with-freetype-prefix=$(STAGING_DIR)/usr \
|
|
|
|
--with-sdl-prefix=$(STAGING_DIR)/usr \
|
|
|
|
)
|
|
|
|
touch $@
|
|
|
|
|
|
|
|
$(SDL_TTF_DIR)/.compiled: $(SDL_TTF_DIR)/.configured
|
|
|
|
$(MAKE1) $(TARGET_CONFIGURE_OPTS) \
|
2008-11-19 11:44:24 +01:00
|
|
|
INCLUDES="-I$(STAGING_DIR)/usr/include/SDL -I$(STAGING_DIR)/usr/include/freetype2" \
|
2007-11-16 16:33:46 +01:00
|
|
|
LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
|
|
|
|
DESTDIR=$(STAGING_DIR)/usr -C $(SDL_TTF_DIR)
|
|
|
|
touch $@
|
|
|
|
|
|
|
|
$(STAGING_DIR)/usr/lib/libSDL_ttf.so: $(SDL_TTF_DIR)/.compiled
|
|
|
|
$(MAKE) DESTDIR=$(STAGING_DIR)/usr -C $(SDL_TTF_DIR) install
|
|
|
|
touch -c $@
|
|
|
|
|
|
|
|
$(TARGET_DIR)/usr/lib/libSDL_ttf.so: $(STAGING_DIR)/usr/lib/libSDL_ttf.so
|
|
|
|
cp -dpf $(STAGING_DIR)/usr/lib/libSDL_ttf*.so* $(TARGET_DIR)/usr/lib/
|
|
|
|
-$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/lib/libSDL_ttf.so
|
|
|
|
|
2009-09-02 17:02:02 +02:00
|
|
|
sdl_ttf: sdl $(TARGET_DIR)/usr/lib/libSDL_ttf.so
|
2007-11-16 16:33:46 +01:00
|
|
|
|
|
|
|
sdl_ttf-clean:
|
|
|
|
$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(SDL_TTF_DIR) uninstall
|
|
|
|
-$(MAKE) -C $(SDL_TTF_DIR) clean
|
|
|
|
|
|
|
|
sdl_ttf-dirclean:
|
|
|
|
rm -rf $(SDL_TTF_DIR)
|
|
|
|
|
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_SDL_TTF),y)
|
2007-11-16 16:33:46 +01:00
|
|
|
TARGETS+=sdl_ttf
|
|
|
|
endif
|