# This file is part of MXE. # See index.html for further information. PKG := freetype $(PKG)_IGNORE := $(PKG)_VERSION := 2.5.0.1 $(PKG)_CHECKSUM := 4bbd8357b4b723e1ff38414a9eaf50bf99dacb84 $(PKG)_SUBDIR := freetype-$($(PKG)_VERSION) $(PKG)_FILE := freetype-$($(PKG)_VERSION).tar.bz2 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/freetype/freetype2/$(shell echo '$($(PKG)_VERSION)' | cut -d . -f 1,2,3)/$($(PKG)_FILE) $(PKG)_DEPS := gcc bzip2 libpng zlib define $(PKG)_UPDATE $(WGET) -q -O- 'http://sourceforge.net/projects/freetype/files/freetype2/' | \ $(SED) -n 's,.*/\([0-9][^"]*\)/".*,\1,p' | \ $(SORT) -V | \ tail -1 endef define $(PKG)_BUILD cd '$(1)' && GNUMAKE=$(MAKE) ./configure \ --host='$(TARGET)' \ --build="`config.guess`" \ --disable-shared \ --prefix='$(PREFIX)/$(TARGET)' \ LIBPNG_CFLAGS="`$(TARGET)-pkg-config libpng --cflags`" \ LIBPNG_LDFLAGS="`$(TARGET)-pkg-config libpng --libs`" \ FT2_EXTRA_LIBS="`$(TARGET)-pkg-config libpng --libs`" $(MAKE) -C '$(1)' -j '$(JOBS)' $(MAKE) -C '$(1)' -j 1 install endef