mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-16 21:04:20 +00:00
c07f91474d
We may need entries with spaces in makeopts, installopts, and configopts, and at that point we should also convert depends and auth_opts to avoid confusion.
15 lines
660 B
Bash
Executable file
15 lines
660 B
Bash
Executable file
#!/usr/bin/env -S bash ../.port_include.sh
|
|
|
|
port=SDL2_gfx
|
|
version=1.0.4
|
|
files="https://downloads.sourceforge.net/project/sdl2gfx/SDL2_gfx-${version}.tar.gz SDL2_gfx-${version}.tar.gz 63e0e01addedc9df2f85b93a248f06e8a04affa014a835c2ea34bfe34e576262"
|
|
auth_type=sha256
|
|
depends=("SDL2")
|
|
useconfigure=true
|
|
configopts=("--with-sdl-prefix=${SERENITY_INSTALL_ROOT}/usr/local")
|
|
|
|
install() {
|
|
run make install DESTDIR=${SERENITY_INSTALL_ROOT} "${installopts[@]}"
|
|
run ${CC} -shared -o ${SERENITY_INSTALL_ROOT}/usr/local/lib/libSDL2_gfx.so -Wl,-soname,libSDL2_gfx.so -Wl,--whole-archive ${SERENITY_INSTALL_ROOT}/usr/local/lib/libSDL2_gfx.a -Wl,--no-whole-archive
|
|
}
|