libdrawtext

view configure @ 67:bb21975c6c3a

added README file
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 27 Aug 2012 05:02:28 +0300
parents bfe431dd1d80
children df6d52b36bd6
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 ;;
13 --enable-opt)
14 opt=true
15 ;;
16 --disable-opt)
17 opt=false
18 ;;
19 --enable-dbg)
20 dbg=true
21 ;;
22 --disable-dbg)
23 dbg=false
24 ;;
25 --enable-freetype)
26 use_ft2=true
27 ;;
28 --disable-freetype)
29 use_ft2=false
30 ;;
31 esac
32 shift
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.'