-
Notifications
You must be signed in to change notification settings - Fork 0
/
macports-setup-m1.sh
executable file
·75 lines (64 loc) · 3.18 KB
/
macports-setup-m1.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#! /bin/bash
# macports-setup.sh A C Norman July 2021
# $Id: macports-setup.sh 5713 2021-03-11 08:35:17Z arthurcnorman $
# This script can be used on a Macintosh (once macports has
# been installed, and that in turn required Xcode tools including its
# command-line option). It installs a collection of "ports" sufficient for
# building, testing and distributing Reduce.
#
# When a new release of the main Macintosh operating system is installed
# or an updated version of Xcode tools gets released it will be proper
# to refresh all ports. For a new operating system in general a fresh
# and updated version of macports itself may be required. But in both cases
# doing "sudo port uninstall all" will discard all current material
# and then this script can be used to reinstate it.
# This version is for use on an ARM-based Mac and it should install
# universal versions of enough ports to make it possible to build a
# "universal" Reduce, ie x86_64+aarch64.
# On an Intel Mac it starts the same process, but at the time of its release
# deveral ports will not install in univeral mode, and hance building
# bi-architecture Reduce on Intel hardware is not (yet) possible this way.
# By doing some manual building of the problematic ports and by tricking the
# macports system into thinking that they have been installed I suspect that
# progress would be possible!
# Ensure that the latest version of macports will be in use.
port selfupdate
port -N install subversion
port -N install gsed
port -N install autoconf autoconf-archive
port -N install autoconf213 perl5 m4 bzip2
port -N install automake libtool xz
port -N install python39 python_select
port -N install perl5.28
port -N install ccache gtime
port -N install astyle dvipng findutils fontforge
port -N install gdb git gnuplot gnutar gzip
port -N install md5sha1sum netpbm psutils rsync texinfo
port -N install texlive-fonts-extra texlive-formats-extra
port -N install texlive-latex-extra texlive-plain-generic
port -N install texlive-bin-extra texlive-fonts-recommended
port -N install wget gmake bc timeout bison
port -N install ncurses gperf libiconv +universal
port -N install gettext zlib libedit +universal
port -N install expat +universal
port -N install brotli +universal
port -N install gmp +universal
# The next line fails when run on an Intel Mac in late July 2021. libffi
# is needed for python39 and somewhere around here m4 gets needed. So this
# is about as far as I get on an Intel mac when trying for universal
# installs. Please keep trying every few weeks because the macports
# team continue to improve things!
port -N install libffi +universal
port -N install xorg-libxcb +universal
port -N install xorg-libX11 +universal
port -N install xorg-libXext +universal
port -N install xorg-libXrandr +universal
port -N install xorg-libXcursor +universal
port -N install fontconfig +universal
port -N install Xft2 +universal
#port -N install m4 +universal fails?? But I think that does not matter
# by now since all the things that depend on it have managed to build.
# There is a reported issue about it on the macports bug list, and I am
# thus expecting that the patches proposed there will filter through in due
# course...
exit 0