From 741f8858461a71d4b1881a752fcbdb19e9b52e24 Mon Sep 17 00:00:00 2001 From: wenheping Date: Wed, 3 Apr 2019 09:39:01 +0800 Subject: [PATCH 1/6] Create freebsd --- installation/freebsd | 1 + 1 file changed, 1 insertion(+) create mode 100644 installation/freebsd diff --git a/installation/freebsd b/installation/freebsd new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/installation/freebsd @@ -0,0 +1 @@ + From 25bd0f696526689fbaea0730a8148243f6bfd810 Mon Sep 17 00:00:00 2001 From: wenheping Date: Wed, 3 Apr 2019 09:39:19 +0800 Subject: [PATCH 2/6] Delete freebsd --- installation/freebsd | 1 - 1 file changed, 1 deletion(-) delete mode 100644 installation/freebsd diff --git a/installation/freebsd b/installation/freebsd deleted file mode 100644 index 8b1378917..000000000 --- a/installation/freebsd +++ /dev/null @@ -1 +0,0 @@ - From 26e9bef76008cd500e3385f2817281662b1f1d26 Mon Sep 17 00:00:00 2001 From: wenheping Date: Wed, 3 Apr 2019 09:46:03 +0800 Subject: [PATCH 3/6] Create freebsd subdirectory --- installation/freebsd | 1 + 1 file changed, 1 insertion(+) create mode 100644 installation/freebsd diff --git a/installation/freebsd b/installation/freebsd new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/installation/freebsd @@ -0,0 +1 @@ + From f9a41f53404836b331eb67724ed4c964e7e85484 Mon Sep 17 00:00:00 2001 From: wenheping Date: Wed, 3 Apr 2019 09:46:25 +0800 Subject: [PATCH 4/6] Delete freebsd --- installation/freebsd | 1 - 1 file changed, 1 deletion(-) delete mode 100644 installation/freebsd diff --git a/installation/freebsd b/installation/freebsd deleted file mode 100644 index 8b1378917..000000000 --- a/installation/freebsd +++ /dev/null @@ -1 +0,0 @@ - From 81053ecdf1a4e394eb5c05cb76854ce56d72bb1d Mon Sep 17 00:00:00 2001 From: wenheping Date: Wed, 3 Apr 2019 09:57:20 +0800 Subject: [PATCH 5/6] Create freebsd_pymupdf.sh installation for FreeBSD --- installation/freebsd/freebsd_pymupdf.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 installation/freebsd/freebsd_pymupdf.sh diff --git a/installation/freebsd/freebsd_pymupdf.sh b/installation/freebsd/freebsd_pymupdf.sh new file mode 100644 index 000000000..384c4acac --- /dev/null +++ b/installation/freebsd/freebsd_pymupdf.sh @@ -0,0 +1,21 @@ +setenv CFLAGS -fPIC + +# also FreeBSD has a mupdf port, we should build it manually +wget https://mupdf.com/downloads/mupdf-1.14.0-source.tar.gz +tar -zxvf mupdf-1.14.0-source.tar.gz + +rm -rf PyMuPDF +git clone https://github.com/rk700/PyMuPDF.git + +cd mupdf-1.14.0-source +# replace 3 files in mupdf-1.14.0 +cp ../PyMuPDF/fitz/_mupdf_config.h include/mupdf/fitz/config.hfig.h +cp ../PyMuPDF/fitz/_error.c source/fitz/error.c +cp ../PyMuPDF/fitz/_pdf-device.c source/pdf/pdf-device.c + +gmake HAVE_X11=no HAVE_GLFW=no HAVE_GLUT=no prefix=/usr/local +gmake HAVE_X11=no HAVE_GLFW=no HAVE_GLUT=no prefix=/usr/local install + +cd ../PyMuPDF +python setup.py build +python setup.py install From 609eb5005db6d43c89741a5418079aba08f78c16 Mon Sep 17 00:00:00 2001 From: wenheping Date: Thu, 4 Apr 2019 07:59:08 +0800 Subject: [PATCH 6/6] Update freebsd_pymupdf.sh 1 Use official pymupdf github address 2 Fix the download site of mupdf-1.14.0 --- installation/freebsd/freebsd_pymupdf.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/installation/freebsd/freebsd_pymupdf.sh b/installation/freebsd/freebsd_pymupdf.sh index 384c4acac..a60dfd433 100644 --- a/installation/freebsd/freebsd_pymupdf.sh +++ b/installation/freebsd/freebsd_pymupdf.sh @@ -1,11 +1,11 @@ setenv CFLAGS -fPIC # also FreeBSD has a mupdf port, we should build it manually -wget https://mupdf.com/downloads/mupdf-1.14.0-source.tar.gz +wget https://mupdf.com/downloads/archive/mupdf-1.14.0-source.tar.gz tar -zxvf mupdf-1.14.0-source.tar.gz rm -rf PyMuPDF -git clone https://github.com/rk700/PyMuPDF.git +git clone https://github.com/pymupdf/PyMuPDF.git cd mupdf-1.14.0-source # replace 3 files in mupdf-1.14.0