Skip to content

Commit 7f7eff6

Browse files
authored
Update freebsd_pymupdf.sh
1 parent e6d1003 commit 7f7eff6

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

installation/freebsd/freebsd_pymupdf.sh

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
11
setenv CFLAGS -fPIC
22

33
# install the pre-required tool
4-
pkg install swig30
4+
pkg install swig
55

66
# also FreeBSD has a mupdf port, we should build it manually
7-
wget https://mupdf.com/downloads/archive/mupdf-1.16.1-source.tar.gz
8-
tar -zxvf mupdf-1.16.1-source.tar.gz
7+
wget https://mupdf.com/downloads/archive/mupdf-1.17.0-source.tar.gz
8+
tar -zxvf mupdf-1.17.0-source.tar.gz
99

1010
rm -rf PyMuPDF
1111
git clone https://github.com/pymupdf/PyMuPDF.git
1212

13-
cd mupdf-1.16.1-source
13+
cd mupdf-1.17.0-source
1414
# replace files in mupdf source
1515
cp ../PyMuPDF/fitz/_config.h include/mupdf/fitz/config.h
16+
cp ../PyMuPDF/fitz/_pdf-font-add.c source/pdf/pdf-font-add.c
17+
cp ../PyMuPDF/fitz/_encode-fax.c source/fitz/encode-fax.c
1618

1719
gmake HAVE_X11=no HAVE_GLFW=no HAVE_GLUT=no prefix=/usr/local
1820
gmake HAVE_X11=no HAVE_GLFW=no HAVE_GLUT=no prefix=/usr/local install

0 commit comments

Comments
 (0)