1 | #!/bin/sh |
---|
2 | |
---|
3 | # Script to patch and configure asymptote from the |
---|
4 | # latest git checkout (as of 19-November-2020). |
---|
5 | # Checkout: 9606da530260600112145360c3eaadada1ed645f |
---|
6 | # from https://github.com/vectorgraphics/asymptote |
---|
7 | |
---|
8 | |
---|
9 | git reset --hard |
---|
10 | |
---|
11 | |
---|
12 | # Patch |
---|
13 | patch -p0 < $(port dir asymptote)/files/patch-Makefile.diff |
---|
14 | |
---|
15 | # Post patch |
---|
16 | cat Makefile.in | sed "s|@@PYTHON@@|/opt/local/bin/python3.8|g" > tempfile |
---|
17 | cp tempfile Makefile.in |
---|
18 | |
---|
19 | ./autogen.sh |
---|
20 | |
---|
21 | |
---|
22 | ./configure --prefix=/opt/local --enable-gc=system --with-latex=/opt/local/share/texmf/tex/latex --with-context=/opt/local/share/texmf/tex/context/third --mandir=/opt/local/share/man --disable-offscreen |
---|