diff options
author | Vincent Sanders <vince@kyllikki.org> | 2014-10-03 15:24:15 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2014-10-03 15:24:15 +0100 |
commit | a32aef2f40156217649703e8a6b81d256883da6c (patch) | |
tree | b24419983b05b317db00ee908d4f582a835af1b1 /Docs/env.sh | |
parent | 57f8cf6433003cafa1a9b359e1d119c3373b8f87 (diff) | |
download | netsurf-a32aef2f40156217649703e8a6b81d256883da6c.tar.gz netsurf-a32aef2f40156217649703e8a6b81d256883da6c.tar.bz2 |
update to install OS packages on mac os x with macports
Diffstat (limited to 'Docs/env.sh')
-rw-r--r-- | Docs/env.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Docs/env.sh b/Docs/env.sh index 89f9add6a..eb1da0dd4 100644 --- a/Docs/env.sh +++ b/Docs/env.sh @@ -62,6 +62,11 @@ if [ "x${TARGET_ABI}" = "xHaiku" ]; then # tools required to build the browser NS_TOOLS="" NS_FRONTEND_LIBS="" +elif [ "x${TARGET_ABI}" = "xDarwin" ]; then + # tools required to build the browser + NS_TOOLS="" + # libraries required for the Darwin target abi + NS_FRONTEND_LIBS="libsvgtiny libnsfb" elif [ "x${TARGET_ABI}" = "xriscos" ]; then # tools required to build the browser NS_TOOLS="nsgenbind" @@ -128,6 +133,12 @@ else NS_GTK_GEN="gtk+ 2 toolkit library, librsvg2 library" fi +NS_DEV_MACPORT="git expat openssl curl libjpeg-turbo libpng" + +ns-macport-install() +{ + PATH=/opt/local/bin:/opt/local/sbin:$PATH sudo /opt/local/bin/port install $(echo ${NS_DEV_MACPORT}) +} # Genertic OS package install # looks for package managers and tries to use them if present @@ -139,6 +150,8 @@ ns-package-install() ns-yum-install elif [ -x "/bin/pkgman" ]; then ns-pkgman-install + elif [ -x "/opt/local/bin/port" ]; then + ns-macport-install else echo "Unable to determine OS packaging system in use." echo "Please ensure development packages are installed for:" |