2013-01-21 16:55:05 +01:00
|
|
|
# Description: Lightweight PDF and XPS viewer
|
2021-10-06 17:17:42 +02:00
|
|
|
# URL: https://www.mupdf.com/
|
|
|
|
# Maintainer: Juergen Daubert, jue at crux dot nu
|
2023-09-05 19:17:06 +02:00
|
|
|
# Depends on: glu harfbuzz libjpeg-turbo xorg-libxi
|
2022-07-19 19:01:14 +02:00
|
|
|
# Optional: freeglut openjpeg2 jbig2dec gumbo-parser
|
2013-01-21 16:55:05 +01:00
|
|
|
|
|
|
|
name=mupdf
|
2024-01-08 18:35:03 +01:00
|
|
|
version=1.23.8
|
2022-08-15 17:47:38 +02:00
|
|
|
release=1
|
2022-12-13 16:05:05 +01:00
|
|
|
source=(https://mupdf.com/downloads/archive/$name-$version-source.tar.gz)
|
2013-01-21 16:55:05 +01:00
|
|
|
|
|
|
|
build() {
|
2021-10-06 17:17:42 +02:00
|
|
|
cd $name-$version-source
|
2017-01-08 13:58:04 +01:00
|
|
|
|
2022-07-19 19:01:14 +02:00
|
|
|
PKGMK_MUPDF="USE_SYSTEM_LIBS=yes"
|
2017-01-08 13:58:04 +01:00
|
|
|
|
2022-07-19 19:01:14 +02:00
|
|
|
prt-get isinst freeglut || PKGMK_MUPDF+=" USE_SYSTEM_GLUT=no"
|
|
|
|
prt-get isinst openjpeg2 || PKGMK_MUPDF+=" USE_SYSTEM_OPENJPEG=no"
|
|
|
|
prt-get isinst jbig2dec || PKGMK_MUPDF+=" USE_SYSTEM_JBIG2DEC=no"
|
|
|
|
prt-get isinst gumbo-parser || PKGMK_MUPDF+=" USE_SYSTEM_GUMBO=no"
|
|
|
|
|
|
|
|
make install $PKGMK_MUPDF\
|
2021-10-06 17:17:42 +02:00
|
|
|
prefix=$PKG/usr \
|
|
|
|
mandir=$PKG/usr/share/man \
|
2022-07-19 19:01:14 +02:00
|
|
|
XCFLAGS="-fpic -fcommon"
|
2017-01-08 13:58:04 +01:00
|
|
|
|
2021-10-06 17:17:42 +02:00
|
|
|
ln -s mupdf-gl $PKG/usr/bin/mupdf
|
|
|
|
rm -r $PKG/usr/share/doc
|
2018-10-09 13:21:45 +02:00
|
|
|
}
|