gpsbabel-1.5.4-use_system_shapelib.patch 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. --- a/configure.in 2017-01-02 06:05:19.000000000 +0100
  2. +++ b/configure.in 2017-01-21 00:26:02.239786037 +0100
  3. @@ -402,7 +402,7 @@
  4. AC_SUBST(QT_SYSINC_OPT)
  5. AC_SUBST(QT_LIBS)
  6. -AC_CONFIG_FILES([Makefile gbversion.h gui/setup.iss xmldoc/makedoc tools/mkcapabilities win32/gpsbabel.rc jeeps/Makefile shapelib/Makefile zlib/empty])
  7. +AC_CONFIG_FILES([Makefile gbversion.h gui/setup.iss xmldoc/makedoc tools/mkcapabilities win32/gpsbabel.rc jeeps/Makefile zlib/empty])
  8. AC_CONFIG_FILES([gui/makelinuxdist.sh], [chmod +x gui/makelinuxdist.sh])
  9. AC_OUTPUT
  10. --- a/Makefile.in 2017-01-02 06:05:19.000000000 +0100
  11. +++ b/Makefile.in 2017-01-21 00:29:05.715731486 +0100
  12. @@ -100,7 +100,7 @@
  13. # Extra modules in Jeeps that we don't use
  14. # jeeps/gpsfmt.o jeeps/gpsinput.o jeeps/gpsproj.o
  15. -SHAPE=shapelib/shpopen.o shapelib/dbfopen.o shapelib/safileio.o
  16. +SHAPE=-lshp
  17. MINIZIP=zlib/contrib/minizip/zip.o \
  18. zlib/contrib/minizip/ioapi.o
  19. @@ -119,7 +119,7 @@
  20. src/core/xmlstreamwriter.o \
  21. src/core/usasciicodec.o\
  22. src/core/ziparchive.o \
  23. - $(GARMIN) $(JEEPS) $(SHAPE) @ZLIB@ $(FMTS) $(FILTERS)
  24. + $(GARMIN) $(JEEPS) @ZLIB@ $(FMTS) $(FILTERS)
  25. OBJS = main.o globals.o $(LIBOBJS) @FILEINFO@
  26. DEPFILES = $(OBJS:.o=.d)
  27. @@ -148,10 +148,10 @@
  28. all: gpsbabel$(EXEEXT)
  29. gpsbabel$(EXEEXT): configure Makefile $(OBJS) @GPSBABEL_DEBUG@
  30. - $(CXX) $(CXXFLAGS) $(LDFLAGS) $(OBJS) @LIBS@ $(QT_LIBS) @USB_LIBS@ $(OUTPUT_SWITCH)$@
  31. + $(CXX) $(CXXFLAGS) $(LDFLAGS) $(OBJS) $(SHAPE) @LIBS@ $(QT_LIBS) @USB_LIBS@ $(OUTPUT_SWITCH)$@
  32. gpsbabel-debug: $(OBJS)
  33. - $(CXX) $(CXXFLAGS) $(LDFLAGS) $(OBJS) @LIBS@ @EFENCE_LIB@ $(QT_LIBS) @USB_LIBS@ $(OUTPUT_SWITCH)$@
  34. + $(CXX) $(CXXFLAGS) $(LDFLAGS) $(OBJS) $(SHAPE) @LIBS@ @EFENCE_LIB@ $(QT_LIBS) @USB_LIBS@ $(OUTPUT_SWITCH)$@
  35. Makefile gbversion.h: Makefile.in config.status xmldoc/makedoc.in \
  36. gbversion.h.in gui/setup.iss.in
  37. @@ -894,11 +894,7 @@
  38. session.o: session.cc defs.h config.h queue.h zlib/zlib.h zlib/zconf.h \
  39. gbfile.h cet.h inifile.h session.h src/core/datetime.h
  40. shape.o: shape.cc defs.h config.h queue.h zlib/zlib.h zlib/zconf.h \
  41. - gbfile.h cet.h inifile.h session.h src/core/datetime.h \
  42. - shapelib/shapefil.h
  43. -shapelib/dbfopen.o: shapelib/dbfopen.c shapelib/shapefil.h
  44. -shapelib/safileio.o: shapelib/safileio.c shapelib/shapefil.h
  45. -shapelib/shpopen.o: shapelib/shpopen.c shapelib/shapefil.h
  46. + gbfile.h cet.h inifile.h session.h src/core/datetime.h
  47. skyforce.o: skyforce.cc defs.h config.h queue.h zlib/zlib.h zlib/zconf.h \
  48. gbfile.h cet.h inifile.h session.h src/core/datetime.h
  49. skytraq.o: skytraq.cc defs.h config.h queue.h zlib/zlib.h zlib/zconf.h \
  50. --- a/shape.cc 2017-01-02 06:05:19.000000000 +0100
  51. +++ b/shape.cc 2017-01-21 00:29:58.514391517 +0100
  52. @@ -20,7 +20,7 @@
  53. */
  54. #include "defs.h"
  55. -#include "shapelib/shapefil.h"
  56. +#include <libshp/shapefil.h>
  57. #include <stdlib.h>
  58. #if SHAPELIB_ENABLED