Debian Codegraph @

debian/patches/use-system-zlib.patch

raw symbols SCIP
1 Description: Allow user to use the system's zlib
2 Author: Rafael Laboissière <[email protected]>
3 Forwarded: https://github.com/praat/praat.github.io/pull/3327
4 Last-Update: 2026-08-08
5
6 --- praat-7.0+dfsg.orig/Makefile
7 +++ praat-7.0+dfsg/Makefile
8 @@ -374,6 +374,14 @@ endif
9 $(INSTALL) -Dm0644 main/praat-512.png $(DATADIR)/icons/hicolor/512x512/apps/org.praat.Praat.png
10 endif
11
12 +# Use system's or embedded zlib library
13 +USE_SYS_ZLIB ?= no
14 +ifeq ($(USE_SYS_ZLIB),no)
15 +ZLIB = external/zlib/libzlib.a
16 +else
17 +ZLIB = -lz
18 +endif
19 +
20 # Export some variables to the makefiles in the subdirectories.
21 export CPPFLAGS # listing of include files (plus any flags provided by any environment variables also called CPPFLAGS)
22 export CC
23 @@ -406,7 +414,7 @@ all: all-external all-self
24 external/opusfile/libopusfile.a \
25 external/whispercpp/libwhisper.a \
26 external/blake3/libblake3.a \
27 - external/zlib/libzlib.a \
28 + $(ZLIB) \
29 $(NON_PRAAT_LIBRARIES) $(LDFLAGS)
30
31 all-external:
32 @@ -423,7 +431,9 @@ all-external:
33 $(MAKE) -C external/opusfile
34 $(MAKE) -C external/whispercpp
35 $(MAKE) -C external/blake3
36 +ifeq ($(USE_SYS_ZLIB),no)
37 $(MAKE) -C external/zlib
38 +endif
39
40 all-self:
41 $(MAKE) -C kar
42 @@ -459,7 +469,9 @@ clean-external:
43 $(MAKE) -C external/opusfile clean
44 $(MAKE) -C external/whispercpp clean
45 $(MAKE) -C external/blake3 clean
46 +ifeq ($(USE_SYS_ZLIB),no)
47 $(MAKE) -C external/zlib clean
48 +endif
49
50 clean-self:
51 $(MAKE) -C kar clean