aboutsummaryrefslogtreecommitdiff
path: root/math/wingz3/files
diff options
context:
space:
mode:
authorMikhail Teterin <mi@FreeBSD.org>2014-07-13 19:23:31 +0000
committerMikhail Teterin <mi@FreeBSD.org>2014-07-13 19:23:31 +0000
commit337da496cefdc5a10833656f3f9ed54cc8fae7da (patch)
tree7cd9ee177099b56ea81ba92cd687191eb1744c6e /math/wingz3/files
parent53ca18a253cea2d7c9a29dc74a842e64c47b641b (diff)
Notes
Diffstat (limited to 'math/wingz3/files')
-rw-r--r--math/wingz3/files/Wingz3.in (renamed from math/wingz3/files/Wingz3)10
1 files changed, 9 insertions, 1 deletions
diff --git a/math/wingz3/files/Wingz3 b/math/wingz3/files/Wingz3.in
index 9f6f7d7505b9..f4f49b86e3a8 100644
--- a/math/wingz3/files/Wingz3
+++ b/math/wingz3/files/Wingz3.in
@@ -3,13 +3,21 @@
# The following combines the effects of ${WINGZ3}/bin/WingzPro
# and the ${WINGZ3}/bin/wzenv (yes, it does set the LD_RUN_PATH,
# while exporting the SHLIB_PATH).
-WINGZ3=_X11BASE_/Wingz3
+WINGZ3=%%PREFIX%%/Wingz3
WZUSER="IISC"
WZCOMPANY="IISC"
WZPLATFORM=LINUX
LD_RUN_PATH=$WINGZ3/lib/$WZPLATFORM:$LD_RUN_PATH
+if [ -z "$LD_LIBRARY_PATH" ]
+then
+ export LD_LIBRARY_PATH=$WINGZ3/lib/libc5
+else
+ LD_LIBRARY_PATH=$WINGZ3/lib/libc5:$LD_LIBRARY_PATH
+fi
WZBSDECHO=TRUE
+export XLOCALEDIR=/usr/share/X11/locale # Under LINUXBASE
+
export WINGZ3 WZCOMPANY WZUSER WZPLATFORM SHLIB_PATH WZBSDECHO
# Invoke the binary directly: