File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change 1
1
setenv CFLAGS -fPIC
2
2
3
+ # install the pre-required tool
4
+ pkg install swig30
5
+
3
6
# 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
6
9
7
10
rm -rf PyMuPDF
8
11
git clone https://github.com/pymupdf/PyMuPDF.git
9
12
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
15
16
16
17
gmake HAVE_X11=no HAVE_GLFW=no HAVE_GLUT=no prefix=/usr/local
17
18
gmake HAVE_X11=no HAVE_GLFW=no HAVE_GLUT=no prefix=/usr/local install
You can’t perform that action at this time.
0 commit comments