smlinux/extra/sdl2/sdl2.SMBuild
PktSurf f145013469 Fixed doinst.sh in base/alsa-lib
Updated extra/sdl2 to 2.26.5
Updated net/poppler-data to 0.4.12
Discarded docdir build option in extra/xarchiver
Fixed prefix build option in gtk/openjpeg
2023-06-12 22:19:52 +05:30

43 lines
999 B
Text
Executable file

# Maintainer: PktSurf <smlinux@pktsurf.in>
app=sdl2
version=2.26.5
build=1sml
homepage="https://www.sdl.org"
download="https://www.libsdl.org/release/SDL2-$version.tar.gz"
desc="C Library providing low-level I/O access to hardware devices via OpenGL and 2D framebuffer"
requires="alsa-lib libx11 libxcursor libxext libxrender libxinerama mesa"
prepbuilddir() {
mkandenterbuilddir
rm -rf SDL2-$version
tar xf $srcdir/SDL2-$version.tar.?z*
cd SDL2-$version
fixbuilddirpermissions
}
build() {
mkdir -p smbuild && cd smbuild
cmake .. \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_LIBDIR=lib \
-DSDL_STATIC=OFF \
-DPULSEAUDIO=OFF
make
make install DESTDIR=$pkg
cp ../LICENSE.txt $pkgdocs/
(
cp -r $pkg/usr/* $pkg/
rm -r $pkg/usr
)
mkfinalpkg
}
sha512sums="
4efa3b68d410928bcba65909e54ff75ff95fb4c0a07f40f7aebbcec633b72026c33fc36f5f0d9ddd1913687860abeebc1373ba835c8dca7f0ad48c5e158d5b2c SDL2-2.26.5.tar.lz
"