mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
da92c0e1ca
This manually builds shared libraries for a bunch of ports. Using libtool would be preferable but that's currently broken so I'm linking the shared libraries manually.
13 lines
494 B
Bash
Executable file
13 lines
494 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"
|
|
depends="SDL2"
|
|
useconfigure=true
|
|
configopts="--with-sdl-prefix=${SERENITY_BUILD_DIR}/Root/usr/local"
|
|
|
|
install() {
|
|
run make install DESTDIR=$DESTDIR $installopts
|
|
run ${CC} -shared -o $DESTDIR/usr/local/lib/libSDL2_gfx.so -Wl,--whole-archive $DESTDIR/usr/local/lib/libSDL2_gfx.a -Wl,--no-whole-archive
|
|
}
|