Skip to content

Update freebsd_pymupdf.sh #652

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 11, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions installation/freebsd/freebsd_pymupdf.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
setenv CFLAGS -fPIC

# install the pre-required tool
pkg install swig30
pkg install swig

# Ensure we have a build of the current version
wget https://mupdf.com/downloads/archive/mupdf-1.17.0-source.tar.gz
tar -zxvf mupdf-1.17.0-source.tar.gz

Expand All @@ -13,6 +12,8 @@ git clone https://github.com/pymupdf/PyMuPDF.git
cd mupdf-1.17.0-source
# replace files in mupdf source
cp ../PyMuPDF/fitz/_config.h include/mupdf/fitz/config.h
cp ../PyMuPDF/fitz/_pdf-font-add.c source/pdf/pdf-font-add.c
cp ../PyMuPDF/fitz/_encode-fax.c source/fitz/encode-fax.c

gmake HAVE_X11=no HAVE_GLFW=no HAVE_GLUT=no prefix=/usr/local
gmake HAVE_X11=no HAVE_GLFW=no HAVE_GLUT=no prefix=/usr/local install
Expand Down