File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ setenv CFLAGS -fPIC
2
2
3
3
# install the pre-required tool
4
4
pkg install swig
5
+ pkg install freetype2
5
6
6
7
wget https://mupdf.com/downloads/archive/mupdf-1.18.0-source.tar.gz
7
8
tar -zxvf mupdf-1.18.0-source.tar.gz
@@ -12,7 +13,6 @@ git clone https://github.com/pymupdf/PyMuPDF.git
12
13
cd mupdf-1.18.0-source
13
14
# replace files in mupdf source
14
15
cp ../PyMuPDF/fitz/_config.h include/mupdf/fitz/config.h
15
- cp ../PyMuPDF/fitz/_pdf-font-add.c source/pdf/pdf-font-add.c
16
16
17
17
gmake HAVE_X11=no HAVE_GLFW=no HAVE_GLUT=no prefix=/usr/local
18
18
gmake HAVE_X11=no HAVE_GLFW=no HAVE_GLUT=no prefix=/usr/local install
Original file line number Diff line number Diff line change @@ -82,6 +82,7 @@ def load_libraries():
82
82
"/usr/local/include/mupdf" ,
83
83
"/usr/local/include" ,
84
84
"/usr/include/freetype2" ,
85
+ "/usr/local/include/freetype2" ,
85
86
],
86
87
# libraries should already be linked here by brew
87
88
library_dirs = ["/usr/local/lib" ],
You can’t perform that action at this time.
0 commit comments