smlinux/extra/sdl2/sdl2.SMBuild
PktSurf 03b8e2675c Split build() into prepbuilddir() and build() functions in base, xorg, gtk, extra and
net subsection package build files
Upgraded base/rust to 1.64.0
Added cbindgen 0.24.3 to base
Upgraded base/gdbm to 1.23
Added -mno-outline-atomics as CXXFLAGS to fix build breakage in base/gpgme
Fixed rc.gtk script in base/initfs
Added preservestaticlibs to prevent static libraries from being discarded and upgraded base/libcap to 2.67
Upgraded base/nodejs to 18.14.2
Temporarily discarded unnecessary code and comments in installpkg script in base/pkgtools
Added protobuf 3.14.0 to base
Upgraded base/python3 to 3.9.16
Upgraded base/sccache to 0.3.3
Upgraded extra/abiword to 3.0.5
Added adafruit-io 2.7.0 to extra
Added code to discard creation of systemd directory in extra/bluez
Added code to discard /usr directory in extra/ffmpeg
Removed unnecessary CFLAGS in extra/freerdp
Upgraded extra/imagemagick to 7.1.0
Upgraded extra/vim to 9.0.1000
Added build option to disable linking against gtk2 in extra/xarchiver
Upgraded heavybuilds/firefox to 102.8.0 ESR, discarded extraneous files that were part of it
Upgraded net/fail2ban to 1.0.2
Discarded unnecessary CFLAGS in net/lynx
Optimised build code in net/maccalc
Fixed noautoconfsite variable and added --disable-xxhash build option to net/rsync
Removed unnecessary CFLAGS in xorg/libtiff and xorg/libxklavier
2023-03-13 00:45:56 +05:30

40 lines
1.1 KiB
Text
Executable file

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 \
-DCMAKE_C_FLAGS="$CFLAGS" \
-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
-DPULSEAUDIO=OFF
make
make install DESTDIR=$pkg
cp ../COPYING.txt $pkgdocs/
mkfinalpkg
}
sha512sums="
67b9d51ef166f3d1780e64a2265624007ae3b341fbaf278adcee4831dc8afeefde94c02954c09f72895f6dba3007978327911f4284853a410c5be605aa7aa1f6 SDL2-2.0.8.tar.lz
76c93659a122def05f341ba30507b546b201c84823236ca731ac801f092e769574e8f051770a76050a77ac846ed851abab604e0a6d578b382f4792ab47aa60ed khronos.patch
"