ladybird/Ports/libenet/package.sh
surrealegg d94a374001 Ports: Add libenet
Libenet is a UDP networking library that is used by Love2D,
a game framework I would like to port.
2023-09-24 21:05:44 +02:00

19 lines
433 B
Bash
Executable file

#!/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
}