We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9a41f5 commit 81053ecCopy full SHA for 81053ec
installation/freebsd/freebsd_pymupdf.sh
@@ -0,0 +1,21 @@
1
+setenv CFLAGS -fPIC
2
+
3
+# also FreeBSD has a mupdf port, we should build it manually
4
+wget https://mupdf.com/downloads/mupdf-1.14.0-source.tar.gz
5
+tar -zxvf mupdf-1.14.0-source.tar.gz
6
7
+rm -rf PyMuPDF
8
+git clone https://github.com/rk700/PyMuPDF.git
9
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.hfig.h
13
+cp ../PyMuPDF/fitz/_error.c source/fitz/error.c
14
+cp ../PyMuPDF/fitz/_pdf-device.c source/pdf/pdf-device.c
15
16
+gmake HAVE_X11=no HAVE_GLFW=no HAVE_GLUT=no prefix=/usr/local
17
+gmake HAVE_X11=no HAVE_GLFW=no HAVE_GLUT=no prefix=/usr/local install
18
19
+cd ../PyMuPDF
20
+python setup.py build
21
+python setup.py install
0 commit comments