lol

Merge pull request #14736 from AndersonTorres/higan

higan: 096 -> 098

+39 -44
+23 -26
pkgs/misc/emulators/higan/0001-change-flags.diff
··· 1 - diff -rupN higan_v095-source.orig/GNUmakefile higan_v095-source/GNUmakefile 2 - --- higan_v095-source.orig/GNUmakefile 2015-11-04 10:28:26.173428178 +0100 3 - +++ higan_v095-source/GNUmakefile 2015-11-04 10:28:31.752231593 +0100 4 - @@ -12,7 +12,8 @@ target := tomoko 5 - # console := true 6 - 7 - # compiler 8 - -flags += -I. -O3 9 - +flags += -I. $(CXXFLAGS) 10 - +link += $(LDFLAGS) 11 - objects := libco 12 - 13 - # profile-guided optimization mode 14 - diff -rupN higan_v095-source.orig/icarus/GNUmakefile higan_v095-source/icarus/GNUmakefile 15 - --- higan_v095-source.orig/icarus/GNUmakefile 2015-11-04 10:28:26.186486119 +0100 16 - +++ higan_v095-source/icarus/GNUmakefile 2015-11-04 10:28:48.755059317 +0100 17 - @@ -1,8 +1,8 @@ 18 - include ../nall/GNUmakefile 19 - include ../hiro/GNUmakefile 20 - 21 - -flags += -I.. -O3 22 - -link += 23 - +flags += -I.. $(CXXFLAGS) 24 - +link += $(LDFLAGS) 25 - objects := obj/hiro.o obj/icarus.o 26 - objects += $(if $(call streq,$(platform),windows),obj/resource.o) 1 + diff -rupN higan_v097-source.old/higan/GNUmakefile higan_v097-source/higan/GNUmakefile 2 + --- higan_v097-source.old/higan/GNUmakefile 2016-01-24 09:21:45.822940200 +0100 3 + +++ higan_v097-source/higan/GNUmakefile 2016-01-24 09:24:03.028722500 +0100 4 + @@ -36,7 +36,7 @@ ifeq ($(platform),windows) 5 + else ifeq ($(platform),macosx) 6 + flags += -march=native 7 + else ifneq ($(filter $(platform),linux bsd),) 8 + - flags += -march=native -fopenmp 9 + + flags += -fopenmp 10 + link += -fopenmp 11 + link += -Wl,-export-dynamic 12 + link += -lX11 -lXext 13 + diff -rupN higan_v097-source.old/nall/GNUmakefile higan_v097-source/nall/GNUmakefile 14 + --- higan_v097-source.old/nall/GNUmakefile 2016-01-24 09:21:46.021749600 +0100 15 + +++ higan_v097-source/nall/GNUmakefile 2016-01-24 09:25:06.347100800 +0100 16 + @@ -40,8 +40,8 @@ cflags := -x c -std=c99 17 + objcflags := -x objective-c -std=c99 18 + cppflags := -x c++ -std=c++14 19 + objcppflags := -x objective-c++ -std=c++14 20 + -flags := 21 + -link := 22 + +flags := $(CXXFLAGS) 23 + +link := $(LDFLAGS)
+16 -17
pkgs/misc/emulators/higan/default.nix
··· 5 5 , mesa, SDL 6 6 , libao, openal, libpulseaudio 7 7 , gtk, gtksourceview 8 - , profile ? "balanced" # Options: accuracy, balanced, performance 9 8 }: 10 9 11 10 with stdenv.lib; 12 11 stdenv.mkDerivation rec { 13 12 14 - name = "higan-${meta.version}"; 15 - sourceName = "higan_v${meta.version}-source"; 13 + name = "higan-${version}"; 14 + version = "098"; 15 + sourceName = "higan_v${version}-source"; 16 16 17 17 src = fetchurl { 18 18 urls = [ "http://download.byuu.org/${sourceName}.7z" ]; 19 - sha256 = "0yc5gwg6dq9iwi2qk3g66wn8j2l55nhdb0311jzmdsh86zcrpvqh"; 19 + sha256 = "0qphvjfv17dbmzgb4pny2q6ln0lsgzyhalq6qyqxc3qwm4fzdjv1"; 20 20 curlOpts = "--user-agent 'Mozilla/5.0'"; # the good old user-agent trick... 21 21 }; 22 22 ··· 31 31 ''; 32 32 33 33 buildPhase = '' 34 - make compiler=c++ profile=${profile} -C icarus 35 - make compiler=c++ profile=${profile} 34 + make compiler=c++ -C icarus 35 + make compiler=c++ -C higan 36 36 ''; 37 37 38 38 installPhase = '' 39 39 install -dm 755 $out/bin $out/share/applications $out/share/higan $out/share/pixmaps 40 - install -m 755 icarus/icarus $out/bin/ 41 - install -m 755 out/tomoko $out/bin/ 42 - (cd $out/bin; ln -Ts tomoko higan) #backwards compatibility 43 - install -m 644 data/higan.desktop $out/share/applications/ 44 - install -m 644 data/higan.png $out/share/pixmaps/ 45 - cp -dr --no-preserve='ownership' profile/* data/cheats.bml $out/share/higan/ 40 + install -m 755 icarus/out/icarus $out/bin/ 41 + install -m 755 higan/out/higan $out/bin/ 42 + install -m 644 higan/data/higan.desktop $out/share/applications/ 43 + install -m 644 higan/data/higan.png $out/share/pixmaps/ 44 + cp --recursive --no-dereference --preserve='links' --no-preserve='ownership' higan/data/cheats.bml higan/profile/* $out/share/higan/ 46 45 ''; 47 46 48 47 fixupPhase = '' ··· 54 53 cat <<EOF > $out/bin/higan-init.sh 55 54 #!${stdenv.shell} 56 55 57 - cp --update --recursive $out/share/higan \$HOME/.config 58 - chmod --recursive u+w \$HOME/.config/higan 56 + cp --update $out/share/higan/cheats.bml \$HOME/.config/ 57 + cp --recursive --update $out/share/higan/*.sys \$HOME/.local/share/higan/ 58 + 59 59 EOF 60 60 61 61 chmod +x $out/bin/higan-init.sh 62 62 ''; 63 63 64 64 meta = { 65 - version = "096"; 66 65 description = "An open-source, cycle-accurate Nintendo multi-system emulator"; 67 66 longDescription = '' 68 67 Higan (formerly bsnes) is a Nintendo multi-system emulator. 69 68 It currently supports the following systems: 70 69 Famicom; Super Famicom; 71 70 Game Boy; Game Boy Color; Game Boy Advance 71 + WonderSwan; WonderSwan Color 72 72 higan also supports the following subsystems: 73 73 Super Game Boy; BS-X Satellaview; Sufami Turbo 74 74 ''; ··· 82 82 # 83 83 # TODO: 84 84 # - fix the BML and BIOS paths - maybe submitting 85 - # a custom patch to Higan project would not be a bad idea... 86 - # - Qt support 85 + # a custom patch to upstream would not be a bad idea...
-1
pkgs/top-level/all-packages.nix
··· 16560 16560 16561 16561 higan = callPackage ../misc/emulators/higan { 16562 16562 inherit (gnome) gtksourceview; 16563 - profile = config.higan.profile or "balanced"; 16564 16563 }; 16565 16564 16566 16565 misc = callPackage ../misc/misc.nix { };