Skip to content

Commit 39f0bcb

Browse files
committed
Merge branch 'master' of https://github.com/rk700/PyMuPDF
2 parents dbb14b1 + e5a015c commit 39f0bcb

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

installation/freebsd/freebsd_pymupdf.sh

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
setenv CFLAGS -fPIC
22

3+
# install the pre-required tool
4+
pkg install swig30
5+
36
# also FreeBSD has a mupdf port, we should build it manually
4-
wget https://mupdf.com/downloads/archive/mupdf-1.14.0-source.tar.gz
5-
tar -zxvf mupdf-1.14.0-source.tar.gz
7+
wget https://mupdf.com/downloads/archive/mupdf-1.16.1-source.tar.gz
8+
tar -zxvf mupdf-1.16.1-source.tar.gz
69

710
rm -rf PyMuPDF
811
git clone https://github.com/pymupdf/PyMuPDF.git
912

10-
cd mupdf-1.14.0-source
11-
# replace 3 files in mupdf-1.14.0
12-
cp ../PyMuPDF/fitz/_mupdf_config.h include/mupdf/fitz/config.h
13-
cp ../PyMuPDF/fitz/_error.c source/fitz/error.c
14-
cp ../PyMuPDF/fitz/_pdf-device.c source/pdf/pdf-device.c
13+
cd mupdf-1.16.1-source
14+
# replace files in mupdf source
15+
cp ../PyMuPDF/fitz/_config.h include/mupdf/fitz/config.h
1516

1617
gmake HAVE_X11=no HAVE_GLFW=no HAVE_GLUT=no prefix=/usr/local
1718
gmake HAVE_X11=no HAVE_GLFW=no HAVE_GLUT=no prefix=/usr/local install

0 commit comments

Comments
 (0)