gentoo-ebuilds/app-text/mupdf/files/mupdf-1.26.3-thirdparty.patch
Philipp Rösner 63ac7d0d00
app-text/mupdf: add 1.26.3
- Add ebuild for app-text/mupdf-1.26.3
- Add use flag brotli, enabling support for brotli compression
- Add use flag barcode, enabling support for detecting and generating
  barcodes using mutool
- Remove c23 patch, as it got patched upstream
- Add mupdf-1.26.3-jpx.patch fixing code regarding openjpg being
  included even if -jpeg2k is set
- Adjust other patches to be aligned with upstream Makefile
  changes/cleanup
- Tested on amd64 via `pkg-testing-tool --test-feature-scope once`
- Remove keywords alpha, hppa, mips, ppc, s390, sparc, because
  media-libs/zxing-cpp first needs a rekeyword for those (if possible)

Signed-off-by: Philipp Rösner <rndxelement@protonmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/43124
Signed-off-by: Sam James <sam@gentoo.org>
2025-09-14 12:53:17 +01:00

15 lines
655 B
Diff

# ZXINGCPP_CFLAGS includes the thirdparty zxingcpp, which leads to both the
# system and thirdparty zxingcpp being included when opting to use the system
# zxingcpp.
# https://bugs.ghostscript.com/show_bug.cgi?id=708683
--- a/Makefile
+++ b/Makefile
@@ -155,7 +155,7 @@ $(OUT)/source/fitz/leptonica-wrap.o : source/fitz/leptonica-wrap.c
endif
$(OUT)/source/fitz/barcode.o : source/fitz/barcode.cpp
- $(CXX_CMD) $(WARNING_CFLAGS) $(LIB_CFLAGS) $(THIRD_CFLAGS) $(ZXINGCPP_CFLAGS) $(ZXINGCPP_LANGFLAGS)
+ $(CXX_CMD) $(WARNING_CFLAGS) $(LIB_CFLAGS) $(THIRD_CFLAGS) $(ZXINGCPP_LANGFLAGS)
$(OUT)/platform/%.o : platform/%.c
$(CC_CMD) $(WARNING_CFLAGS)