Closed kberry closed 10 months ago
Hi Karl, thanks for sending the patch. I adapted it a little so that it also works with non-TL builds. Could you please check if it still works with TL?
diff -r 9e4b9c2474b9 -r d94256099fa1 libs/Makefile.am
--- a/libs/Makefile.am Tue Jan 16 10:39:07 2024 +0100
+++ b/libs/Makefile.am Wed Jan 17 14:31:38 2024 +0100
@@ -3,7 +3,11 @@
##
## Process this file with automake.
-SUBDIRS = boost clipper md5 potrace variant xxHash
+SUBDIRS = boost clipper md5 variant xxHash
+
+if !TEXLIVE_BUILD
+SUBDIRS += potrace
+endif
if ENABLE_WOFF
SUBDIRS += brotli woff2
diff -r 9e4b9c2474b9 -r d94256099fa1 libs/defs.am
--- a/libs/defs.am Tue Jan 16 10:39:07 2024 +0100
+++ b/libs/defs.am Wed Jan 17 14:31:38 2024 +0100
@@ -6,10 +6,14 @@
BROTLI_LIBS += ../libs/brotli/libbrotli.a
endif
+if TEXLIVE_BUILD
+POTRACE_CFLAGS = $(POTRACE_INCLUDES)
+else
if !HAVE_POTRACE
POTRACE_CFLAGS = -I$(dvisvgm_srcdir)/libs/potrace
POTRACE_LIBS = ../libs/potrace/libpotrace.a
-endif
+endif !HAVE_POTRACE
+endif !TEXLIVE_BUILD
if !HAVE_WOFF2
WOFF2_CFLAGS += -I$(dvisvgm_srcdir)/libs/woff2/include
Working fine. Thanks Martin.
Hi Martin. For TL, we pulled the potrace library out into libs, since Luigi also wanted to use it. Here is a small patch for that. It's not supposed to affect non-TL builds.