mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
ports: mupdf
This commit is contained in:
@@ -0,0 +1,70 @@
|
||||
name=mupdf
|
||||
revision=1
|
||||
from_source=mupdf
|
||||
imagedeps="build-essential"
|
||||
hostdeps="xgcc xbinutils pkgconfig"
|
||||
deps="base freetype harfbuzz libjpeg-turbo openjpeg openssl zlib libx11 libxext"
|
||||
|
||||
configure() {
|
||||
cp -rp ${source_dir}/* .
|
||||
}
|
||||
|
||||
build() {
|
||||
make -j${parallelism} \
|
||||
OS=Linux \
|
||||
CC=x86_64-astral-gcc \
|
||||
CXX=x86_64-astral-g++ \
|
||||
AR=x86_64-astral-ar \
|
||||
RANLIB=x86_64-astral-ranlib \
|
||||
OUT=${build_dir}/mupdf-shared \
|
||||
prefix=${prefix} \
|
||||
shared=yes \
|
||||
build=release \
|
||||
USE_SYSTEM_LIBS=no \
|
||||
USE_SYSTEM_FREETYPE=yes \
|
||||
SYS_FREETYPE_CFLAGS="-I${sysroot_dir}/usr/include/freetype2" \
|
||||
SYS_FREETYPE_LIBS="-L${sysroot_dir}/usr/lib -lfreetype" \
|
||||
USE_SYSTEM_HARFBUZZ=yes \
|
||||
SYS_HARFBUZZ_CFLAGS="-I${sysroot_dir}/usr/include/harfbuzz" \
|
||||
USE_SYSTEM_LIBJPEG=yes \
|
||||
USE_SYSTEM_OPENJPEG=yes \
|
||||
SYS_OPENJPEG_CFLAGS="-I${sysroot_dir}/usr/include/openjpeg-2.5" \
|
||||
USE_SYSTEM_ZLIB=yes \
|
||||
HAVE_X11=yes \
|
||||
X11_CFLAGS="-I${sysroot_dir}/usr/include" \
|
||||
X11_LIBS="-L${sysroot_dir}/usr/lib -lX11 -lXext" \
|
||||
HAVE_GLUT=no \
|
||||
HAVE_CURL=no \
|
||||
HAVE_LIBCRYPTO=yes \
|
||||
LIBCRYPTO_CFLAGS="-I${sysroot_dir}/usr/include -DHAVE_LIBCRYPTO" \
|
||||
LIBCRYPTO_LIBS="-L${sysroot_dir}/usr/lib -lcrypto" \
|
||||
mujs=no brotli=no xps=no svg=no extract=no
|
||||
}
|
||||
|
||||
package() {
|
||||
DESTDIR=${dest_dir} make \
|
||||
OS=Linux \
|
||||
OUT=${build_dir}/mupdf-shared \
|
||||
prefix=${prefix} \
|
||||
shared=yes \
|
||||
USE_SYSTEM_LIBS=no \
|
||||
USE_SYSTEM_FREETYPE=yes \
|
||||
SYS_FREETYPE_CFLAGS="-I${sysroot_dir}/usr/include/freetype2" \
|
||||
SYS_FREETYPE_LIBS="-L${sysroot_dir}/usr/lib -lfreetype" \
|
||||
USE_SYSTEM_HARFBUZZ=yes \
|
||||
SYS_HARFBUZZ_CFLAGS="-I${sysroot_dir}/usr/include/harfbuzz" \
|
||||
USE_SYSTEM_LIBJPEG=yes \
|
||||
USE_SYSTEM_OPENJPEG=yes \
|
||||
SYS_OPENJPEG_CFLAGS="-I${sysroot_dir}/usr/include/openjpeg-2.5" \
|
||||
USE_SYSTEM_ZLIB=yes \
|
||||
HAVE_X11=yes \
|
||||
X11_CFLAGS="-I${sysroot_dir}/usr/include" \
|
||||
X11_LIBS="-L${sysroot_dir}/usr/lib -lX11 -lXext" \
|
||||
HAVE_GLUT=no \
|
||||
HAVE_CURL=no \
|
||||
HAVE_LIBCRYPTO=yes \
|
||||
LIBCRYPTO_CFLAGS="-I${sysroot_dir}/usr/include -DHAVE_LIBCRYPTO" \
|
||||
LIBCRYPTO_LIBS="-L${sysroot_dir}/usr/lib -lcrypto" \
|
||||
mujs=no brotli=no xps=no svg=no extract=no \
|
||||
install
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
name=mupdf
|
||||
version=1.26.12
|
||||
source_method=tarball
|
||||
tarball_url="https://mupdf.com/downloads/archive/mupdf-${version}-source.tar.gz"
|
||||
tarball_sha512="210e6f0d78f0ab7cae546a96cc59eedca8806f96f80227e008eba91750e4f7049559ff68736dfdbd781f928086f1abc64c571ea5116fd44e63b6a2cca9a13f28"
|
||||
Reference in New Issue
Block a user