mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 18:27:35 +00:00
Ports: Add libenet
Libenet is a UDP networking library that is used by Love2D, a game framework I would like to port.
This commit is contained in:
parent
719a00df3a
commit
d94a374001
6 changed files with 109 additions and 0 deletions
19
Ports/libenet/package.sh
Executable file
19
Ports/libenet/package.sh
Executable file
|
@ -0,0 +1,19 @@
|
|||
#!/usr/bin/env -S bash ../.port_include.sh
|
||||
port='libenet'
|
||||
version='1.3.17'
|
||||
useconfigure='true'
|
||||
files=(
|
||||
"http://sauerbraten.org/enet/download/enet-${version}.tar.gz#a38f0f194555d558533b8b15c0c478e946310022d0ec7b34334e19e4574dcedc"
|
||||
)
|
||||
configopts=(
|
||||
"-DCMAKE_TOOLCHAIN_FILE=${SERENITY_BUILD_DIR}/CMakeToolchain.txt"
|
||||
)
|
||||
workdir="enet-${version}"
|
||||
|
||||
configure() {
|
||||
run cmake "${configopts[@]}"
|
||||
}
|
||||
|
||||
install() {
|
||||
run make install
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue