aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJ0WI <J0WI@users.noreply.github.com>2021-08-10 20:41:01 -0300
committerLeo <thinkabit.ukim@gmail.com>2021-08-11 03:11:30 +0000
commit8914253ef1d540c3e48d2facd6ef67d456e8484f (patch)
tree70486cbfb7f848e565d87cd534f60538e0b783ce
parent190d7a9990322ad3502c041c053456de684dc6b2 (diff)
downloadaports-8914253ef1d540c3e48d2facd6ef67d456e8484f.tar.gz
aports-8914253ef1d540c3e48d2facd6ef67d456e8484f.tar.bz2
aports-8914253ef1d540c3e48d2facd6ef67d456e8484f.tar.xz
community/sdl2: add pipewire support
Co-authored-by: Leo <thinkabit.ukim@gmail.com>
-rw-r--r--community/sdl2/APKBUILD11
1 files changed, 10 insertions, 1 deletions
diff --git a/community/sdl2/APKBUILD b/community/sdl2/APKBUILD
index 976d119e35..4f9e55df80 100644
--- a/community/sdl2/APKBUILD
+++ b/community/sdl2/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: August Klein <amatcoder@gmail.com>
pkgname=sdl2
pkgver=2.0.16
-pkgrel=0
+pkgrel=1
pkgdesc="development library designed to provide low level access to audio, keyboard, mouse, joystick and graphics"
url="https://www.libsdl.org"
arch="all"
@@ -47,6 +47,14 @@ builddir="$srcdir/SDL2-$pkgver"
# - CVE-2019-7637
# - CVE-2019-7638
+case "$CARCH" in
+ s390x|mips64) _pipewire=OFF ;;
+ *)
+ makedepends="$makedepends pipewire-dev"
+ _pipewire=ON
+ ;;
+esac
+
build() {
# NOTE: Please do not remove the -DVIDEO_DIRECTFB=ON flag.
# Some apps, used for booting Alpine derivatives, require this to function!
@@ -72,6 +80,7 @@ build() {
-DCMAKE_C_FLAGS="$CFLAGS" \
-DSDL_STATIC=ON \
-DSDL_SHARED=ON \
+ -DPIPEWIRE_SHARED=$_pipewire \
-DPULSEAUDIO_SHARED=ON \
"$CMAKE_CROSSOPTS"
make -C build