#!/bin/sh
#
# Copyright 2005 Dagmar d'Surreal <rivyqntzne@tznvy.pbz>
# Modified by Zach Borgerding <zborgerd@gmail.com>
# Available under the terms of the GNU GPL.
#

NAME="freetype2"
VERSION="2.1.10"
REVISION="2"

PKG_SOURCEURL='http://easynews.dl.sourceforge.net/sourceforge/freetype/freetype-$VERSION.tar.bz2'

PKG_PATCH[0]='bytecode.patch'

. $DLG_ROOT/config
. $DLG_ROOT/SCRIPTS/dropline-functions.sh

PKG_DOCFILES="$PKG_DOCFILES docs/CHANGES docs/CUSTOMIZE docs/DEBUG \
        docs/FTL.txt docs/GPL.txt docs/INSTALL docs/INSTALL.ANY \
        docs/INSTALL.GNU docs/INSTALL.UNX docs/INSTALL.VMS docs/license.txt \
        docs/modules.txt docs/PATENTS docs/release docs/TODO docs/TRUETYPE \
        docs/UPGRADE.UNX docs/VERSION.DLL"

cflags
prepare
analyzesource

# Before applying the Bytecode patch, please read through the potential
# patent issues at http://freetype.sourceforge.net/patents.html
#applypatch 0 1

configure
make
makeinstall 
spewdo "strip -g $PKG_STAGEROOT$PKG_PREFIX/bin/* 2>/dev/null"
spewdo "strip -g $PKG_STAGEROOT$PKG_PREFIX/lib/* 2>/dev/null"
tidydocumentation
analyzebinaries
includescript
finalizepackage
packagize
cleanup
