yabause: Qt4 -> Qt5, disable emu-compatibility.com in About menu
emu-compatibility.com is now defunct and thus should not be in About menu. Other minor changes: * linkage-rwx-linux-elf.diff -> linkage-rwx-linux-elf.patch * Mark some inputs as optional * Do not build with Doxygen by default: it does not produce any outputs * Do not build with OpenAL by default: SDL2 handles sound when present * Do not build with FreeGLUT by default: deprecated at upstream
This commit is contained in:
parent
37464fd42a
commit
055759d27a
|
@ -1,35 +1,33 @@
|
||||||
{ stdenv, fetchurl, config
|
{ stdenv, fetchurl, cmake, pkgconfig, qtbase, mesa
|
||||||
, cmake, pkgconfig
|
, freeglut ? null, openal ? null, SDL2 ? null }:
|
||||||
, doxygen
|
|
||||||
, qt
|
|
||||||
, libXmu, mesa, openal, SDL2, freeglut
|
|
||||||
}:
|
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "yabause-${meta.version}";
|
name = "yabause-${version}";
|
||||||
|
# 0.9.15 only works with OpenGL 3.2 or later:
|
||||||
|
# https://github.com/Yabause/yabause/issues/349
|
||||||
|
version = "0.9.14";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://download.tuxfamily.org/yabause/releases/${meta.version}/${name}.tar.gz";
|
url = "https://download.tuxfamily.org/yabause/releases/${version}/${name}.tar.gz";
|
||||||
sha256 = "0nkpvnr599g0i2mf19sjvw5m0rrvixdgz2snav4qwvzgfc435rkm";
|
sha256 = "0nkpvnr599g0i2mf19sjvw5m0rrvixdgz2snav4qwvzgfc435rkm";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [ ./linkage-rwx-linux-elf.diff ];
|
nativeBuildInputs = [ cmake pkgconfig ];
|
||||||
|
buildInputs = [ qtbase mesa freeglut openal SDL2 ];
|
||||||
|
|
||||||
buildInputs =
|
patches = [ ./emu-compatibility.com.patch ./linkage-rwx-linux-elf.patch ];
|
||||||
[ cmake pkgconfig doxygen qt libXmu mesa openal SDL2 freeglut ];
|
|
||||||
|
|
||||||
cmakeConfigureFlags = [
|
cmakeFlags = [
|
||||||
"-DYAB_PORTS='qt'"
|
"-DYAB_NETWORK=ON"
|
||||||
"-DYAB_OPTIMIZED_DMA='ON'"
|
"-DYAB_OPTIMIZED_DMA=ON"
|
||||||
"-DYAB_NETWORK='ON'" ] ;
|
"-DYAB_PORTS=qt"
|
||||||
|
] ;
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
version = "0.9.14";
|
|
||||||
description = "An open-source Sega Saturn emulator";
|
description = "An open-source Sega Saturn emulator";
|
||||||
homepage = http://yabause.org/;
|
homepage = https://yabause.org/;
|
||||||
license = licenses.gpl2Plus;
|
license = licenses.gpl2Plus;
|
||||||
maintainers = [ maintainers.AndersonTorres ];
|
maintainers = with maintaines; [ AndersonTorres ];
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
# TODO: Qt5
|
|
||||||
|
|
|
@ -0,0 +1,10 @@
|
||||||
|
--- a/src/qt/ui/UIYabause.ui 2017-09-28 13:23:04.636014753 +0000
|
||||||
|
+++ b/src/qt/ui/UIYabause.ui 2017-09-28 13:23:21.945763537 +0000
|
||||||
|
@@ -230,7 +230,6 @@
|
||||||
|
<property name="title">
|
||||||
|
<string>&Help</string>
|
||||||
|
</property>
|
||||||
|
- <addaction name="aHelpEmuCompatibility"/>
|
||||||
|
<addaction name="aHelpAbout"/>
|
||||||
|
</widget>
|
||||||
|
<widget class="QMenu" name="mTools">
|
|
@ -19446,8 +19446,9 @@ with pkgs;
|
||||||
|
|
||||||
xzoom = callPackage ../tools/X11/xzoom {};
|
xzoom = callPackage ../tools/X11/xzoom {};
|
||||||
|
|
||||||
yabause = callPackage ../misc/emulators/yabause {
|
yabause = libsForQt5.callPackage ../misc/emulators/yabause {
|
||||||
qt = qt4;
|
freeglut = null;
|
||||||
|
openal = null;
|
||||||
};
|
};
|
||||||
|
|
||||||
yadm = callPackage ../applications/version-management/yadm { };
|
yadm = callPackage ../applications/version-management/yadm { };
|
||||||
|
|
Loading…
Reference in New Issue