mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:17:35 +00:00
Ports: Add port for SDL2_net
This commit is contained in:
parent
f589acaac9
commit
dd35bd158e
5 changed files with 50 additions and 0 deletions
12
Ports/SDL2_net/package.sh
Executable file
12
Ports/SDL2_net/package.sh
Executable file
|
@ -0,0 +1,12 @@
|
|||
#!/usr/bin/env -S bash ../.port_include.sh
|
||||
port=SDL2_net
|
||||
version=2.0.1
|
||||
useconfigure=true
|
||||
configopts=--with-sdl-prefix="${SERENITY_INSTALL_ROOT}/usr/local"
|
||||
files="https://www.libsdl.org/projects/SDL_net/release/SDL2_net-${version}.tar.gz SDL2_net-${version}.tar.gz 15ce8a7e5a23dafe8177c8df6e6c79b6749a03fff1e8196742d3571657609d21"
|
||||
auth_type=sha256
|
||||
depends="SDL2"
|
||||
|
||||
post_install() {
|
||||
run ${CC} -shared -o ${SERENITY_INSTALL_ROOT}/usr/local/lib/libSDL2_net.so -Wl,-soname,libSDL2_net.so -Wl,--whole-archive ${SERENITY_INSTALL_ROOT}/usr/local/lib/libSDL2_net.a -Wl,--no-whole-archive
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue