浏览代码

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 年之前
父节点
当前提交
a4ed9eb177
共有 4 个文件被更改,包括 5 次插入30 次删除
  1. 0 12
      mswindows/osgeo4w/gdal-config
  2. 2 10
      mswindows/osgeo4w/geos-config
  3. 0 5
      mswindows/osgeo4w/liblas-config
  4. 3 3
      mswindows/osgeo4w/package.sh

+ 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_PREFIX="$OSGEO4W_ROOT_MSYS"
 CONFIG_CFLAGS="-I$OSGEO4W_ROOT_MSYS/include"
-CONFIG_VERSION="1.9.0"
 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()
 {
 	cat <<EOF
@@ -17,9 +15,7 @@ Options:
 	[--libs]
 	[--dep-libs]
 	[--cflags]
-	[--version]
 	[--ogr-enabled]
-	[--formats]
 EOF
 	exit $1
 }
@@ -45,18 +41,10 @@ case $1 in
     echo $CONFIG_PREFIX
     ;;
 
-  --version)
-    echo $CONFIG_VERSION
-    ;;
-
   --ogr-enabled)
     echo $CONFIG_OGR_ENABLED
     ;;
 
-  --formats)
-    echo $CONFIG_FORMATS
-    ;;
-
   *)
     usage 1 1>&2
     ;;

+ 2 - 10
mswindows/osgeo4w/geos-config

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

+ 0 - 5
mswindows/osgeo4w/liblas-config

@@ -72,7 +72,6 @@ Options:
 	[--cxxflags]
 	[--defines]
 	[--includes]
-	[--version]
 EOF
 	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
     ;;
     
-  --version)
-    echo 1.6.0
-    ;;
-
   *)
     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 
 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/libpq.lib mswindows/osgeo4w/lib/libpq.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
 	./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" \
 		--libexecdir=$OSGEO4W_ROOT_MSYS/bin \
 		--prefix=$OSGEO4W_ROOT_MSYS/apps/grass \
@@ -140,7 +140,7 @@ if ! [ -f mswindows/osgeo4w/configure-stamp ]; then
 	        --with-cairo \
 		--with-cairo-includes=$OSGEO4W_ROOT_MSYS/include/cairo \
                 --with-postgres
-
+        
 	touch mswindows/osgeo4w/configure-stamp
 fi