Subject: [PATCH] community/mupdf: rebuild against the provided FreeGLUT

From: Carlo Dé <[email-masked]>
Date: Sat, 25 Sep 2021 10:37:49 +0200

Otherwise mupdf-gl issues this warning:
  warning: This version of MuPDF has been built WITHOUT clipboard or unicode input support!
  warning: Please file a complaint with your friendly local distribution manager.

Upstream introduced this to alert their own special FreeGLUT must be used:
  https://git.ghostscript.com/?p=mupdf.git;a=commit;h=06c999fec01863a90824ba2f9f3ce98ea1a967d3
---
 community/mupdf/APKBUILD | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/community/mupdf/APKBUILD b/community/mupdf/APKBUILD
index ccb3cc961f..31b01c0104 100644
--- a/community/mupdf/APKBUILD
+++ b/community/mupdf/APKBUILD
@@ -3,7 +3,7 @@
 # Maintainer: Daniel Sabogal <[email-masked]>
 pkgname=mupdf
 pkgver=1.18.0
-pkgrel=1
+pkgrel=2
 pkgdesc="Lightweight PDF and XPS viewer"
 url="https://mupdf.com"
 arch="all"
@@ -14,7 +14,6 @@ makedepends="freetype-dev
 	jpeg-dev
 	openjpeg-dev
 	readline-dev
-	freeglut-dev
 	zlib-dev
 	libx11-dev
 	libxext-dev
@@ -60,14 +59,14 @@ prepare() {
 	default_prepare
 
 	local library=
-	for library in curl freeglut freetype harfbuzz jbig2dec \
+	for library in curl freetype harfbuzz jbig2dec \
 			libjpeg openjpeg zlib; do
 		rm -r thirdparty/"$library"
 	done
 }
 
 build() {
-	make USE_SYSTEM_LIBS=yes USE_SYSTEM_GUMBO=no prefix=/usr CURL_LIBS='-lcurl -lpthread' build=release libs apps
+	make USE_SYSTEM_LIBS=yes USE_SYSTEM_GUMBO=no USE_SYSTEM_GLUT=no prefix=/usr CURL_LIBS='-lcurl -lpthread' build=release libs apps
 }
 
 package() {
-- 
2.32.0