goat3dgfx

diff configure @ 23:0ac499409edd

added misisng header file in goat3dgfx.h added contains() function in geom
author John Tsiombikas <nuclear@member.fsf.org>
date Tue, 25 Feb 2014 23:47:48 +0200
parents 7d6b667821cf
children 7f0aed0fe289
line diff
     1.1 --- a/configure	Sat Dec 28 06:48:23 2013 +0200
     1.2 +++ b/configure	Tue Feb 25 23:47:48 2014 +0200
     1.3 @@ -5,7 +5,7 @@
     1.4  dbg=true
     1.5  vr=true
     1.6  
     1.7 -for arg; do
     1.8 +for arg in $#; do
     1.9  	case "$arg" in
    1.10  	--prefix=*)
    1.11  		value=`echo $arg | sed 's/--prefix=//'`
    1.12 @@ -204,6 +204,25 @@
    1.13  	cat Makefile.in >>Makefile
    1.14  }
    1.15  
    1.16 +gen_pkgconfig()
    1.17 +{
    1.18 +	pcfile=goat3dgfx.pc
    1.19 +	echo "generating: $pcfile ..."
    1.20 +	begin_emit $pcfile
    1.21 +
    1.22 +	emit "prefix=$prefix"
    1.23 +	emit "ver=0.1"
    1.24 +
    1.25 +	if [ `uname -s` = Darwin ]; then
    1.26 +		emit 'libgl=-framework OpenGL -framework GLUT -lGLEW'
    1.27 +	else
    1.28 +		emit 'libgl=-lGL -lGLU -lglut -lGLEW'
    1.29 +	fi
    1.30 +	emit 'libovr='
    1.31 +
    1.32 +	cat ${pcfile}.in >>$pcfile
    1.33 +}
    1.34 +
    1.35  check_opengl
    1.36  check_glut
    1.37  check_glew
    1.38 @@ -211,3 +230,4 @@
    1.39  
    1.40  gen_makefile
    1.41  gen_config
    1.42 +gen_pkgconfig