From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Piotr OÅ¼arowski <piotr@debian.org>
Date: 11月, 29 2026 07:03:30 +0800
Subject: [PATCH] <short summary of the patch>

TODO: Put a short summary on the line above and replace this paragraph
with a longer explanation of this change. Complete the meta-information
with other relevant fields (see below for details). To make it easier, the
information below has been extracted from the changelog. Adjust it or drop
it.

---
The information above should follow the Patch Tagging Guidelines,
see https://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: (upstream|backport|vendor|other), (<patch-url>|commit:<commit-id>)
Bug: <upstream-bugtracker-url>
Bug-<Vendor>: <vendor-bugtracker-url>
Forwarded: (no|not-needed|<patch-forwarded-url>)
Applied-Upstream: <version>, (<commit-url>|commit:<commid-id>)
Reviewed-By: <name and email of someone who approved/reviewed the patch>

--- advancecomp-2.5.orig/Makefile.am
+++ advancecomp-2.5/Makefile.am
@@ -1,3 +1,5 @@
+LIBS += -ldeflate -lzopfli
+
 bin_PROGRAMS = advzip advpng advmng advdef
 
 7z_SOURCES = \
@@ -21,33 +23,6 @@ bin_PROGRAMS = advzip advpng advmng advd
 	7z/WindowIn.cc \
 	7z/WindowOut.cc
 
-libdeflate_SOURCES = \
-	libdeflate/adler32.c \
-	libdeflate/crc32.c \
-	libdeflate/deflate_compress.c\
-	libdeflate/deflate_decompress.c \
-	libdeflate/gzip_compress.c \
-	libdeflate/gzip_decompress.c \
-	libdeflate/utils.c \
-	libdeflate/zlib_compress.c \
-	libdeflate/zlib_decompress.c
-
-
-zopfli_SOURCES = \
-	zopfli/blocksplitter.c \
-	zopfli/cache.c \
-	zopfli/deflate.c \
-	zopfli/gzip_container.c \
-	zopfli/hash.c \
-	zopfli/katajainen.c \
-	zopfli/lz77.c \
-	zopfli/squeeze.c \
-	zopfli/tree.c \
-	zopfli/util.c \
-	zopfli/zlib_container.c \
-	zopfli/zopfli.h \
-	zopfli/zopfli_lib.c
-
 advzip_SOURCES = \
 	rezip.cc \
 	zip.cc \
@@ -59,9 +34,7 @@ advzip_SOURCES = \
 	getopt.c \
 	snprintf.c \
 	portable.c \
-	$(7z_SOURCES) \
-	$(libdeflate_SOURCES) \
-	$(zopfli_SOURCES)
+	$(7z_SOURCES)
 
 advpng_SOURCES = \
 	repng.cc \
@@ -77,9 +50,7 @@ advpng_SOURCES = \
 	lib/png.c \
 	lib/error.c \
 	lib/snstring.c \
-	$(7z_SOURCES) \
-	$(libdeflate_SOURCES) \
-	$(zopfli_SOURCES)
+	$(7z_SOURCES)
 
 advmng_SOURCES = \
 	remng.cc \
@@ -98,9 +69,7 @@ advmng_SOURCES = \
 	lib/mng.c \
 	lib/error.c \
 	lib/snstring.c \
-	$(7z_SOURCES) \
-	$(libdeflate_SOURCES) \
-	$(zopfli_SOURCES)
+	$(7z_SOURCES)
 
 advdef_SOURCES = \
 	redef.cc \
@@ -117,9 +86,7 @@ advdef_SOURCES = \
 	lib/snstring.c \
 	lib/png.c \
 	lib/mng.c \
-	$(7z_SOURCES) \
-	$(libdeflate_SOURCES) \
-	$(zopfli_SOURCES)
+	$(7z_SOURCES)
 
 # Add the .version file in the distribution
 dist-hook:
