summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xserver/autobuild16
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
}