gpsbabel-1.5.4-use_system_zlib.patch 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. --- a/configure.in 2017-01-21 03:17:05.480317203 +0100
  2. +++ b/configure.in 2017-01-21 03:26:53.743671224 +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 zlib/empty])
  7. +AC_CONFIG_FILES([Makefile gbversion.h gui/setup.iss xmldoc/makedoc tools/mkcapabilities win32/gpsbabel.rc jeeps/Makefile])
  8. AC_CONFIG_FILES([gui/makelinuxdist.sh], [chmod +x gui/makelinuxdist.sh])
  9. AC_OUTPUT
  10. --- a/Makefile.in 2017-01-21 03:17:05.530317828 +0100
  11. +++ b/Makefile.in 2017-01-21 03:32:19.447032690 +0100
  12. @@ -102,14 +102,7 @@
  13. SHAPE=-lshp
  14. -MINIZIP=zlib/contrib/minizip/zip.o \
  15. - zlib/contrib/minizip/ioapi.o
  16. -
  17. -ZLIB=zlib/adler32.o zlib/compress.o zlib/crc32.o zlib/deflate.o zlib/inffast.o \
  18. - zlib/inflate.o zlib/infback.o zlib/inftrees.o zlib/trees.o \
  19. - zlib/uncompr.o zlib/gzlib.o zlib/gzclose.o zlib/gzread.o \
  20. - zlib/gzwrite.o zlib/zutil.o $(MINIZIP)
  21. -
  22. +ZLIB=-lz -lminizip
  23. LIBOBJS = queue.o route.o waypt.o filter_vecs.o util.o vecs.o mkshort.o \
  24. csv_util.o strptime.o grtcirc.o util_crc.o xmlgeneric.o \
  25. @@ -119,7 +112,7 @@
  26. src/core/xmlstreamwriter.o \
  27. src/core/usasciicodec.o\
  28. src/core/ziparchive.o \
  29. - $(GARMIN) $(JEEPS) @ZLIB@ $(FMTS) $(FILTERS)
  30. + $(GARMIN) $(JEEPS) $(FMTS) $(FILTERS)
  31. OBJS = main.o globals.o $(LIBOBJS) @FILEINFO@
  32. DEPFILES = $(OBJS:.o=.d)
  33. @@ -148,10 +141,10 @@
  34. all: gpsbabel$(EXEEXT)
  35. gpsbabel$(EXEEXT): configure Makefile $(OBJS) @GPSBABEL_DEBUG@
  36. - $(CXX) $(CXXFLAGS) $(LDFLAGS) $(OBJS) $(SHAPE) @LIBS@ $(QT_LIBS) @USB_LIBS@ $(OUTPUT_SWITCH)$@
  37. + $(CXX) $(CXXFLAGS) $(LDFLAGS) $(OBJS) $(SHAPE) $(ZLIB) @LIBS@ $(QT_LIBS) @USB_LIBS@ $(OUTPUT_SWITCH)$@
  38. gpsbabel-debug: $(OBJS)
  39. - $(CXX) $(CXXFLAGS) $(LDFLAGS) $(OBJS) $(SHAPE) @LIBS@ @EFENCE_LIB@ $(QT_LIBS) @USB_LIBS@ $(OUTPUT_SWITCH)$@
  40. + $(CXX) $(CXXFLAGS) $(LDFLAGS) $(OBJS) $(SHAPE) $(ZLIB) @LIBS@ @EFENCE_LIB@ $(QT_LIBS) @USB_LIBS@ $(OUTPUT_SWITCH)$@
  41. Makefile gbversion.h: Makefile.in config.status xmldoc/makedoc.in \
  42. gbversion.h.in gui/setup.iss.in
  43. --- a/src/core/ziparchive.cc 2017-01-02 06:05:19.000000000 +0100
  44. +++ b/src/core/ziparchive.cc 2017-01-21 03:51:30.402421165 +0100
  45. @@ -23,7 +23,7 @@
  46. #include "defs.h"
  47. #include "src/core/logging.h"
  48. -#include "zlib/contrib/minizip/zip.h"
  49. +#include <minizip/zip.h>
  50. #include <QtCore/QFile>
  51. #include <QtCore/QDebug>
  52. @@ -89,4 +89,4 @@
  53. return true;
  54. }
  55. return false;
  56. -}
  57. \ No newline at end of file
  58. +}
  59. --- a/src/core/ziparchive.h 2017-01-02 06:05:19.000000000 +0100
  60. +++ b/src/core/ziparchive.h 2017-01-21 03:51:05.931115241 +0100
  61. @@ -21,7 +21,7 @@
  62. #include <QtCore/QString>
  63. #include <QtCore/QStringList>
  64. -#include "zlib/contrib/minizip/zip.h"
  65. +#include <minizip/zip.h>
  66. class ZipArchive
  67. {