]> git.pld-linux.org Git - packages/gpsbabel.git/blob - gpsbabel-system-minizip.patch
- rel 1
[packages/gpsbabel.git] / gpsbabel-system-minizip.patch
1 diff -ruNp gpsbabel-1.6.0.orig/Makefile.in gpsbabel-1.6.0/Makefile.in
2 --- gpsbabel-1.6.0.orig/Makefile.in     2019-05-02 10:26:47.000000000 +0200
3 +++ gpsbabel-1.6.0/Makefile.in  2019-08-06 03:31:17.476367571 +0200
4 @@ -121,7 +121,7 @@ LIBOBJS = route.o waypt.o filter_vecs.o
5      src/core/textstream.o \
6           src/core/usasciicodec.o \
7           src/core/xmlstreamwriter.o \
8 -         $(GARMIN) $(JEEPS) $(FMTS) $(FILTERS) $(SHAPE) @ZLIB@
9 +         $(GARMIN) $(JEEPS) $(FMTS) $(FILTERS) $(SHAPE) @ZLIB@ @MINIZIP@
10  OBJS = main.o globals.o $(LIBOBJS) @FILEINFO@
11  
12  DEPFILES = $(OBJS:.o=.d)
13 diff -ruNp gpsbabel-1.6.0.orig/config.h.in gpsbabel-1.6.0/config.h.in
14 --- gpsbabel-1.6.0.orig/config.h.in     2019-05-02 10:26:47.000000000 +0200
15 +++ gpsbabel-1.6.0/config.h.in  2019-08-06 03:32:15.346105354 +0200
16 @@ -21,6 +21,9 @@
17  /* Define to 1 if you have the `m' library (-lm). */
18  #undef HAVE_LIBM
19  
20 +/* Define to 1 if you have the `minizip' library (-lminizip). */
21 +#undef HAVE_LIBMINIZIP
22 +
23  /* Defined if you have libusb */
24  #undef HAVE_LIBUSB
25  
26 @@ -66,6 +69,9 @@
27  /* 1 to enable as many formats as possible */
28  #undef MAXIMAL_ENABLED
29  
30 +/* 1 to inhibit our use of libminizip. */
31 +#undef MINIZIP_INHIBITED
32 +
33  /* Define to the address where bug reports for this package should be sent. */
34  #undef PACKAGE_BUGREPORT
35  
36 diff -ruNp gpsbabel-1.6.0.orig/configure.ac gpsbabel-1.6.0/configure.ac
37 --- gpsbabel-1.6.0.orig/configure.ac    2019-05-02 10:26:47.000000000 +0200
38 +++ gpsbabel-1.6.0/configure.ac 2019-08-06 03:34:20.233539240 +0200
39 @@ -128,6 +128,22 @@ AS_CASE([$with_zlib], ["system"], [
40  AC_SUBST(ZLIB_CPP)
41  AC_SUBST(ZLIB)
42  
43 +AC_MSG_CHECKING([whether to support zlib's minizip])
44 +AC_ARG_WITH([libminizip],
45 +       [AS_HELP_STRING(
46 +               [--with-libminizip=(included)|system|no],
47 +               [])])
48 +AS_CASE([$with_libminizip], ["system"], [
49 +       AC_CHECK_LIB([minizip], [zipOpen64])
50 +], ["no"], [
51 +       AC_DEFINE(MINIZIP_INHIBITED, 1, [1 to inhibit our use of libminizip.])
52 +       AC_MSG_RESULT([no])
53 +], [
54 +       MINIZIP="\$(MINIZIP)"
55 +       AC_MSG_RESULT([using included version])
56 +])
57 +AC_SUBST(MINIZIP)
58 +
59  AS_CASE(["$target"], [*-*-mingw32*], [
60         FILEINFO=fileinfo.o
61         AS_IF([test "$CC" = "gcc"], [
This page took 0.143243 seconds and 3 git commands to generate.