diff options
| author | Robert Irelan <rirelan@gmail.com> | 2019-03-01 13:08:44 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-03-01 13:08:44 -0800 |
| commit | d1e04948c0498114c7ee679b513b2e1908fdf0c5 (patch) | |
| tree | 6f75b593cbdd7b101f0e5638755932c9e98c90ec | |
| parent | 2320aec2f5064f47a9fca546d8580c3e05cd9be3 (diff) | |
Support Macports in server/autobuild
| -rwxr-xr-x | server/autobuild | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/server/autobuild b/server/autobuild index d16e03f..71ddcef 100755 --- a/server/autobuild +++ b/server/autobuild @@ -364,14 +364,18 @@ os_msys2() { os_macos() { if ! which uname >/dev/null 2>&1 || [ "$(uname -s)" != "Darwin" ]; then return 1 - fi - if ! which brew >/dev/null 2>&1; then + elif which brew >/dev/null 2>&1; then + PKGCMD=brew + PKGARGS=install + PACKAGES="pkg-config poppler automake" + PKG_INSTALL_AS_ROOT= + elif which port >/dev/null 2>&1; then + PKGCMD=port + PKGARGS=install + PACKAGES="pkgconfig poppler automake libpng" + else return 1 fi - PKGCMD=brew - PKGARGS=install - PACKAGES="pkg-config poppler automake" - PKG_INSTALL_AS_ROOT= return 0 } |
