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