-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathDockerfile.m4
79 lines (50 loc) · 1.6 KB
/
Dockerfile.m4
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
m4_include(`paths.m4')m4_dnl
m4_include(`packages.m4')m4_dnl
m4_define(`vdpm_package', RUN lib-helpers/install-vdpm.sh $1)m4_dnl
m4_dnl Include Debian base preparation steps
m4_dnl This ensures all common steps are shared by all toolchains
m4_include(`debian-toolchain-base.m4')m4_dnl
COPY functions-platform.sh install-vdpm.sh lib-helpers/
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
libc6-i386 \
lib32stdc++6 \
lib32gcc-s1 \
zip && \
rm -rf /var/lib/apt/lists/*
ENV VITASDK=/usr/local/vitasdk HOST=arm-vita-eabi
ENV PREFIX=$VITASDK/$HOST
local_package(toolchain)
# We add PATH here for *-config and platform specific binaries
ENV \
def_binaries(`${VITASDK}/bin/${HOST}-', `ar, as, c++filt, ld, nm, objcopy, objdump, ranlib, readelf, strings, strip') \
def_binaries(`${VITASDK}/bin/${HOST}-', `gcc, cpp, c++') \
CC=${VITASDK}/bin/${HOST}-gcc \
def_aclocal(`${PREFIX}') \
def_pkg_config(`${PREFIX}') \
PATH=$PATH:${VITASDK}/bin:${PREFIX}/bin
vdpm_package(zlib)
vdpm_package(libpng)
vdpm_package(libjpeg-turbo)
helpers_package(giflib)
vdpm_package(libmad)
vdpm_package(libogg)
vdpm_package(libvorbis)
vdpm_package(libtheora)
vdpm_package(flac)
vdpm_package(libmikmod)
helpers_package(faad2)
vdpm_package(libmpeg2)
helpers_package(a52dec)
helpers_package(libmpcdec)
vdpm_package(libvpx)
vdpm_package(openssl)
vdpm_package(curl)
# Freetype needs bzip2
vdpm_package(bzip2)
vdpm_package(freetype)
vdpm_package(fribidi)
vdpm_package(FluidLite)
vdpm_package(sdl2)
vdpm_package(sdl2_net)
define_aliases(psp2, psp2vpk, --enable-plugins)