Mercurial > hgrepos > Python2 > PyMuPDF
comparison Makefile.freebsd @ 8:bf1744083a54
Some documentation notes into Makefile.freebsd
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Wed, 17 Sep 2025 05:39:30 +0200 |
| parents | b5f06508363a |
| children | b2d41d02518f |
comparison
equal
deleted
inserted
replaced
| 7:5ab937c03c27 | 8:bf1744083a54 |
|---|---|
| 1 # -*- mode: makefile; coding: utf-8 -*- | 1 # -*- mode: makefile; coding: utf-8 -*- |
| 2 # | 2 # |
| 3 # GNU make and binutils/ar | 3 # Needs GNU make (aka gmake) and binutils/ar (instead of FreeBSD /usr/bin/ar). |
| 4 # | |
| 5 # Building against an installed mupdf package fails because the libmupdfcpp.so | |
| 6 # is missing. | |
| 7 # | |
| 8 # Prepare: | |
| 9 # | |
| 10 # - Create a Python venv and activate it | |
| 11 # | |
| 12 # - In the "bin"-directory of the venv symlink "make" to /usr/local/bin/ggmake | |
| 13 # and "ar" to /usr/local/bin/ar | |
| 14 # | |
| 15 # * Makefiles have GNU syntax | |
| 16 # * ar is called with @-response-files -- which are a GNU feature | |
| 17 # | |
| 18 # - At first to not build with tesseract (OCR) | |
| 19 # | |
| 20 # export PYMUPDF_SETUP_MUPDF_TESSERACT=0 | |
| 21 # | |
| 22 # - Install a LLVM package that has the same version as the libclang | |
| 23 # Python package that will be used/installed | |
| 24 # (e.g. pkg install llvm18 because of libclang>=18,<19) | |
| 4 # | 25 # |
| 5 | 26 |
| 6 .PHONY: build | 27 .PHONY: build |
| 7 | 28 |
| 8 THIS_MAKEFILE_JUSTNAME:= $(firstword $(MAKEFILE_LIST)) | 29 THIS_MAKEFILE_JUSTNAME:= $(firstword $(MAKEFILE_LIST)) |
