macports-setup-m1.sh 3.2 KB

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