serenity/Ports/SDL2_gfx/package.sh

14 lines
494 B
Bash
Raw Normal View History

2021-04-04 13:28:41 -04:00
#!/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
}