smlinux/extra/sdl2/sdl2.SMBuild

40 lines
1.1 KiB
Text
Executable file

# Maintainer: PktSurf <smlinux@pktsurf.in>
app=sdl2
version=2.0.8
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
applypatch $srcdir/khronos.patch
}
build() {
mkdir -p smbuild && cd smbuild
cmake .. \
-DCMAKE_INSTALL_PREFIX="" \
-DCMAKE_BUILD_TYPE=Release \
-DSDL_STATIC=OFF \
-DPULSEAUDIO=OFF
make
make install DESTDIR=$pkg
cp ../COPYING.txt $pkgdocs/
mkfinalpkg
}
sha512sums="
67b9d51ef166f3d1780e64a2265624007ae3b341fbaf278adcee4831dc8afeefde94c02954c09f72895f6dba3007978327911f4284853a410c5be605aa7aa1f6 SDL2-2.0.8.tar.lz
76c93659a122def05f341ba30507b546b201c84823236ca731ac801f092e769574e8f051770a76050a77ac846ed851abab604e0a6d578b382f4792ab47aa60ed khronos.patch
"