summaryrefslogtreecommitdiff
path: root/Docs
diff options
context:
space:
mode:
authorJohn-Mark Bell <jmb@netsurf-browser.org>2014-11-16 12:06:18 +0000
committerJohn-Mark Bell <jmb@netsurf-browser.org>2014-11-16 12:06:36 +0000
commit8d2da644534d9579e205ad1e6b0d94e8c28c60cb (patch)
tree716951244326b9d2a844022f553b02c96271dfda /Docs
parent15f88ea1c33a045a9ee0a39b28c7abd255bf4ee0 (diff)
downloadnetsurf-8d2da644534d9579e205ad1e6b0d94e8c28c60cb.tar.gz
netsurf-8d2da644534d9579e205ad1e6b0d94e8c28c60cb.tar.bz2
Fix up platform detection
Diffstat (limited to 'Docs')
-rw-r--r--Docs/env.sh46
1 files changed, 26 insertions, 20 deletions
diff --git a/Docs/env.sh b/Docs/env.sh
index 01c9b6911..b3b9cfde8 100644
--- a/Docs/env.sh
+++ b/Docs/env.sh
@@ -58,26 +58,32 @@ NS_INTERNAL_LIBS="buildsystem libwapcaplet libparserutils libhubbub libdom libcs
NS_BROWSER="netsurf"
# add target specific libraries
-if [ "x${TARGET_ABI}" = "xi586-pc-haiku" ]; then
- # tools required to build the browser
- NS_TOOLS=""
- NS_FRONTEND_LIBS=""
-elif [ "x${TARGET_ABI}" = "xi686-apple-darwin11" ]; 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}" = "xarm-unknown-riscos" ]; then
- # tools required to build the browser
- NS_TOOLS="nsgenbind"
- # libraries required for the risc os target abi
- NS_FRONTEND_LIBS="libsvgtiny librufl libpencil librosprite"
-else
- # tools required to build the browser
- NS_TOOLS="nsgenbind"
- # internal libraries only required by some frontends
- NS_FRONTEND_LIBS="libsvgtiny libnsfb"
-fi
+case "${TARGET_ABI}"
+ i586-pc-haiku)
+ # tools required to build the browser
+ NS_TOOLS=""
+ NS_FRONTEND_LIBS=""
+ ;;
+ *arwin*)
+ # OS X
+ # tools required to build the browser
+ NS_TOOLS=""
+ # libraries required for the Darwin target abi
+ NS_FRONTEND_LIBS="libsvgtiny libnsfb"
+ ;;
+ arm-unknown-riscos)
+ # tools required to build the browser
+ NS_TOOLS="nsgenbind"
+ # libraries required for the risc os target abi
+ NS_FRONTEND_LIBS="libsvgtiny librufl libpencil librosprite"
+ ;;
+ *)
+ # tools required to build the browser
+ NS_TOOLS="nsgenbind"
+ # internal libraries only required by some frontends
+ NS_FRONTEND_LIBS="libsvgtiny libnsfb"
+ ;;
+esac
################ OS Package installation ################