libdrawtext

diff configure @ 0:bfe431dd1d80

initial commit
author John Tsiombikas <nuclear@mutantstargoat.com>
date Thu, 15 Sep 2011 10:47:38 +0300
parents
children fe0c54e574ae
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/configure	Thu Sep 15 10:47:38 2011 +0300
     1.3 @@ -0,0 +1,50 @@
     1.4 +#!/bin/sh
     1.5 +
     1.6 +prefix=/usr/local
     1.7 +opt=false
     1.8 +dbg=true
     1.9 +use_ft2=true
    1.10 +
    1.11 +while [ $# != 0 ]; do
    1.12 +	case $1 in
    1.13 +	--prefix=*)
    1.14 +		prefix=`echo $1 | sed 's/^--prefix=//'`
    1.15 +		shift
    1.16 +		;;
    1.17 +	--enable-opt)
    1.18 +		opt=true
    1.19 +		;;
    1.20 +	--disable-opt)
    1.21 +		opt=false
    1.22 +		;;
    1.23 +	--enable-dbg)
    1.24 +		dbg=true
    1.25 +		;;
    1.26 +	--disable-dbg)
    1.27 +		dbg=false
    1.28 +		;;
    1.29 +	--enable-freetype)
    1.30 +		use_ft2=true
    1.31 +		;;
    1.32 +	--disable-freetype)
    1.33 +		use_ft2=false
    1.34 +		;;
    1.35 +	esac
    1.36 +done
    1.37 +
    1.38 +echo 'Configuring libdrawtext...'
    1.39 +
    1.40 +echo "# do not modify this file manually, it's generated by the configure script" >Makefile
    1.41 +echo "PREFIX = $prefix" >>Makefile
    1.42 +$opt && echo '-O3' | xargs echo 'opt =' >>Makefile
    1.43 +$dbg && echo '-g' | xargs echo 'dbg =' >>Makefile
    1.44 +if $use_ft2; then
    1.45 +	echo 'ft2_cflags = `pkg-config --cflags freetype2`' >>Makefile
    1.46 +	echo 'ft2_libs = `pkg-config --libs freetype2`' >>Makefile
    1.47 +else
    1.48 +	echo 'ft2_cflags = -DNO_FREETYPE' >>Makefile
    1.49 +fi
    1.50 +echo '# --- end of generated part, start of Makefile.in ---' >>Makefile
    1.51 +cat Makefile.in >>Makefile
    1.52 +
    1.53 +echo 'Done. Run make (or gmake) to compile.'