libdrawtext

diff configure @ 22:df6d52b36bd6

- properly supported building of no-freetype version, separately installed as libdrawtext-noft.whatever - saving/loading glyphmaps now work correctly - added nofreetype program in examples, to illustrate how to use libdrawtext-noft with prebuilt glyphmaps (see tools/font2glyphmap)
author John Tsiombikas <nuclear@member.fsf.org>
date Tue, 15 Apr 2014 05:10:39 +0300
parents fe0c54e574ae
children
line diff
     1.1 --- a/configure	Tue Apr 15 03:33:39 2014 +0300
     1.2 +++ b/configure	Tue Apr 15 05:10:39 2014 +0300
     1.3 @@ -4,6 +4,7 @@
     1.4  opt=false
     1.5  dbg=true
     1.6  use_ft2=true
     1.7 +name=libdrawtext
     1.8  
     1.9  while [ $# != 0 ]; do
    1.10  	case $1 in
    1.11 @@ -24,24 +25,33 @@
    1.12  		;;
    1.13  	--enable-freetype)
    1.14  		use_ft2=true
    1.15 +		name=libdrawtext
    1.16  		;;
    1.17  	--disable-freetype)
    1.18  		use_ft2=false
    1.19 +		name=libdrawtext-noft
    1.20  		;;
    1.21  	esac
    1.22  	shift
    1.23  done
    1.24  
    1.25 -echo 'Configuring libdrawtext...'
    1.26 +echo "installation prefix: $prefix"
    1.27 +$use_ft2 && echo 'use freetype: yes' || echo 'use freetype: no'
    1.28 +$opt && echo 'optimizations: yes' || echo 'optimizations: no'
    1.29 +$dbg && echo 'debug symbols: yes' || echo 'debug symbols: no'
    1.30 +
    1.31 +echo "Configuring ${name}..."
    1.32  
    1.33  echo "# do not modify this file manually, it's generated by the configure script" >Makefile
    1.34  echo "PREFIX = $prefix" >>Makefile
    1.35  $opt && echo '-O3' | xargs echo 'opt =' >>Makefile
    1.36  $dbg && echo '-g' | xargs echo 'dbg =' >>Makefile
    1.37  if $use_ft2; then
    1.38 +	echo "name = $name" >>Makefile
    1.39  	echo 'ft2_cflags = `pkg-config --cflags freetype2`' >>Makefile
    1.40  	echo 'ft2_libs = `pkg-config --libs freetype2`' >>Makefile
    1.41  else
    1.42 +	echo "name = $name" >>Makefile
    1.43  	echo 'ft2_cflags = -DNO_FREETYPE' >>Makefile
    1.44  fi
    1.45  echo '# --- end of generated part, start of Makefile.in ---' >>Makefile