update to install OS packages on mac os x with macports

This commit is contained in:
Vincent Sanders 2014-10-03 15:24:15 +01:00
parent 57f8cf6433
commit a32aef2f40

View File

@ -62,6 +62,11 @@ if [ "x${TARGET_ABI}" = "xHaiku" ]; then
# tools required to build the browser # tools required to build the browser
NS_TOOLS="" NS_TOOLS=""
NS_FRONTEND_LIBS="" 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 elif [ "x${TARGET_ABI}" = "xriscos" ]; then
# tools required to build the browser # tools required to build the browser
NS_TOOLS="nsgenbind" NS_TOOLS="nsgenbind"
@ -128,6 +133,12 @@ else
NS_GTK_GEN="gtk+ 2 toolkit library, librsvg2 library" NS_GTK_GEN="gtk+ 2 toolkit library, librsvg2 library"
fi 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 # Genertic OS package install
# looks for package managers and tries to use them if present # looks for package managers and tries to use them if present
@ -139,6 +150,8 @@ ns-package-install()
ns-yum-install ns-yum-install
elif [ -x "/bin/pkgman" ]; then elif [ -x "/bin/pkgman" ]; then
ns-pkgman-install ns-pkgman-install
elif [ -x "/opt/local/bin/port" ]; then
ns-macport-install
else else
echo "Unable to determine OS packaging system in use." echo "Unable to determine OS packaging system in use."
echo "Please ensure development packages are installed for:" echo "Please ensure development packages are installed for:"