Skip to content
This repository was archived by the owner on Aug 30, 2025. It is now read-only.

Commit 1ebd832

Browse files
Add the enet library (used in a friendly fork). For Windows, add mingw64-dlfcn and mingw64-physfs.
1 parent 7980296 commit 1ebd832

File tree

7 files changed

+20
-7
lines changed

7 files changed

+20
-7
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
- `naev-steamruntime` (Used for linux steam builds in the steamruntime (soldier) environment)
1010
- `naev-windows` (Used to cross compile for Windows.)
1111

12+
### v1.6.3
13+
Add the enet library (used in a friendly fork). For Windows, add mingw64-dlfcn and mingw64-physfs.
14+
1215
### v1.6.2
1316
Do the v1.6.1 change without bungling naev-macos/Dockerfile.amd64.
1417

naev-linux-latest/Dockerfile.amd64

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ COPY --from=build /opt/luarocks /opt/luarocks
3434
ENV PATH "$PATH:/opt/luarocks/bin"
3535

3636
# Install Build dependencies.
37-
RUN microdnf --nodocs --setopt=install_weak_deps=0 -y install meson ninja-build gcc binutils-devel fontconfig-devel freetype-devel \
37+
RUN microdnf --nodocs --setopt=install_weak_deps=0 -y install meson ninja-build gcc binutils-devel enet-devel fontconfig-devel freetype-devel \
3838
gettext-devel glpk-devel file ffmpeg-free libpng12-devel libxml2-devel libvorbis-devel libwebp-devel libunibreak-devel \
3939
luajit-devel openal-soft-devel openblas-devel pcre2-devel physfs-devel SDL2-devel SDL2_image-devel suitesparse-devel \
4040
# Install utilities

naev-linux-lts/Dockerfile.amd64

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ RUN yum -y install epel-release && \
1616
rpm -i endpoint-repo.x86_64.rpm && \
1717
rm -rf /tmp/endpoint-repo.x86_64.rpm endpoint-rpmsign-7.pub && \
1818
# Install Build dependencies.
19-
yum -y install meson ninja-build gcc binutils-devel fontconfig-devel freetype-devel \
19+
yum -y install meson ninja-build gcc binutils-devel enet-devel fontconfig-devel freetype-devel \
2020
gettext-devel glpk-devel file libpng12-devel libxml2-devel libvorbis-devel libwebp-devel \
2121
libunibreak-devel luajit-devel openal-soft-devel openblas-devel pcre2-devel SDL2-devel \
2222
SDL2_image-devel \

naev-macos/Dockerfile.aarch64

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ RUN sed -i 's/\bopenssl rmd160\b/openssl rmd160 -provider legacy/g' $(command -v
4949

5050

5151
# Install required build dependencies
52-
RUN UNATTENDED=1 osxcross-macports install -arm64 freetype glpk libsdl2 libsdl2_image libpng \
52+
RUN UNATTENDED=1 osxcross-macports install -arm64 freetype glpk libenet libsdl2 libsdl2_image libpng \
5353
libvorbis luajit openal-soft OpenBLAS pcre2 physfs SuiteSparse_CHOLMOD SuiteSparse_CXSparse webp -v && \
5454
UNATTENDED=1 osxcross-macports clear-cache
5555

naev-macos/Dockerfile.amd64

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ RUN sed -i 's/\bopenssl rmd160\b/openssl rmd160 -provider legacy/g' $(command -v
4848
sed -i 's/\bopenssl dgst -ripemd160 -verify\b/openssl dgst -provider default -provider legacy -ripemd160 -verify/g' $(command -v osxcross-macports)
4949

5050
# Install required build dependencies
51-
RUN UNATTENDED=1 osxcross-macports install freetype glpk libsdl2 libsdl2_image libpng \
51+
RUN UNATTENDED=1 osxcross-macports install freetype glpk libenet libsdl2 libsdl2_image libpng \
5252
libvorbis luajit openal-soft OpenBLAS pcre2 physfs SuiteSparse_CHOLMOD SuiteSparse_CXSparse webp -v && \
5353
UNATTENDED=1 osxcross-macports clear-cache
5454

naev-steamruntime/Dockerfile.amd64

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ENV IMAGE_NAME "naev-steamruntime"
1010
# Install pip from steam/debian repositories.
1111
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y python3-pip \
1212
# Naughty: we need libwebp, ,libpcre2 and libopenblas, not in the SDK.... All are statically linked when building with the steamruntime option in meson set to true. Also, texinfo is an accidental build dependency for libbfd.
13-
libopenblas-dev libwebp-dev libpcre2-dev texinfo && \
13+
libenet-dev libopenblas-dev libwebp-dev libpcre2-dev texinfo && \
1414
apt-get clean && \
1515
# Upgrade meson via pip.
1616
python3 -m pip install meson --upgrade && \

naev-windows/Dockerfile.amd64

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,23 @@ WORKDIR /tmp
1111
# Install build requirements
1212
RUN microdnf --nodocs --setopt=install_weak_deps=0 -y install gcc gettext git meson ninja-build python3-pyyaml tar texinfo xz unzip zip \
1313
# Install mingw64 packages
14-
mingw64-gcc mingw64-freetype mingw64-libvorbis mingw64-libxml2 mingw64-openal-soft \
15-
mingw64-SDL2 mingw64-SDL2_image mingw64-libpng mingw32-nsis mingw64-pcre2 && \
14+
mingw64-gcc mingw64-dlfcn mingw64-freetype mingw64-libvorbis mingw64-libxml2 mingw64-openal-soft \
15+
mingw64-SDL2 mingw64-SDL2_image mingw64-libpng mingw32-nsis mingw64-pcre2 mingw64-physfs && \
1616
microdnf clean all && \
1717
# Install openblas for mingw (building this from source is an option but probably painful)
1818
curl -L -O https://github.com/xianyi/OpenBLAS/releases/download/v0.3.20/OpenBLAS-0.3.20-x64.zip && \
1919
unzip OpenBLAS-0.3.20-x64.zip -d /usr/x86_64-w64-mingw32/sys-root/mingw && \
2020
rm -rf OpenBLAS-0.3.20-x64.zip
21+
# Install cross-build of enet
22+
curl -L -O http://enet.bespin.org/download/enet-1.3.17.tar.gz && \
23+
tar zxf enet-1.3.17.tar.gz && \
24+
cd enet-1.3.17 && \
25+
./configure --prefix=/usr/x86_64-w64-mingw32/sys-root/mingw --host=x86_64-w64-mingw32 && \
26+
make -j && \
27+
make install && \
28+
sed -i 's/-lenet/-lenet -lws2_32 -lwinmm/' /usr/x86_64-w64-mingw32/sys-root/mingw/lib/pkgconfig/libenet.pc && \
29+
cd .. && \
30+
rm -rf enet-1.3.17 enet-1.3.17.tar.gz
2131

2232
# Force appimages to run in extract mode since FUSE is not available
2333
ENV APPIMAGE_EXTRACT_AND_RUN 1

0 commit comments

Comments
 (0)