commit
56e97d6262
14 changed files with 137 additions and 1 deletions
10
config/emulators/music.conf
Normal file
10
config/emulators/music.conf
Normal file
|
@ -0,0 +1,10 @@
|
|||
SYSTEM_NAME="music"
|
||||
SYSTEM_FULLNAME="Music Player"
|
||||
SYSTEM_MANUFACTURER="JELOS"
|
||||
SYSTEM_RELEASE="unknown"
|
||||
SYSTEM_HARDWARE="system"
|
||||
SYSTEM_PATH="/storage/roms/music"
|
||||
SYSTEM_EXTENSION=".mp4 .MP4 .mkv .MKV .avi .AVI .mov .MOV .wmv .WMV .m3u .M3U .mpg .MPG .ytb .YTB .twi .TWI .sh .SH .mp3 .MP3 .aac .AAC .mka .MKA .dts .DTS .flac .FLAC .ogg .OGG .m4a .M4A .ac3 .AC3 .opus .OPUS .wav .WAV .wv .WV .eac3 .EAC3 .thd .THD"
|
||||
SYSTEM_COMMAND="/usr/bin/runemu.sh %ROM% -P%SYSTEM% --core=%CORE% --emulator=%EMULATOR% --controllers=\"%CONTROLLERSCONFIG%\""
|
||||
SYSTEM_PLATFORM="music"
|
||||
SYSTEM_THEME="music"
|
|
@ -38,6 +38,7 @@ This document describes all available systems emulators and cores available for
|
|||
|Infocom|Z-Machine (zmachine)|1979|`zmachine`|.dat .DAT .z1 .Z1 .z2 .Z2 .z3 .Z3 .z4 .Z4 .z5 .Z5 .z6 .Z6 .zip .ZIP|**retroarch:** mojozork (default)<br>|
|
||||
|JELOS|Moonlight Game Streaming (moonlight)|2021|`moonlight`|.sh .SH||
|
||||
|JELOS|MPlayer (mplayer)|unknown|`mplayer`|.mp4 .MP4 .mkv .MKV .avi .AVI .mov .MOV .wmv .WMV .m3u .M3U .mpg .MPG .ytb .YTB .twi .TWI .sh .SH .mp3 .MP3 .aac .AAC .mka .MKA .dts .DTS .flac .FLAC .ogg .OGG .m4a .M4A .ac3 .AC3 .opus .OPUS .wav .WAV .wv .WV .eac3 .EAC3 .thd .THD|**mplayer:** mplayer (default)<br>|
|
||||
|JELOS|Music Player (music)|unknown|`music`|.mp4 .MP4 .mkv .MKV .avi .AVI .mov .MOV .wmv .WMV .m3u .M3U .mpg .MPG .ytb .YTB .twi .TWI .sh .SH .mp3 .MP3 .aac .AAC .mka .MKA .dts .DTS .flac .FLAC .ogg .OGG .m4a .M4A .ac3 .AC3 .opus .OPUS .wav .WAV .wv .WV .eac3 .EAC3 .thd .THD|**gmu:** gmu (default)<br>|
|
||||
|JELOS|Ports (ports)|2021|`ports`|.sh .SH||
|
||||
|JELOS|Screenshots (imageviewer)|2021|`screenshots`|.jpg .jpeg .png .bmp .psd .tga .gif .hdr .pic .ppm .pgm .mkv .pdf .mp4 .avi||
|
||||
|JELOS|Tools (tools)|2021|`modules`|.sh||
|
||||
|
|
|
@ -38,6 +38,7 @@ This document describes all available systems emulators and cores available for
|
|||
|Infocom|Z-Machine (zmachine)|1979|`zmachine`|.dat .DAT .z1 .Z1 .z2 .Z2 .z3 .Z3 .z4 .Z4 .z5 .Z5 .z6 .Z6 .zip .ZIP|**retroarch:** mojozork (default)<br>|
|
||||
|JELOS|Moonlight Game Streaming (moonlight)|2021|`moonlight`|.sh .SH||
|
||||
|JELOS|MPlayer (mplayer)|unknown|`mplayer`|.mp4 .MP4 .mkv .MKV .avi .AVI .mov .MOV .wmv .WMV .m3u .M3U .mpg .MPG .ytb .YTB .twi .TWI .sh .SH .mp3 .MP3 .aac .AAC .mka .MKA .dts .DTS .flac .FLAC .ogg .OGG .m4a .M4A .ac3 .AC3 .opus .OPUS .wav .WAV .wv .WV .eac3 .EAC3 .thd .THD|**mplayer:** mplayer (default)<br>|
|
||||
|JELOS|Music Player (music)|unknown|`music`|.mp4 .MP4 .mkv .MKV .avi .AVI .mov .MOV .wmv .WMV .m3u .M3U .mpg .MPG .ytb .YTB .twi .TWI .sh .SH .mp3 .MP3 .aac .AAC .mka .MKA .dts .DTS .flac .FLAC .ogg .OGG .m4a .M4A .ac3 .AC3 .opus .OPUS .wav .WAV .wv .WV .eac3 .EAC3 .thd .THD|**gmu:** gmu (default)<br>|
|
||||
|JELOS|Ports (ports)|2021|`ports`|.sh .SH||
|
||||
|JELOS|Screenshots (imageviewer)|2021|`screenshots`|.jpg .jpeg .png .bmp .psd .tga .gif .hdr .pic .ppm .pgm .mkv .pdf .mp4 .avi||
|
||||
|JELOS|Tools (tools)|2021|`modules`|.sh||
|
||||
|
|
|
@ -38,6 +38,7 @@ This document describes all available systems emulators and cores available for
|
|||
|Infocom|Z-Machine (zmachine)|1979|`zmachine`|.dat .DAT .z1 .Z1 .z2 .Z2 .z3 .Z3 .z4 .Z4 .z5 .Z5 .z6 .Z6 .zip .ZIP|**retroarch:** mojozork (default)<br>|
|
||||
|JELOS|Moonlight Game Streaming (moonlight)|2021|`moonlight`|.sh .SH||
|
||||
|JELOS|MPlayer (mplayer)|unknown|`mplayer`|.mp4 .MP4 .mkv .MKV .avi .AVI .mov .MOV .wmv .WMV .m3u .M3U .mpg .MPG .ytb .YTB .twi .TWI .sh .SH .mp3 .MP3 .aac .AAC .mka .MKA .dts .DTS .flac .FLAC .ogg .OGG .m4a .M4A .ac3 .AC3 .opus .OPUS .wav .WAV .wv .WV .eac3 .EAC3 .thd .THD|**mplayer:** mplayer (default)<br>|
|
||||
|JELOS|Music Player (music)|unknown|`music`|.mp4 .MP4 .mkv .MKV .avi .AVI .mov .MOV .wmv .WMV .m3u .M3U .mpg .MPG .ytb .YTB .twi .TWI .sh .SH .mp3 .MP3 .aac .AAC .mka .MKA .dts .DTS .flac .FLAC .ogg .OGG .m4a .M4A .ac3 .AC3 .opus .OPUS .wav .WAV .wv .WV .eac3 .EAC3 .thd .THD|**gmu:** gmu (default)<br>|
|
||||
|JELOS|Ports (ports)|2021|`ports`|.sh .SH||
|
||||
|JELOS|Screenshots (imageviewer)|2021|`screenshots`|.jpg .jpeg .png .bmp .psd .tga .gif .hdr .pic .ppm .pgm .mkv .pdf .mp4 .avi||
|
||||
|JELOS|Tools (tools)|2021|`modules`|.sh||
|
||||
|
|
|
@ -38,6 +38,7 @@ This document describes all available systems emulators and cores available for
|
|||
|Infocom|Z-Machine (zmachine)|1979|`zmachine`|.dat .DAT .z1 .Z1 .z2 .Z2 .z3 .Z3 .z4 .Z4 .z5 .Z5 .z6 .Z6 .zip .ZIP|**retroarch:** mojozork (default)<br>|
|
||||
|JELOS|Moonlight Game Streaming (moonlight)|2021|`moonlight`|.sh .SH||
|
||||
|JELOS|MPlayer (mplayer)|unknown|`mplayer`|.mp4 .MP4 .mkv .MKV .avi .AVI .mov .MOV .wmv .WMV .m3u .M3U .mpg .MPG .ytb .YTB .twi .TWI .sh .SH .mp3 .MP3 .aac .AAC .mka .MKA .dts .DTS .flac .FLAC .ogg .OGG .m4a .M4A .ac3 .AC3 .opus .OPUS .wav .WAV .wv .WV .eac3 .EAC3 .thd .THD|**mplayer:** mplayer (default)<br>|
|
||||
|JELOS|Music Player (music)|unknown|`music`|.mp4 .MP4 .mkv .MKV .avi .AVI .mov .MOV .wmv .WMV .m3u .M3U .mpg .MPG .ytb .YTB .twi .TWI .sh .SH .mp3 .MP3 .aac .AAC .mka .MKA .dts .DTS .flac .FLAC .ogg .OGG .m4a .M4A .ac3 .AC3 .opus .OPUS .wav .WAV .wv .WV .eac3 .EAC3 .thd .THD|**gmu:** gmu (default)<br>|
|
||||
|JELOS|Ports (ports)|2021|`ports`|.sh .SH||
|
||||
|JELOS|Screenshots (imageviewer)|2021|`screenshots`|.jpg .jpeg .png .bmp .psd .tga .gif .hdr .pic .ppm .pgm .mkv .pdf .mp4 .avi||
|
||||
|JELOS|Tools (tools)|2021|`modules`|.sh||
|
||||
|
|
|
@ -38,6 +38,7 @@ This document describes all available systems emulators and cores available for
|
|||
|Infocom|Z-Machine (zmachine)|1979|`zmachine`|.dat .DAT .z1 .Z1 .z2 .Z2 .z3 .Z3 .z4 .Z4 .z5 .Z5 .z6 .Z6 .zip .ZIP|**retroarch:** mojozork (default)<br>|
|
||||
|JELOS|Moonlight Game Streaming (moonlight)|2021|`moonlight`|.sh .SH||
|
||||
|JELOS|MPlayer (mplayer)|unknown|`mplayer`|.mp4 .MP4 .mkv .MKV .avi .AVI .mov .MOV .wmv .WMV .m3u .M3U .mpg .MPG .ytb .YTB .twi .TWI .sh .SH .mp3 .MP3 .aac .AAC .mka .MKA .dts .DTS .flac .FLAC .ogg .OGG .m4a .M4A .ac3 .AC3 .opus .OPUS .wav .WAV .wv .WV .eac3 .EAC3 .thd .THD|**mplayer:** mplayer (default)<br>|
|
||||
|JELOS|Music Player (music)|unknown|`music`|.mp4 .MP4 .mkv .MKV .avi .AVI .mov .MOV .wmv .WMV .m3u .M3U .mpg .MPG .ytb .YTB .twi .TWI .sh .SH .mp3 .MP3 .aac .AAC .mka .MKA .dts .DTS .flac .FLAC .ogg .OGG .m4a .M4A .ac3 .AC3 .opus .OPUS .wav .WAV .wv .WV .eac3 .EAC3 .thd .THD|**gmu:** gmu (default)<br>|
|
||||
|JELOS|Ports (ports)|2021|`ports`|.sh .SH||
|
||||
|JELOS|Screenshots (imageviewer)|2021|`screenshots`|.jpg .jpeg .png .bmp .psd .tga .gif .hdr .pic .ppm .pgm .mkv .pdf .mp4 .avi||
|
||||
|JELOS|Tools (tools)|2021|`modules`|.sh||
|
||||
|
|
|
@ -38,6 +38,7 @@ This document describes all available systems emulators and cores available for
|
|||
|Infocom|Z-Machine (zmachine)|1979|`zmachine`|.dat .DAT .z1 .Z1 .z2 .Z2 .z3 .Z3 .z4 .Z4 .z5 .Z5 .z6 .Z6 .zip .ZIP|**retroarch:** mojozork (default)<br>|
|
||||
|JELOS|Moonlight Game Streaming (moonlight)|2021|`moonlight`|.sh .SH||
|
||||
|JELOS|MPlayer (mplayer)|unknown|`mplayer`|.mp4 .MP4 .mkv .MKV .avi .AVI .mov .MOV .wmv .WMV .m3u .M3U .mpg .MPG .ytb .YTB .twi .TWI .sh .SH .mp3 .MP3 .aac .AAC .mka .MKA .dts .DTS .flac .FLAC .ogg .OGG .m4a .M4A .ac3 .AC3 .opus .OPUS .wav .WAV .wv .WV .eac3 .EAC3 .thd .THD|**mplayer:** mplayer (default)<br>|
|
||||
|JELOS|Music Player (music)|unknown|`music`|.mp4 .MP4 .mkv .MKV .avi .AVI .mov .MOV .wmv .WMV .m3u .M3U .mpg .MPG .ytb .YTB .twi .TWI .sh .SH .mp3 .MP3 .aac .AAC .mka .MKA .dts .DTS .flac .FLAC .ogg .OGG .m4a .M4A .ac3 .AC3 .opus .OPUS .wav .WAV .wv .WV .eac3 .EAC3 .thd .THD|**gmu:** gmu (default)<br>|
|
||||
|JELOS|Ports (ports)|2021|`ports`|.sh .SH||
|
||||
|JELOS|Screenshots (imageviewer)|2021|`screenshots`|.jpg .jpeg .png .bmp .psd .tga .gif .hdr .pic .ppm .pgm .mkv .pdf .mp4 .avi||
|
||||
|JELOS|Tools (tools)|2021|`modules`|.sh||
|
||||
|
|
|
@ -38,6 +38,7 @@ This document describes all available systems emulators and cores available for
|
|||
|Infocom|Z-Machine (zmachine)|1979|`zmachine`|.dat .DAT .z1 .Z1 .z2 .Z2 .z3 .Z3 .z4 .Z4 .z5 .Z5 .z6 .Z6 .zip .ZIP|**retroarch:** mojozork (default)<br>|
|
||||
|JELOS|Moonlight Game Streaming (moonlight)|2021|`moonlight`|.sh .SH||
|
||||
|JELOS|MPlayer (mplayer)|unknown|`mplayer`|.mp4 .MP4 .mkv .MKV .avi .AVI .mov .MOV .wmv .WMV .m3u .M3U .mpg .MPG .ytb .YTB .twi .TWI .sh .SH .mp3 .MP3 .aac .AAC .mka .MKA .dts .DTS .flac .FLAC .ogg .OGG .m4a .M4A .ac3 .AC3 .opus .OPUS .wav .WAV .wv .WV .eac3 .EAC3 .thd .THD|**mplayer:** mplayer (default)<br>|
|
||||
|JELOS|Music Player (music)|unknown|`music`|.mp4 .MP4 .mkv .MKV .avi .AVI .mov .MOV .wmv .WMV .m3u .M3U .mpg .MPG .ytb .YTB .twi .TWI .sh .SH .mp3 .MP3 .aac .AAC .mka .MKA .dts .DTS .flac .FLAC .ogg .OGG .m4a .M4A .ac3 .AC3 .opus .OPUS .wav .WAV .wv .WV .eac3 .EAC3 .thd .THD|**gmu:** gmu (default)<br>|
|
||||
|JELOS|Ports (ports)|2021|`ports`|.sh .SH||
|
||||
|JELOS|Screenshots (imageviewer)|2021|`screenshots`|.jpg .jpeg .png .bmp .psd .tga .gif .hdr .pic .ppm .pgm .mkv .pdf .mp4 .avi||
|
||||
|JELOS|Tools (tools)|2021|`modules`|.sh||
|
||||
|
|
52
packages/multimedia/gmu/config/gmu.conf
Normal file
52
packages/multimedia/gmu/config/gmu.conf
Normal file
|
@ -0,0 +1,52 @@
|
|||
Gmu.DefaultPlayMode=random
|
||||
Gmu.RememberLastPlaylist=yes
|
||||
Gmu.RememberSettings=yes
|
||||
Gmu.FileSystemCharset=UTF-8
|
||||
Gmu.PlaylistSavePresets=rock.m3u;pop.m3u;electronic.m3u;classic.m3u;alternative.m3u;soundtrack.m3u;chiptunes.m3u;playlist1.m3u;playlist2.m3u;playlist3.m3u;playlist4.m3u;playlist5.m3u;playlist6.m3u;playlist7.m3u;playlist8.m3u;playlist9.m3u;playlist10.m3u
|
||||
Gmu.DefaultFileBrowserPath=/storage/roms/music
|
||||
Gmu.VolumeControl=Software
|
||||
Gmu.VolumeHardwareMixerChannel=0
|
||||
Gmu.Volume=15
|
||||
Gmu.AutoPlayOnProgramStart=no
|
||||
Gmu.FileBrowserFoldersFirst=yes
|
||||
Gmu.FirstRun=no
|
||||
Gmu.ResumePlayback=yes
|
||||
Gmu.ReaderCache=512
|
||||
Gmu.ReaderCachePrebufferSize=256
|
||||
Gmu.LyricsFilePattern=*.txt
|
||||
Gmu.FadeOutOnSkip=no
|
||||
Gmu.DeviceCloseASAP=yes
|
||||
gmuhttp.BaseDir=/media/
|
||||
gmuhttp.DisableLocalPassword=yes
|
||||
gmuhttp.Listen=Local
|
||||
gmuhttp.Password=change.me
|
||||
Gmu.LastPlayedPlaylistItem=None
|
||||
Gmu.LastPlayedPlaylistItemTime=0
|
||||
Gmu.Shutdown=0
|
||||
Gmu.ShutdownCommand=/sbin/poweroff
|
||||
Log.Enable=no
|
||||
Log.MinimumPlaytimePercent=50
|
||||
Log.MinimumPlaytimeSec=30
|
||||
SDL.AllowVolumeControlInHoldState=no
|
||||
SDL.AutoPlayOnProgramStart=no
|
||||
SDL.AutoSelectCurrentPlaylistItem=yes
|
||||
SDL.BacklightPowerOnOnTrackChange=no
|
||||
SDL.CoverArtworkFilePattern=cover.jpg;cover.png;front.jpg;*.jpg;*.png
|
||||
SDL.CoverArtworkLarge=no
|
||||
SDL.DefaultSkin=default-modern-large
|
||||
SDL.EnableCoverArtwork=yes
|
||||
SDL.FileBrowserSelectNextAfterAdd=yes
|
||||
SDL.Fullscreen=yes
|
||||
SDL.Height=720
|
||||
SDL.LoadEmbeddedCoverArtwork=first
|
||||
SDL.LyricsFilePattern=$.txt;*.txt;*.nfo
|
||||
SDL.Scroll=always
|
||||
SDL.SecondsUntilBacklightPowerOff=0
|
||||
SDL.SmallCoverArtworkAlignment=right
|
||||
SDL.TimeDisplay=elapsed
|
||||
SDL.Width=1280
|
||||
SDL.InputConfigFile=gmuinput.caanoo.conf
|
||||
SDL.KeyMap=caanoo.keymap
|
||||
Log.File=gmutracks.log
|
||||
Notify.Enable=yes
|
||||
SDL.MaxCoverImageKPixels=400
|
33
packages/multimedia/gmu/package.mk
Normal file
33
packages/multimedia/gmu/package.mk
Normal file
|
@ -0,0 +1,33 @@
|
|||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
# Copyright (C) 2023-present Fewtarius
|
||||
|
||||
PKG_NAME="gmu"
|
||||
PKG_VERSION="cf21c3f"
|
||||
PKG_LICENSE="GPLv2"
|
||||
PKG_SITE="https://github.com/jhe2/gmu"
|
||||
PKG_URL="${PKG_SITE}.git"
|
||||
PKG_DEPENDS_TARGET="toolchain SDL2 opus mpg123 libvorbis flac speex"
|
||||
PKG_LONGDESC="The Gmu Music Player"
|
||||
PKG_TOOLCHAIN="configure"
|
||||
|
||||
configure_target() {
|
||||
export LDFLAGS="${LDFLAGS} -lreadline -lncursesw -ltinfow"
|
||||
export TARGET_CFLAGS="${TARGET_CFLAGS} -fcommon"
|
||||
export SDL2CONFIG=${SYSROOT_PREFIX}/usr/bin/sdl2-config
|
||||
cd ${PKG_BUILD}
|
||||
./configure --enable=medialib
|
||||
}
|
||||
|
||||
|
||||
make_target() {
|
||||
make
|
||||
}
|
||||
|
||||
post_makeinstall_target() {
|
||||
mkdir -p ${INSTALL}/usr/config/gmu
|
||||
cp -f ${PKG_DIR}/config/gmu.conf ${INSTALL}/usr/config/gmu
|
||||
|
||||
mkdir -p ${INSTALL}/usr/bin
|
||||
cp -f ${PKG_DIR}/scripts/start_gmu.sh ${INSTALL}/usr/bin
|
||||
chmod +x ${INSTALL}/usr/bin/start_gmu.sh
|
||||
}
|
13
packages/multimedia/gmu/patches/001-fix-linking.patch
Normal file
13
packages/multimedia/gmu/patches/001-fix-linking.patch
Normal file
|
@ -0,0 +1,13 @@
|
|||
diff --git a/Makefile b/Makefile
|
||||
index 00b8677..8774c6d 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -19,7 +19,7 @@ include config.mk
|
||||
|
||||
PREFIX?=/usr/local
|
||||
CFLAGS+=$(COPTS) -pipe -Wall -Wcast-qual -Wno-variadic-macros -Wuninitialized -Wcast-align -Wredundant-decls -Wmissing-declarations -DFILE_HW_H="\"hw_$(TARGET).h\"" -DGMU_INSTALL_PREFIX="\"$(PREFIX)\""
|
||||
-LFLAGS+=-pthread
|
||||
+LFLAGS+=-pthread -lncursesw -ltinfow
|
||||
|
||||
# Release build compiler/linker flags
|
||||
ifeq ($(RELEASE_BUILD),1)
|
17
packages/multimedia/gmu/scripts/start_gmu.sh
Normal file
17
packages/multimedia/gmu/scripts/start_gmu.sh
Normal file
|
@ -0,0 +1,17 @@
|
|||
#!/bin/bash
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
# Copyright (C) 2023-present Fewtarius
|
||||
|
||||
. /etc/profile
|
||||
|
||||
jslisten set "-9 gmu.bin"
|
||||
|
||||
GMUCONFIG="/storage/.config/gmu/gmu.conf"
|
||||
|
||||
FBHEIGHT=$(fbset | awk '/geometry/ {print $2}')
|
||||
FBWIDTH=$(fbset | awk '/geometry/ {print $3}')
|
||||
sed -i "s~SDL.Height=.*\$~SDL.Height=${FBHEIGHT}~g" ${GMUCONFIG}
|
||||
sed -i "s~SDL.Width=.*\$~SDL.Height=${FBWIDTH}~g" ${GMUCONFIG}
|
||||
|
||||
cd /usr/local/share/gmu
|
||||
/usr/local/bin/gmu.bin -d /usr/local/etc/gmu -c /storage/.config/gmu/gmu.conf
|
|
@ -898,6 +898,10 @@ makeinstall_target() {
|
|||
add_emu_core mplayer mplayer mplayer true
|
||||
add_es_system mplayer
|
||||
|
||||
### Music Player
|
||||
add_emu_core music gmu gmu true
|
||||
add_es_system music
|
||||
|
||||
### Moonlight
|
||||
add_es_system moonlight
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ PKG_GRAPHICS="imagemagick splash"
|
|||
|
||||
PKG_FONTS="terminus-font corefonts"
|
||||
|
||||
PKG_MULTIMEDIA="ffmpeg vlc mpv"
|
||||
PKG_MULTIMEDIA="ffmpeg vlc mpv gmu"
|
||||
|
||||
PKG_BLUETOOTH="bluez pygobject"
|
||||
|
||||
|
|
Loading…
Reference in a new issue