-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
222 lines (171 loc) · 4.19 KB
/
Dockerfile
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
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
FROM sseefried/debian-wheezy-ghc-android
MAINTAINER [email protected]
USER androidbuilder
ENV BASE /home/androidbuilder/build
RUN mkdir -p $BASE
WORKDIR $BASE
#
# Install ant
#
USER root
#
# I live in Australia so change the mirror to one more appropriate
# to where you live.
#
run echo "deb http://mirror.aarnet.edu.au/debian wheezy main" > /etc/apt/sources.list
run echo "deb-src http://mirror.aarnet.edu.au/debian wheezy main" >> /etc/apt/sources.list
RUN apt-get update
RUN apt-get install ant openjdk-6-jdk -y
RUN wget http://dl.google.com/android/android-sdk_r24.2-linux.tgz
RUN cd .. && tar xzf build/android-sdk_r24.2-linux.tgz
RUN chown -R androidbuilder:androidbuilder /home/androidbuilder/android-sdk-linux
# Switch back to androidbuilder user
USER androidbuilder
#
# Add environment script
#
ADD scripts/set-env.sh $BASE/
#
# Install Android SDK platform tools, build tools and API
#
ADD scripts/install-android-sdk-platform-tools.sh $BASE/
RUN ./install-android-sdk-platform-tools.sh
ADD scripts/install-android-sdk-build-tools.sh $BASE/
RUN ./install-android-sdk-build-tools.sh
ADD scripts/install-android-api-12.sh $BASE/
RUN ./install-android-api-12.sh
#
# Build cpufeatures library
#
ADD scripts/build-cpufeatures.sh $BASE/
RUN ./build-cpufeatures.sh
#
# Build libpng
#
ADD scripts/download-libpng.sh $BASE/
RUN ./download-libpng.sh
ADD scripts/build-libpng.sh $BASE/
RUN ./build-libpng.sh
#
# Build pixman
#
ADD scripts/download-pixman.sh $BASE/
RUN ./download-pixman.sh
ADD scripts/build-pixman.sh $BASE/
RUN ./build-pixman.sh
#
# Build freetype
#
ADD scripts/download-freetype.sh $BASE/
RUN ./download-freetype.sh
ADD scripts/build-freetype.sh $BASE/
RUN ./build-freetype.sh
#
# Build cairo
#
ADD scripts/download-cairo.sh $BASE/
RUN ./download-cairo.sh
ADD scripts/build-cairo.sh $BASE/
ADD scripts/locale.h.android $BASE/
RUN ./build-cairo.sh
#
# Build libogg
#
ADD scripts/download-libogg.sh $BASE/
RUN ./download-libogg.sh
ADD scripts/build-libogg.sh $BASE/
RUN ./build-libogg.sh
#
# Build libvorbis
#
ADD scripts/download-libvorbis.sh $BASE/
RUN ./download-libvorbis.sh
ADD scripts/build-libvorbis.sh $BASE/
RUN ./build-libvorbis.sh
#
# Download SDL2 and SDL2_mixer
#
ADD scripts/clone-SDL2-mobile.sh $BASE/
RUN ./clone-SDL2-mobile.sh
ADD scripts/clone-SDL2_mixer-mobile.sh $BASE/
RUN ./clone-SDL2_mixer-mobile.sh
#
# Build SDL2
#
ADD scripts/build-SDL2-mobile.sh $BASE/
RUN ./build-SDL2-mobile.sh
#
# Build SDL2_mixer
#
ADD scripts/build-SDL2_mixer-mobile.sh $BASE/
RUN ./build-SDL2_mixer-mobile.sh
#
# Cabal install text-1.2.0.0
#
ADD scripts/cabal-install-text.sh $BASE/
RUN ./cabal-install-text.sh
#
# Cabal install vector-0.10.12.1
#
ADD scripts/cabal-install-vector.sh $BASE/
ADD scripts/vector-0.10.12.1.patch $BASE/
RUN ./cabal-install-vector.sh
#
# Add cabal setup wrapper
#
ADD scripts/arm-linux-androideabi-cabal-setup.sh /home/androidbuilder/.ghc/android-14/arm-linux-androideabi-4.8/bin/
#
# Clone & build hsSDL2
#
ADD scripts/clone-hsSDL2.sh $BASE/
RUN ./clone-hsSDL2.sh
ADD scripts/build-hsSDL2.sh $BASE/
RUN ./build-hsSDL2.sh
#
# Clone & build hs-sdl2-mixer
#
ADD scripts/clone-hs-sdl2-mixer.sh $BASE/
RUN ./clone-hs-sdl2-mixer.sh
ADD scripts/build-hs-sdl2-mixer.sh $BASE/
RUN ./build-hs-sdl2-mixer.sh
#
# cabal install gtk2hs-buildtoosa (for host compiler)
#
ADD scripts/cabal-install-gtk2hs-buildtools.sh $BASE/
RUN ./cabal-install-gtk2hs-buildtools.sh
#
# Build all epidemic dependencies
#
ADD scripts/cabal-install-hs-cairo-dependencies.sh $BASE/
RUN ./cabal-install-hs-cairo-dependencies.sh
#
# Build Cairo Haskell binding
#
ADD scripts/clone-hs-cairo.sh $BASE/
RUN ./clone-hs-cairo.sh
ADD scripts/build-hs-cairo.sh $BASE/
RUN ./build-hs-cairo.sh
#
# Build Haskell Chipmunk binding, Hipmunk
#
ADD scripts/clone-Hipmunk.sh $BASE/
RUN ./clone-Hipmunk.sh
ADD scripts/build-Hipmunk.sh $BASE/
RUN ./build-Hipmunk.sh
#
# Build OpenGLRaw
#
ADD scripts/clone-OpenGLRaw.sh $BASE/
RUN ./clone-OpenGLRaw.sh
ADD scripts/build-OpenGLRaw.sh $BASE/
RUN ./build-OpenGLRaw.sh
#
# Clone Epidemic
#
ADD scripts/clone-epidemic-game.sh $BASE/
RUN ./clone-epidemic-game.sh
#
# Clone android-build-epidemic-apk
#
ADD scripts/clone-android-build-epidemic-apk.sh $BASE/
RUN ./clone-android-build-epidemic-apk.sh