Просмотр исходного кода

wingrass: fix compilation issue with proj4 4.9 (avoid hacking Platform.make)
remove hardcoded options from config scripts
(merge https://trac.osgeo.org/grass/changeset/67021, https://trac.osgeo.org/grass/changeset/67023 from trunk)


git-svn-id: https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0@67024 15284696-431f-4ddb-bdfa-cd5b030d7da7

Martin Landa 9 лет назад
Родитель
Сommit
a4ed9eb177

+ 0 - 12
mswindows/osgeo4w/gdal-config

@@ -5,9 +5,7 @@ CONFIG_LIBS="$OSGEO4W_ROOT_MSYS/lib/gdal_i.lib"
 CONFIG_DEP_LIBS="$OSGEO4W_ROOT_MSYS/lib/libpng13.lib $OSGEO4W_ROOT_MSYS/lib/zlib.lib"
 CONFIG_DEP_LIBS="$OSGEO4W_ROOT_MSYS/lib/libpng13.lib $OSGEO4W_ROOT_MSYS/lib/zlib.lib"
 CONFIG_PREFIX="$OSGEO4W_ROOT_MSYS"
 CONFIG_PREFIX="$OSGEO4W_ROOT_MSYS"
 CONFIG_CFLAGS="-I$OSGEO4W_ROOT_MSYS/include"
 CONFIG_CFLAGS="-I$OSGEO4W_ROOT_MSYS/include"
-CONFIG_VERSION="1.9.0"
 CONFIG_OGR_ENABLED=yes
 CONFIG_OGR_ENABLED=yes
-CONFIG_FORMATS="gxf gtiff hfa aigrid aaigrid ceos ceos2 iso8211 xpm sdts raw dted mem jdem envisat elas fit vrt usgsdem l1b nitf bmp pcidsk airsar rs2 ilwis rmf rik leveller sgi idrisi bsb gif jpeg png pcraster "
 usage()
 usage()
 {
 {
 	cat <<EOF
 	cat <<EOF
@@ -17,9 +15,7 @@ Options:
 	[--libs]
 	[--libs]
 	[--dep-libs]
 	[--dep-libs]
 	[--cflags]
 	[--cflags]
-	[--version]
 	[--ogr-enabled]
 	[--ogr-enabled]
-	[--formats]
 EOF
 EOF
 	exit $1
 	exit $1
 }
 }
@@ -45,18 +41,10 @@ case $1 in
     echo $CONFIG_PREFIX
     echo $CONFIG_PREFIX
     ;;
     ;;
 
 
-  --version)
-    echo $CONFIG_VERSION
-    ;;
-
   --ogr-enabled)
   --ogr-enabled)
     echo $CONFIG_OGR_ENABLED
     echo $CONFIG_OGR_ENABLED
     ;;
     ;;
 
 
-  --formats)
-    echo $CONFIG_FORMATS
-    ;;
-
   *)
   *)
     usage 1 1>&2
     usage 1 1>&2
     ;;
     ;;

+ 2 - 10
mswindows/osgeo4w/geos-config

@@ -6,12 +6,10 @@ usage()
 Usage: geos-config [OPTIONS]
 Usage: geos-config [OPTIONS]
 Options:
 Options:
      [--prefix]
      [--prefix]
-     [--version]
      [--libs]
      [--libs]
      [--cflags]
      [--cflags]
      [--ldflags]
      [--ldflags]
      [--includes]
      [--includes]
-     [--jtsport]
 EOF
 EOF
     exit $1
     exit $1
 }
 }
@@ -25,13 +23,10 @@ case "$1" in
 esac
 esac
 case $1 in
 case $1 in
     --prefix)
     --prefix)
-    echo $OSGEO4W_ROOT_MSYS
-     ;;
-    --version)
-    echo 3.2.2
+      echo $OSGEO4W_ROOT_MSYS
      ;;
      ;;
     --cflags)
     --cflags)
-    echo -I$OSGEO4W_ROOT_MSYS/include
+      echo -I$OSGEO4W_ROOT_MSYS/include
       ;;
       ;;
     --libs)
     --libs)
       echo $OSGEO4W_ROOT_MSYS/lib/geos_c.lib
       echo $OSGEO4W_ROOT_MSYS/lib/geos_c.lib
@@ -42,9 +37,6 @@ case $1 in
     --includes)
     --includes)
       echo $OSGEO4W_ROOT_MSYS/include
       echo $OSGEO4W_ROOT_MSYS/include
       ;;
       ;;
-    --jtsport)
-    echo 1.10.0 
-      ;;
     *)
     *)
       usage 1 1>&2
       usage 1 1>&2
       ;;
       ;;

+ 0 - 5
mswindows/osgeo4w/liblas-config

@@ -72,7 +72,6 @@ Options:
 	[--cxxflags]
 	[--cxxflags]
 	[--defines]
 	[--defines]
 	[--includes]
 	[--includes]
-	[--version]
 EOF
 EOF
 	exit $1
 	exit $1
 }
 }
@@ -110,10 +109,6 @@ case $1 in
     echo  -pedantic -ansi -Wall -Wpointer-arith -Wcast-align -Wcast-qual -Wfloat-equal -Wredundant-decls -Wno-long-long -std=c++98
     echo  -pedantic -ansi -Wall -Wpointer-arith -Wcast-align -Wcast-qual -Wfloat-equal -Wredundant-decls -Wno-long-long -std=c++98
     ;;
     ;;
     
     
-  --version)
-    echo 1.6.0
-    ;;
-
   *)
   *)
     usage 1 1>&2
     usage 1 1>&2
     ;;
     ;;

+ 3 - 3
mswindows/osgeo4w/package.sh

@@ -96,7 +96,7 @@ exec 3>&1 >> mswindows/osgeo4w/package.log 2>&1
 
 
 [ -d mswindows/osgeo4w/lib ] || mkdir mswindows/osgeo4w/lib 
 [ -d mswindows/osgeo4w/lib ] || mkdir mswindows/osgeo4w/lib 
 cp -uv $OSGEO4W_ROOT_MSYS/lib/sqlite3_i.lib mswindows/osgeo4w/lib/libsqlite3.a 
 cp -uv $OSGEO4W_ROOT_MSYS/lib/sqlite3_i.lib mswindows/osgeo4w/lib/libsqlite3.a 
-cp -uv $OSGEO4W_ROOT_MSYS/lib/proj_i.lib mswindows/osgeo4w/lib/libproj_i.a 
+cp -uv $OSGEO4W_ROOT_MSYS/lib/proj_i.lib mswindows/osgeo4w/lib/libproj.a 
 cp -uv $OSGEO4W_ROOT_MSYS/lib/libtiff_i.lib mswindows/osgeo4w/lib/libtiff.a 
 cp -uv $OSGEO4W_ROOT_MSYS/lib/libtiff_i.lib mswindows/osgeo4w/lib/libtiff.a 
 cp -uv $OSGEO4W_ROOT_MSYS/lib/libpq.lib mswindows/osgeo4w/lib/libpq.a 
 cp -uv $OSGEO4W_ROOT_MSYS/lib/libpq.lib mswindows/osgeo4w/lib/libpq.a 
 cp -uv $OSGEO4W_ROOT_MSYS/lib/jpeg_i.lib mswindows/osgeo4w/lib/libjpeg.a 
 cp -uv $OSGEO4W_ROOT_MSYS/lib/jpeg_i.lib mswindows/osgeo4w/lib/libjpeg.a 
@@ -114,7 +114,7 @@ if ! [ -f mswindows/osgeo4w/configure-stamp ]; then
 
 
 	log configure
 	log configure
 	./configure \
 	./configure \
-		--with-libs="$OSGEO4W_ROOT_MSYS/lib $OSGEO4W_ROOT_MSYS/apps/msys/lib $PWD/mswindows/osgeo4w/lib" \
+		--with-libs="$PWD/mswindows/osgeo4w/lib $OSGEO4W_ROOT_MSYS/lib $OSGEO4W_ROOT_MSYS/apps/msys/lib" \
 		--with-includes="$OSGEO4W_ROOT_MSYS/include $OSGEO4W_ROOT_MSYS/apps/msys/include" \
 		--with-includes="$OSGEO4W_ROOT_MSYS/include $OSGEO4W_ROOT_MSYS/apps/msys/include" \
 		--libexecdir=$OSGEO4W_ROOT_MSYS/bin \
 		--libexecdir=$OSGEO4W_ROOT_MSYS/bin \
 		--prefix=$OSGEO4W_ROOT_MSYS/apps/grass \
 		--prefix=$OSGEO4W_ROOT_MSYS/apps/grass \
@@ -140,7 +140,7 @@ if ! [ -f mswindows/osgeo4w/configure-stamp ]; then
 	        --with-cairo \
 	        --with-cairo \
 		--with-cairo-includes=$OSGEO4W_ROOT_MSYS/include/cairo \
 		--with-cairo-includes=$OSGEO4W_ROOT_MSYS/include/cairo \
                 --with-postgres
                 --with-postgres
-
+        
 	touch mswindows/osgeo4w/configure-stamp
 	touch mswindows/osgeo4w/configure-stamp
 fi
 fi