Code: Select all | Expand
#!/bin/bash
export HB_BUILD_MODE=c
export HB_BUILD_NAME=-arm64
export HB_BUILD_CONTRIBS=
export HB_BUILD_DYN=no
export HB_BUILD_CONTRIB_DYN=no
export HB_USER_PRGFLAGS=-l-
export HB_WITH_OPENSSL="$(brew --prefix openssl)/include"
export HB_WITH_CURL="$(brew --prefix curl)/include"
export HB_WITH_MYSQL=$(brew --prefix mariadb-connector-c)/include/mariadb
export HB_OPENSSL_STATIC=yes
export HB_STATIC_OPENSSL=yes
export HB_STATIC_CURL=yes
export HB_WITH_PCRE=local
export HB_WITH_ZLIB=local
export HB_WITH_BZIP2=local
export HB_WITH_JPEG=local
export HB_WITH_PNG=local
export HB_WITH_TIFF=local
export HB_WITH_LIBHARU=local
export HB_WITH_SQLITE3=local
export HB_INSTALL_PREFIX="/Users/$USER/Developer/harbour/core"
export HB_USER_CFLAGS="-DHB_GC_AUTO -DHB_FM_STATISTICS_OFF"
Code: Select all | Expand
brew install mariadb-connector-c curl openssl xquartz pcre
sudo ln -s /opt/X11 /usr/X11
sudo ln -s /opt/X11 /usr/X11R6