forked from rofl0r/openbor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdarwin.sh
executable file
·83 lines (66 loc) · 2.64 KB
/
darwin.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#
# OpenBOR - http://www.LavaLit.com
# -----------------------------------------------------------------------
# Licensed under the BSD license, see LICENSE in OpenBOR root for details.
#
# Copyright (c) 2004 - 2011 OpenBOR Team
#
#!/bin/bash
# Script updates the hardcoded dynamic libraries paths
# to paths that are relative to the executable.
if [ -z "${DWNDEV+xxx}" ]; then
. environ.sh 10
fi
if [ "${DWNDEV}" == "/opt/mac" ]; then
exit
fi
############ Update Library References ############
${PREFIX}install_name_tool \
-change ${DWNDEV}/lib/libSDL-1.2.0.dylib \
@executable_path/../Libraries/libSDL-1.2.0.dylib \
releases/DARWIN/OpenBOR.app/Contents/Libraries/libSDL_gfx.13.dylib
${PREFIX}install_name_tool \
-change ${DWNDEV}/lib/libvorbis.0.dylib \
@executable_path/../Libraries/libvorbis.0.dylib \
releases/DARWIN/OpenBOR.app/Contents/Libraries/libvorbisfile.3.dylib
${PREFIX}install_name_tool \
-change ${DWNDEV}/lib/libogg.0.dylib \
@executable_path/../Libraries/libogg.0.dylib \
releases/DARWIN/OpenBOR.app/Contents/Libraries/libvorbisfile.3.dylib
${PREFIX}install_name_tool \
-change ${DWNDEV}/lib/libogg.0.dylib \
@executable_path/../Libraries/libogg.0.dylib \
releases/DARWIN/OpenBOR.app/Contents/Libraries/libvorbis.0.dylib
${PREFIX}install_name_tool \
-change ${DWNDEV}/lib/libz.1.dylib \
@executable_path/../Libraries/libz.1.2.5.dylib \
releases/DARWIN/OpenBOR.app/Contents/Libraries/libpng14.14.dylib
######### Update Executable Library Paths ##########
${PREFIX}install_name_tool \
-change ${DWNDEV}/lib/libSDL-1.2.0.dylib \
@executable_path/../Libraries/libSDL-1.2.0.dylib \
releases/DARWIN/OpenBOR.app/Contents/MacOS/OpenBOR
${PREFIX}install_name_tool \
-change ${DWNDEV}/lib/libSDL_gfx.13.dylib \
@executable_path/../Libraries/libSDL_gfx.13.dylib \
releases/DARWIN/OpenBOR.app/Contents/MacOS/OpenBOR
${PREFIX}install_name_tool \
-change ${DWNDEV}/lib/libvorbisfile.3.dylib \
@executable_path/../Libraries/libvorbisfile.3.dylib \
releases/DARWIN/OpenBOR.app/Contents/MacOS/OpenBOR
${PREFIX}install_name_tool \
-change ${DWNDEV}/lib/libvorbis.0.dylib \
@executable_path/../Libraries/libvorbis.0.dylib \
releases/DARWIN/OpenBOR.app/Contents/MacOS/OpenBOR
${PREFIX}install_name_tool \
-change ${DWNDEV}/lib/libogg.0.dylib \
@executable_path/../Libraries/libogg.0.dylib \
releases/DARWIN/OpenBOR.app/Contents/MacOS/OpenBOR
${PREFIX}install_name_tool \
-change ${DWNDEV}/lib/libpng14.14.dylib \
@executable_path/../Libraries/libpng14.14.dylib \
releases/DARWIN/OpenBOR.app/Contents/MacOS/OpenBOR
${PREFIX}install_name_tool \
-change ${DWNDEV}/lib/libz.1.dylib \
@executable_path/../Libraries/libz.1.2.5.dylib \
releases/DARWIN/OpenBOR.app/Contents/MacOS/OpenBOR