summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-05-17 17:11:50 +0100
committerdavidovski <david@davidovski.xyz>2022-05-17 17:11:50 +0100
commitd296884edbe61022623e343a115e147fafe1c62b (patch)
treeac9e6643a6475e21fc16e23888a1a7e31ebb13de
parent72b41d959aac1c0e0e16de51fad5e4b6f8ecda98 (diff)
added extremetuxracer
-rw-r--r--repo/games/extremetuxracer/extremetuxracer.xibuild23
-rw-r--r--repo/media/alsa-utils/alsa-utils.xibuild5
-rw-r--r--repo/media/openal-soft/openal-soft.xibuild23
-rw-r--r--repo/media/pulseaudio/pulseaudio.xibuild28
-rw-r--r--repo/media/sfml/musl-1.2.3.patch11
-rw-r--r--repo/media/sfml/sfml.xibuild28
6 files changed, 111 insertions, 7 deletions
diff --git a/repo/games/extremetuxracer/extremetuxracer.xibuild b/repo/games/extremetuxracer/extremetuxracer.xibuild
new file mode 100644
index 0000000..9cf6556
--- /dev/null
+++ b/repo/games/extremetuxracer/extremetuxracer.xibuild
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+NAME="extremetuxracer"
+DESC="Downhill racing game starring Tux"
+
+MAKEDEPS="make "
+DEPS="glu mesa musl sfml "
+
+PKG_VER=0.8.1
+SOURCE="https://downloads.sourceforge.net/extremetuxracer/etr-$PKG_VER.tar.xz"
+
+build () {
+ ./configure \
+ --prefix=/usr \
+ --bindir=/usr/bin \
+ --sysconfdir=/etc \
+ --disable-static
+ make
+}
+
+package () {
+ make DESTDIR=$PKG_DEST install
+}
diff --git a/repo/media/alsa-utils/alsa-utils.xibuild b/repo/media/alsa-utils/alsa-utils.xibuild
index cd8c644..6e1226b 100644
--- a/repo/media/alsa-utils/alsa-utils.xibuild
+++ b/repo/media/alsa-utils/alsa-utils.xibuild
@@ -9,8 +9,9 @@ PKG_VER=1.2.6
SOURCE=https://www.alsa-project.org/files/pub/utils/alsa-utils-$PKG_VER.tar.bz2
build () {
- ./configure --disable-alsaconf \
- --disable-bat \
+ ./configure \
+ --disable-nls \
+ --disable-bat \
--disable-xmlto \
--with-curses=ncursesw &&
make
diff --git a/repo/media/openal-soft/openal-soft.xibuild b/repo/media/openal-soft/openal-soft.xibuild
new file mode 100644
index 0000000..c0d7137
--- /dev/null
+++ b/repo/media/openal-soft/openal-soft.xibuild
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+NAME="openal-soft"
+DESC="software implementation of OpenAL API"
+
+MAKEDEPS="cmake "
+DEPS="ffmpeg4 musl sdl2 "
+
+PKG_VER=1.22.0
+SOURCE="https://github.com/kcat/openal-soft/archive/$PKG_VER.tar.gz"
+
+build () {
+ cmake -B build \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=/usr/lib \
+ -DBUILD_SHARED_LIBS=True \
+ -DBUILD_STATIC_LIBS=OFF
+ cmake --build build
+}
+
+package () {
+ DESTDIR="$PKG_DEST" cmake --install build
+}
diff --git a/repo/media/pulseaudio/pulseaudio.xibuild b/repo/media/pulseaudio/pulseaudio.xibuild
index 9554c72..14b9bcd 100644
--- a/repo/media/pulseaudio/pulseaudio.xibuild
+++ b/repo/media/pulseaudio/pulseaudio.xibuild
@@ -1,6 +1,6 @@
#!/bin/sh
-MAKEDEPS="make check"
+MAKEDEPS="make check soxr speex libx11 libxtst fftw jack speexdsp openssl eudev check libtool"
DEPS="libsndfile alsa-lib dbus elogind glib libcap speex libxtst gdbm"
DESC="A featureful, general-purpose sound server"
@@ -13,10 +13,28 @@ build () {
cd build &&
meson --prefix=/usr \
- --buildtype=release \
- -Ddatabase=gdbm \
- -Ddoxygen=false \
- -Dbluez5=disabled &&
+ -Dgcov=false \
+ -Dman=true \
+ -Dtests=true \
+ -Dsystem_user=pulse \
+ -Dsystem_group=pulse \
+ -Ddatabase=tdb \
+ -Dalsa=enabled \
+ -Ddbus=enabled \
+ -Dglib=enabled \
+ -Dgsettings=enabled \
+ -Dgtk=enabled \
+ -Dhal-compat=false \
+ -Dipv6=true \
+ -Ddatabase=gdbm \
+ -Dopenssl=enabled \
+ -Dsamplerate=disabled \
+ -Dsoxr=enabled \
+ -Dsystemd=disabled \
+ -Dudev=enabled \
+ -Dx11=enabled \
+ -Dudevrulesdir=/usr/lib/udev/rules.d \
+ -Ddoxygen=false &&
ninja
}
diff --git a/repo/media/sfml/musl-1.2.3.patch b/repo/media/sfml/musl-1.2.3.patch
new file mode 100644
index 0000000..54d2f6d
--- /dev/null
+++ b/repo/media/sfml/musl-1.2.3.patch
@@ -0,0 +1,11 @@
+--- a/src/SFML/Window/Unix/WindowImplX11.cpp
++++ b/src/SFML/Window/Unix/WindowImplX11.cpp
+@@ -1556,7 +1556,7 @@
+ m_window,
+ XNInputStyle,
+ XIMPreeditNothing | XIMStatusNothing,
+- reinterpret_cast<void*>(NULL));
++ reinterpret_cast<void*>(0));
+ }
+ else
+ {
diff --git a/repo/media/sfml/sfml.xibuild b/repo/media/sfml/sfml.xibuild
new file mode 100644
index 0000000..c0001dd
--- /dev/null
+++ b/repo/media/sfml/sfml.xibuild
@@ -0,0 +1,28 @@
+#!/bin/sh
+
+NAME="sfml"
+DESC="Simple and Fast Multimedia Library"
+
+MAKEDEPS="cmake "
+DEPS="eudev freetype2 flac libogg libvorbis libx11 libxrandr mesa musl openal-soft "
+
+PKG_VER=2.5.1
+SOURCE="https://github.com/SFML/SFML/archive/$PKG_VER/sfml-$PKG_VER.tar.gz"
+ADDITIONAL="musl-1.2.3.patch "
+
+prepare () {
+ apply_patches
+}
+
+build () {
+ cmake -B build \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=/usr/lib \
+ -DBUILD_SHARED_LIBS=True \
+ -DBUILD_STATIC_LIBS=OFF
+ cmake --build build
+}
+
+package () {
+ DESTDIR="$PKG_DEST" cmake --install build
+}