From 26b5c7824564536966d379d77e20f89cbc961b25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ralf=20Cors=C3=A9pius?= <corsepiu@fedoraproject.org> Date: Tue, 15 Apr 2014 05:18:38 +0200 Subject: [PATCH 2/6] gpsbabel-1.4.3-use-system-shapelib Use system shapelib - not suitable for upstream in this form. --- Makefile.in | 8 ++------ configure | 3 +-- configure.in | 2 +- shape.cc | 2 +- 4 files changed, 5 insertions(+), 10 deletions(-) diff --git a/Makefile.in b/Makefile.in index c147fa1..f950160 100644 --- a/Makefile.in +++ b/Makefile.in @@ -99,7 +99,7 @@ JEEPS=jeeps/gpsapp.o jeeps/gpscom.o \ # Extra modules in Jeeps that we don't use # jeeps/gpsfmt.o jeeps/gpsinput.o jeeps/gpsproj.o -SHAPE=shapelib/shpopen.o shapelib/dbfopen.o shapelib/safileio.o +SHAPE=-lshp ZLIB=zlib/adler32.o zlib/compress.o zlib/crc32.o zlib/deflate.o zlib/inffast.o \ zlib/inflate.o zlib/infback.o zlib/inftrees.o zlib/trees.o \ @@ -910,11 +910,7 @@ sbp.o: sbp.cc defs.h config.h queue.h zlib/zlib.h zlib/zconf.h gbfile.h \ session.o: session.cc defs.h config.h queue.h zlib/zlib.h zlib/zconf.h \ gbfile.h cet.h cet_util.h inifile.h session.h src/core/datetime.h shape.o: shape.cc defs.h config.h queue.h zlib/zlib.h zlib/zconf.h \ - gbfile.h cet.h cet_util.h inifile.h session.h src/core/datetime.h \ - shapelib/shapefil.h -shapelib/dbfopen.o: shapelib/dbfopen.c shapelib/shapefil.h -shapelib/safileio.o: shapelib/safileio.c shapelib/shapefil.h -shapelib/shpopen.o: shapelib/shpopen.c shapelib/shapefil.h + gbfile.h cet.h cet_util.h inifile.h session.h src/core/datetime.h skyforce.o: skyforce.cc defs.h config.h queue.h zlib/zlib.h zlib/zconf.h \ gbfile.h cet.h cet_util.h inifile.h session.h src/core/datetime.h skytraq.o: skytraq.cc defs.h config.h queue.h zlib/zlib.h zlib/zconf.h \ diff --git a/configure b/configure index dd2c80a..fa7af8b 100755 --- a/configure +++ b/configure @@ -4967,7 +4967,7 @@ fi -ac_config_files="$ac_config_files Makefile gbversion.h gui/setup.iss xmldoc/makedoc tools/mkcapabilities win32/gpsbabel.rc jeeps/Makefile shapelib/Makefile zlib/empty" +ac_config_files="$ac_config_files Makefile gbversion.h gui/setup.iss xmldoc/makedoc tools/mkcapabilities win32/gpsbabel.rc jeeps/Makefile zlib/empty" ac_config_files="$ac_config_files gui/makelinuxdist.sh" @@ -5670,7 +5670,6 @@ do "tools/mkcapabilities") CONFIG_FILES="$CONFIG_FILES tools/mkcapabilities" ;; "win32/gpsbabel.rc") CONFIG_FILES="$CONFIG_FILES win32/gpsbabel.rc" ;; "jeeps/Makefile") CONFIG_FILES="$CONFIG_FILES jeeps/Makefile" ;; - "shapelib/Makefile") CONFIG_FILES="$CONFIG_FILES shapelib/Makefile" ;; "zlib/empty") CONFIG_FILES="$CONFIG_FILES zlib/empty" ;; "gui/makelinuxdist.sh") CONFIG_FILES="$CONFIG_FILES gui/makelinuxdist.sh" ;; diff --git a/configure.in b/configure.in index db98f6d..066dc9b 100644 --- a/configure.in +++ b/configure.in @@ -386,7 +386,7 @@ AC_SUBST(QT_INC_OPT) AC_SUBST(QT_SYSINC_OPT) AC_SUBST(QT_LIBS) -AC_CONFIG_FILES([Makefile gbversion.h gui/setup.iss xmldoc/makedoc tools/mkcapabilities win32/gpsbabel.rc jeeps/Makefile shapelib/Makefile zlib/empty]) +AC_CONFIG_FILES([Makefile gbversion.h gui/setup.iss xmldoc/makedoc tools/mkcapabilities win32/gpsbabel.rc jeeps/Makefile zlib/empty]) AC_CONFIG_FILES([gui/makelinuxdist.sh], [chmod +x gui/makelinuxdist.sh]) AC_OUTPUT diff --git a/shape.cc b/shape.cc index b8779f0..d402584 100644 --- a/shape.cc +++ b/shape.cc @@ -20,7 +20,7 @@ */ #include "defs.h" -#include "shapelib/shapefil.h" +#include <shapefil.h> #if SHAPELIB_ENABLED static SHPHandle ihandle; -- 1.9.0