Advertisement
Guest User

Untitled

a guest
May 19th, 2020
396
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.64 KB | None | 0 0
  1. #!/usr/bin/env bash
  2.  
  3. # This file is part of The RetroPie Project
  4. #
  5. # The RetroPie Project is the legal property of its developers, whose names are
  6. # too numerous to list here. Please refer to the COPYRIGHT.md file distributed with this source.
  7. #
  8. # See the LICENSE.md file at the top-level directory of this distribution and
  9. # at https://raw.githubusercontent.com/RetroPie/RetroPie-Setup/master/LICENSE.md
  10. #
  11.  
  12. rp_module_id="easyrpgplayer"
  13. rp_module_desc="EasyRPG Player - RPG Maker 2000 and 2003 Interpreter"
  14. rp_module_licence="GPL3 https://raw.githubusercontent.com/EasyRPG/Player/master/COPYING"
  15. rp_module_help="You need to unzip your RPG Maker games into subdirectories in $romdir/ports/$md_id/games. Obtain the translated RPG Maker 2000 RTP by Don Miguel and extract it to $romdir/ports/$md_id/data/rtp2000. Obtain the translated RPG Maker 2003 RTP by Advocate and extract it to $romdir/ports/$md_id/data/rtp2003/."
  16. rp_module_section="exp"
  17. rp_module_flags="!aarch64"
  18.  
  19. function depends_easyrpgplayer() {
  20. getDepends libsdl2-mixer-dev libpixman-1-dev libfreetype6-dev libspeexdsp-dev libxmp-dev libwildmidi-dev libopusfile-dev libvorbis-dev libharfbuzz-dev libmpg123-dev
  21. }
  22.  
  23. function sources_easyrpgplayer() {
  24. # wget https://www.cairographics.org/releases/pixman-0.40.0.tar.gz
  25. wget https://easyrpg.org/downloads/player/0.6.2/liblcf-0.6.2.tar.gz
  26. wget https://easyrpg.org/downloads/player/0.6.2/easyrpg-player-0.6.2.tar.gz
  27. }
  28.  
  29. function build_easyrpgplayer() {
  30. # tar -xvf pixman-0.40.0.tar.gz
  31. # rm pixman-0.40.0.tar.gz
  32. # mv pixman-0.40.0 pixman
  33. # cd pixman
  34. # ./configure --prefix "$md_inst"
  35. # make
  36. # make install
  37. # cd ..
  38. tar -xvf liblcf-0.6.2.tar.gz
  39. rm liblcf-0.6.2.tar.gz
  40. mv liblcf-0.6.2 liblcf
  41. cd liblcf
  42. ./configure --prefix "$md_inst"
  43. make
  44. make install
  45. cd ..
  46. tar -xvf easyrpg-player-0.6.2.tar.gz
  47. rm easyrpg-player-0.6.2.tar.gz
  48. mv easyrpg-player-0.6.2 player
  49. cd player
  50. ./configure --prefix "$md_inst"
  51. make
  52. md_ret_require="$md_build/player/easyrpg-player"
  53. }
  54.  
  55. function install_easyrpgplayer() {
  56. cd "$md_build/player"
  57. make install
  58. }
  59.  
  60. function configure_easyrpgplayer() {
  61. mkRomDir "ports"
  62. mkRomDir "ports/$md_id"
  63. mkRomDir "ports/$md_id/data/"
  64. mkRomDir "ports/$md_id/data/rtp2000"
  65. mkRomDir "ports/$md_id/data/rtp2003"
  66. mkRomDir "ports/$md_id/games/"
  67.  
  68. addPort "$md_id" "easyrpgplayer" "EasyRPG Player - RPG Maker 2000 and 2003 Interpreter" "cd $romdir/ports/$md_id/games/; RPG2K_RTP_PATH=$romdir/ports/$md_id/data/rtp2000/ RPG2K3_RTP_PATH=$romdir/ports/$md_id/data/rtp2003/ $md_inst/bin/easyrpg-player"
  69. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement