Move installed packages to /opt/spm/

This commit is contained in:
Xavier Del Campo Romero 2023-09-01 14:22:04 +02:00
parent fc84651ae8
commit 1261bcc703
Signed by: xavi
GPG Key ID: 84FF3612A9BF43F2
7 changed files with 15 additions and 14 deletions

View File

@ -6,7 +6,7 @@ RUN apk update && apk add \
musl-dev \
linux-headers \
perl
ARG PREFIX=/install/openssl-3.1.1
ARG PREFIX=/opt/spm/openssl-3.1.1
RUN git clone --depth 1 -b openssl-3.1.1 git://git.openssl.org/openssl.git
WORKDIR /openssl
RUN ./config -ffunction-sections -fdata-sections \

View File

@ -7,7 +7,7 @@ RUN apk update && apk add \
musl-dev
RUN git clone --depth 1 --recursive https://github.com/libsdl-org/SDL-1.2
WORKDIR /SDL-1.2
ARG PREFIX=/install/SDL-1.2.15
ARG PREFIX=/opt/spm/SDL-1.2.15
RUN ./configure \
--prefix=$PREFIX \
--enable-shared=no \

View File

@ -5,13 +5,13 @@ RUN apk update && apk add \
gcc \
musl-dev \
wget
COPY --from=libsdl:1.2.15 /install/SDL-1.2.15/ /usr/local/
COPY --from=libsdl:1.2.15 /opt/spm/SDL-1.2.15/ /usr/local/
# sdl-config must be edited when moved to another prefix.
RUN sed -ie 's,/install/SDL-1.2.15,/usr/local,g' $(which sdl-config)
RUN sed -ie 's,/opt/spm/SDL-1.2.15,/usr/local,g' $(which sdl-config)
RUN wget http://www.ferzkopp.net/Software/SDL_gfx-2.0/SDL_gfx-2.0.26.tar.gz
RUN tar -xf SDL_gfx-2.0.26.tar.gz
WORKDIR /SDL_gfx-2.0.26
ARG PREFIX=/install/SDL_gfx-2.0.26
ARG PREFIX=/opt/spm/SDL_gfx-2.0.26
RUN ./configure \
--prefix=$PREFIX \
--enable-shared=no \

View File

@ -5,13 +5,13 @@ RUN apk update && apk add \
gcc \
musl-dev \
wget
COPY --from=libsdl:1.2.15 /install/SDL-1.2.15/ /usr/local/
COPY --from=libsdl:1.2.15 /opt/spm/SDL-1.2.15/ /usr/local/
# sdl-config must be edited when moved to another prefix.
RUN sed -ie 's,/install/SDL-1.2.15,/usr/local,g' $(which sdl-config)
RUN sed -ie 's,/opt/spm/SDL-1.2.15,/usr/local,g' $(which sdl-config)
RUN wget https://www.libsdl.org/projects/SDL_mixer/release/SDL_mixer-1.2.12.tar.gz
RUN tar -xf SDL_mixer-1.2.12.tar.gz
WORKDIR /SDL_mixer-1.2.12
ARG PREFIX=/install/SDL_mixer-1.2.12
ARG PREFIX=/opt/spm/SDL_mixer-1.2.12
RUN ./configure \
--prefix=$PREFIX \
--enable-shared=no \

View File

@ -1,5 +1,5 @@
FROM alpine
ARG PREFIX=/install/cjson-1.7.16
ARG PREFIX=/opt/spm/cjson-1.7.16
RUN apk update && apk add \
git \
cmake \

View File

@ -8,7 +8,7 @@ RUN apk update && apk add \
RUN wget http://enet.bespin.org/download/enet-1.3.17.tar.gz
RUN tar -xf enet-1.3.17.tar.gz
WORKDIR /enet-1.3.17
ARG PREFIX=/install/enet-1.3.17
ARG PREFIX=/opt/spm/enet-1.3.17
RUN ./configure \
--prefix=$PREFIX \
--enable-shared=no \

View File

@ -4,9 +4,10 @@ RUN apk update && apk add \
make \
gcc \
musl-dev
COPY --from=libcjson:1.7.16 /install/cjson-1.7.16/ /usr/local/
COPY --from=libopenssl:3.1.1-minimal /install/openssl-3.1.1/ /usr/local/
RUN git clone --depth 1 --recursive https://gitea.privatedns.org/xavi92/slcl
WORKDIR /slcl
COPY --from=libcjson:1.7.16 /opt/spm/cjson-1.7.16/ /usr/local/
COPY --from=libopenssl:3.1.1-minimal /opt/spm/openssl-3.1.1/ /usr/local/
RUN git clone --depth 1 --recursive https://gitea.privatedns.org/xavi92/slcl \
/opt/spm/slcl-master
WORKDIR /opt/spm/slcl-master
RUN make LDFLAGS=-static -j$(nproc --all)
RUN strip slcl