summaryrefslogtreecommitdiffstats
path: root/x11vnc/misc/enhanced_tightvnc_viewer/build.unix
diff options
context:
space:
mode:
authorrunge <runge>2006-11-08 00:59:28 +0000
committerrunge <runge>2006-11-08 00:59:28 +0000
commit5f9693d4a2c511f8f2ea069373807c5f36ac1459 (patch)
treeccb24992fb1bda1c8d0812cf171bbab5c0894423 /x11vnc/misc/enhanced_tightvnc_viewer/build.unix
parent2635ae4407751cc16745918114fbc1ce31eb7c4f (diff)
downloadlibtdevnc-5f9693d4a2c511f8f2ea069373807c5f36ac1459.tar.gz
libtdevnc-5f9693d4a2c511f8f2ea069373807c5f36ac1459.zip
Add Darwin stuff. Sync to current 1.0.7
Diffstat (limited to 'x11vnc/misc/enhanced_tightvnc_viewer/build.unix')
-rwxr-xr-xx11vnc/misc/enhanced_tightvnc_viewer/build.unix37
1 files changed, 27 insertions, 10 deletions
diff --git a/x11vnc/misc/enhanced_tightvnc_viewer/build.unix b/x11vnc/misc/enhanced_tightvnc_viewer/build.unix
index 9a0fc3d..d262498 100755
--- a/x11vnc/misc/enhanced_tightvnc_viewer/build.unix
+++ b/x11vnc/misc/enhanced_tightvnc_viewer/build.unix
@@ -1,5 +1,13 @@
#!/bin/sh
+# Notes: to customize locations, e.g. for libjpeg, set LDFLAGS_OS and/or CPPFLAGS_OS
+#
+# e.g. on Darwin we did:
+#
+# env LDFLAGS_OS="-L/Volumes/someplace/common/lib/" CPPFLAGS_OS="-I /Volumes/someplace/common/include" ./build.unix
+#
+
+
# Add useful directories to PATH:
#
PATH=$PATH:/usr/bin:/bin:/usr/local/bin:/usr/X11R6/bin:/usr/bin/X11:/usr/openwin/bin:/opt/SUNWspro/bin:/usr/sfw/bin:/usr/ccs/bin
@@ -17,7 +25,7 @@ fi
#
name=$UNAME
if [ "X$name" = "X" ]; then
- name=`uname -sm | sed -e 's/ /./'`
+ name=`uname -sm | sed -e 's/ /./g'`
fi
if [ "X$name" = "X" ]; then
echo "cannot determine platform: os.arch, e.g. Linux.i686"
@@ -25,6 +33,11 @@ if [ "X$name" = "X" ]; then
exit 1
fi
+LDD="ldd"
+if [ `uname` = "Darwin" ]; then
+ LDD="otool -L"
+fi
+
# Work out main destination:
#
dest=./bin/$name
@@ -167,13 +180,17 @@ sync
wc $src
sum $src
sleep 2
-echo cp -p $src $dest/vncviewer
-cp -p $src $dest/vncviewer || exit 1
+
+suff=""
+if [ `uname` = "Darwin" ]; then
+ suff=".x11"
+fi
+echo cp -p $src $dest/vncviewer$suff
sleep 1
-cp -p $src $dest/vncviewer || exit 1
-ls -l $src $dest/vncviewer
-$dest/vncviewer -h
-ldd $dest/vncviewer
+cp -p $src $dest/vncviewer$suff || exit 1
+ls -l $src $dest/vncviewer$suff
+$dest/vncviewer$suff -h
+$LDD $dest/vncviewer$suff
echo ""
# Do stunnel:
@@ -237,8 +254,8 @@ sleep 1
cp -p $src $dest/stunnel || exit 1
ls -l $src $dest/stunnel
$dest/stunnel -help
-ldd $dest/stunnel
+$LDD $dest/stunnel
echo ""
-$dest/vncviewer -h
-ldd $dest/vncviewer
+$dest/vncviewer$suff -h
+$LDD $dest/vncviewer$suff