-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
StepMania.txt
195 lines (153 loc) · 6.38 KB
/
StepMania.txt
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%
%%%%% Information
%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- StepMania 5 Compile
- Commands below are for Fedora 23 Workstation
- Assumes presense of AMD Athlon(tm) 64 X2 Dual Core Processor 5600+ (k8-sse3)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%
%%%%% Software
%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
sudo dnf install gcc gcc-c++ make cmake git distcc automake autoconf mesa-libGL-devel mesa-libGLU-devel glew-devel xorg-x11-server-devel libXtst-devel libXrandr-devel libpng-devel libjpeg-turbo-devel zlib-devel bzip2-devel libogg-devel libvorbis-devel glibc-devel yasm-devel pulseaudio-libs-devel alsa-lib-devel binutils-devel gtk2-devel libstdc++-devel pcre-devel nasm libva-devel jack-audio-connection-kit-devel
%%%%%%%%%%%%%%%%%%%%
%%%%% libmad
%%%%% Package needed = libmad and libmad-devel
%%%%% If RPM Fusion repo is added, only install two packages above and ignore commands below
%%%%%%%%%%%%%%%%%%%%
sudo dnf install http://download1.rpmfusion.org/free/fedora/development/23/x86_64/os/libmad-0.15.1b-17.fc22.x86_64.rpm
sudo dnf install http://download1.rpmfusion.org/free/fedora/development/23/x86_64/os/libmad-devel-0.15.1b-17.fc22.x86_64.rpm
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%
%%%%% Git Management
%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%
%%%%% SM5 Download
%%%%%%%%%%%%%%%%%%%%
cd '/home/espionage724' && git clone -b master https://github.com/stepmania/stepmania.git stepmania && sync
%%%%%%%%%%%%%%%%%%%%
%%%%% SM5 Update
%%%%%%%%%%%%%%%%%%%%
cd '/home/espionage724/stepmania' && git pull origin master && cd '/home/espionage724' && sync
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%
%%%%% Compile and Install StepMania
%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%
%%%%% Info
%%%%%%%%%%%%%%%%%%%%
- These steps allow for ffmpeg to recieve compile-time tweaks and to use distcc
- The flags for ffmpeg are tossed under WITH_GPL_LIBS because that flag is enabled by-default, and it just happens to work well for this (I'm just tossing on more flags along with --enable-gpl)
- Some ffmpeg flags are probably unnecessary and redundant
%%%%%%%%%%%%%%%%%%%%
%%%%% Prepare Build Folder
%%%%%%%%%%%%%%%%%%%%
mkdir '/home/espionage724/sm5-build' '/home/espionage724/sm5-run' && cd '/home/espionage724/sm5-build'
%%%%%%%%%%%%%%%%%%%%
%%%%% Configure ffmpeg
%%%%%%%%%%%%%%%%%%%%
nano '/home/espionage724/stepmania/CMake/SetupFfmpeg.cmake'
-------------------------
if(WITH_GPL_LIBS)
list(APPEND FFMPEG_CONFIGURE
"--enable-gpl"
"--cc=distcc"
"--cxx=distcc"
"--host-cflags=-O2 -pipe -march=k8-sse3"
"--host-cppflags=-O2 -pipe -march=k8-sse3"
"--optflags=-O2 -pipe -march=k8-sse3"
"--arch=x86_64"
"--cpu=k8-sse3"
)
endif()
-------------------------
%%%%%%%%%%%%%%%%%%%%
%%%%% Compile
%%%%%%%%%%%%%%%%%%%%
export DISTCC_HOSTS='192.168.1.150/8 localhost/2'
CC='distcc gcc' CXX='distcc g++' cmake '/home/espionage724/stepmania' -DCMAKE_INSTALL_PREFIX='/home/espionage724/sm5-run' -DCMAKE_CXX_FLAGS='-O2 -pipe -march=k8-sse3' -DCMAKE_C_FLAGS='-O2 -pipe -march=k8-sse3' -DWITH_FFMPEG_JOBS=10 && sync
DISTCC_HOSTS='192.168.1.150/8 localhost/2' make -j10 install && sync
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%
%%%%% Configuration
%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
nano '/home/espionage724/.stepmania-5.0/Save/Preferences.ini'
-------------------------
GlobalOffsetSeconds=-0.065612
MachineName=Hatebeat
ShowMouseCursor=0
SoundDevice=plughw:0,0
SoundDrivers=alsa-sw
-------------------------
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%
%%%%% Themes
%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%
%%%%% Information
%%%%%%%%%%%%%%%%%%%%
- Below commands require starting SM5 at least once in order to create the user-specific folder
%%%%%%%%%%%%%%%%%%%%
%%%%% Simply Love Download
%%%%%%%%%%%%%%%%%%%%
cd '/home/espionage724/.stepmania-5.0/Themes' && git clone -b master https://github.com/dguzek/Simply-Love-SM5.git sl && sync
%%%%%%%%%%%%%%%%%%%%
%%%%% Simply Love Update
%%%%%%%%%%%%%%%%%%%%
cd '/home/espionage724/.stepmania-5.0/Themes/sl' && git pull origin master && cd '/home/espionage724' && sync
%%%%%%%%%%%%%%%%%%%%
%%%%% Metal Noteskin
%%%%%%%%%%%%%%%%%%%%
cd '/home/espionage724/.stepmania-5.0/NoteSkins' && mkdir dance && cd dance && wget http://zettbou.co.uk/Unlimited_Stepman_Works/_Noteskin/SM5/Dance/USWMetalSM5.rar -O Metal.rar && unar Metal.rar && rm Metal.rar
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%
%%%%% Script Setup
%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%
%%%%% stepmania
%%%%%%%%%%%%%%%%%%%%
nano '/home/espionage724/sm.sh'
-------------------------
cd '/home/espionage724/sm5-run/stepmania-5.0'
vblank_mode=0 '/home/espionage724/sm5-run/stepmania-5.0/stepmania'
-------------------------
%%%%%%%%%%%%%%%%%%%%
%%%%% Make Executable
%%%%%%%%%%%%%%%%%%%%
chmod +x '/home/espionage724/sm.sh'
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%
%%%%% Execute
%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
'/home/espionage724/sm.sh'
####################################################################################################
####################################################################################################
#####
##### End
#####
####################################################################################################
####################################################################################################