libdrawtext

annotate configure @ 54:4b5bdd7b2cb8

added the LGPL license
author John Tsiombikas <nuclear@mutantstargoat.com>
date Thu, 15 Sep 2011 13:56:54 +0300
parents
children fe0c54e574ae
rev   line source
nuclear@0 1 #!/bin/sh
nuclear@0 2
nuclear@0 3 prefix=/usr/local
nuclear@0 4 opt=false
nuclear@0 5 dbg=true
nuclear@0 6 use_ft2=true
nuclear@0 7
nuclear@0 8 while [ $# != 0 ]; do
nuclear@0 9 case $1 in
nuclear@0 10 --prefix=*)
nuclear@0 11 prefix=`echo $1 | sed 's/^--prefix=//'`
nuclear@0 12 shift
nuclear@0 13 ;;
nuclear@0 14 --enable-opt)
nuclear@0 15 opt=true
nuclear@0 16 ;;
nuclear@0 17 --disable-opt)
nuclear@0 18 opt=false
nuclear@0 19 ;;
nuclear@0 20 --enable-dbg)
nuclear@0 21 dbg=true
nuclear@0 22 ;;
nuclear@0 23 --disable-dbg)
nuclear@0 24 dbg=false
nuclear@0 25 ;;
nuclear@0 26 --enable-freetype)
nuclear@0 27 use_ft2=true
nuclear@0 28 ;;
nuclear@0 29 --disable-freetype)
nuclear@0 30 use_ft2=false
nuclear@0 31 ;;
nuclear@0 32 esac
nuclear@0 33 done
nuclear@0 34
nuclear@0 35 echo 'Configuring libdrawtext...'
nuclear@0 36
nuclear@0 37 echo "# do not modify this file manually, it's generated by the configure script" >Makefile
nuclear@0 38 echo "PREFIX = $prefix" >>Makefile
nuclear@0 39 $opt && echo '-O3' | xargs echo 'opt =' >>Makefile
nuclear@0 40 $dbg && echo '-g' | xargs echo 'dbg =' >>Makefile
nuclear@0 41 if $use_ft2; then
nuclear@0 42 echo 'ft2_cflags = `pkg-config --cflags freetype2`' >>Makefile
nuclear@0 43 echo 'ft2_libs = `pkg-config --libs freetype2`' >>Makefile
nuclear@0 44 else
nuclear@0 45 echo 'ft2_cflags = -DNO_FREETYPE' >>Makefile
nuclear@0 46 fi
nuclear@0 47 echo '# --- end of generated part, start of Makefile.in ---' >>Makefile
nuclear@0 48 cat Makefile.in >>Makefile
nuclear@0 49
nuclear@0 50 echo 'Done. Run make (or gmake) to compile.'