summaryrefslogtreecommitdiff
path: root/repo/snes9x/snes9x.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-08-29 13:01:02 +0000
committerdavidovski <david@davidovski.xyz>2022-08-29 13:01:02 +0000
commitc38dfe6188112ca490090966a63faefe5ec7e9a0 (patch)
tree0b5cb4f2b5148784d852070317d90485ab31e122 /repo/snes9x/snes9x.xibuild
parent49fa1762a5c52ff2cf981f29a45e1797e3885bb4 (diff)
added snes9x and php
Diffstat (limited to 'repo/snes9x/snes9x.xibuild')
-rw-r--r--repo/snes9x/snes9x.xibuild28
1 files changed, 28 insertions, 0 deletions
diff --git a/repo/snes9x/snes9x.xibuild b/repo/snes9x/snes9x.xibuild
new file mode 100644
index 0000000..8059644
--- /dev/null
+++ b/repo/snes9x/snes9x.xibuild
@@ -0,0 +1,28 @@
+#!/bin/sh
+
+NAME="snes9x"
+DESC="Super NES Emulator"
+
+MAKEDEPS="meson glib sdl2 gtk3 libxrandr libepoxy wayland libxv portaudio alsa-lib libpng minizip zlib"
+
+PKG_VER=1.60
+SOURCE="https://github.com/snes9xgit/snes9x/archive/$PKG_VER.tar.gz"
+
+prepare () {
+ cd gtk
+}
+
+build() {
+ meson --prefix=/usr \
+ -Dopengl=true \
+ -Dgtk3=true \
+ -Dpulseaudio=false \
+ . output
+ meson compile ${JOBS:+-j ${JOBS}} -C output
+}
+
+package() {
+ DESTDIR="$PKG_DEST" meson install --no-rebuild -C output
+ ln -s snes9x-gtk "$PKG_DEST"/usr/bin/snes9x
+}
+