libdrawtext
annotate configure @ 5:095ff7ca4e74
added copyright notices
author | John Tsiombikas <nuclear@mutantstargoat.com> |
---|---|
date | Fri, 16 Sep 2011 08:42:07 +0300 |
parents | bfe431dd1d80 |
children | df6d52b36bd6 |
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 ;; |
nuclear@0 | 13 --enable-opt) |
nuclear@0 | 14 opt=true |
nuclear@0 | 15 ;; |
nuclear@0 | 16 --disable-opt) |
nuclear@0 | 17 opt=false |
nuclear@0 | 18 ;; |
nuclear@0 | 19 --enable-dbg) |
nuclear@0 | 20 dbg=true |
nuclear@0 | 21 ;; |
nuclear@0 | 22 --disable-dbg) |
nuclear@0 | 23 dbg=false |
nuclear@0 | 24 ;; |
nuclear@0 | 25 --enable-freetype) |
nuclear@0 | 26 use_ft2=true |
nuclear@0 | 27 ;; |
nuclear@0 | 28 --disable-freetype) |
nuclear@0 | 29 use_ft2=false |
nuclear@0 | 30 ;; |
nuclear@0 | 31 esac |
nuclear@3 | 32 shift |
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.' |