env.mupen64plus 789 B

12345678910111213141516171819202122232425262728293031323334
  1. M64NAM=mupen64plus-core
  2. M64_BRANCH=${BRANCH:-master}
  3. M64_URL="https://github.com/mupen64plus/$M64NAM.git"
  4. PKG="$HOME"/games/emu/mupen64plus
  5. M64=${M64:-"$GITSRC"}/mupen64plus/$M64NAM
  6. M64_TMP="$TMP"../$M64NAM
  7. SRC="$GITSRC"/mupen64plus/$PRGNAM
  8. TMP="$TMP"/mupen64plus/$PRGNAM
  9. _m64make () {
  10. _makefile="$1"
  11. shift
  12. _make '' "$SRC/$_makefile" \
  13. "${@:-}" \
  14. CC="${CC:-cc}" \
  15. CXX="${CXX:-c++}" \
  16. DEBUG="$DEBUG" \
  17. PREFIX="$PKG" \
  18. APIDIR="$M64"/src/api \
  19. DESTDIR="$DST"
  20. unset _makefile
  21. }
  22. if [ "$PRGNAM" = GLideN64 ] || [ "$PRGNAM" = angrylion-rdp-plus ]; then
  23. _flags cmake
  24. else
  25. [ "$PRGNAM" = "$M64NAM" ] ||
  26. _git "$M64" "$M64NAM" "$M64_URL" "$M64_TMP" "$M64_BRANCH" "${M64_COMMIT:-}"
  27. _flags
  28. fi
  29. _git "$SRC" "$PRGNAM" "$URL" "$TMP" "$BRANCH" "${COMMIT:-}"