From owner-svn-ports-head@freebsd.org Tue Apr 14 18:05:52 2020 Return-Path: Delivered-To: svn-ports-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 017632C61E8; Tue, 14 Apr 2020 18:05:51 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 491thH63b0z4X6X; Tue, 14 Apr 2020 18:05:51 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id C63C29792; Tue, 14 Apr 2020 18:05:51 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 03EI5pgF075937; Tue, 14 Apr 2020 18:05:51 GMT (envelope-from yuri@FreeBSD.org) Received: (from yuri@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 03EI5o2V075927; Tue, 14 Apr 2020 18:05:50 GMT (envelope-from yuri@FreeBSD.org) Message-Id: <202004141805.03EI5o2V075927@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: yuri set sender to yuri@FreeBSD.org using -f From: Yuri Victorovich Date: Tue, 14 Apr 2020 18:05:50 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r531710 - in head/audio: . pianobooster pianobooster/files X-SVN-Group: ports-head X-SVN-Commit-Author: yuri X-SVN-Commit-Paths: in head/audio: . pianobooster pianobooster/files X-SVN-Commit-Revision: 531710 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Apr 2020 18:05:52 -0000 Author: yuri Date: Tue Apr 14 18:05:49 2020 New Revision: 531710 URL: https://svnweb.freebsd.org/changeset/ports/531710 Log: New port: audio/pianobooster: MIDI file player that teaches how to play the piano Added: head/audio/pianobooster/ head/audio/pianobooster/Makefile (contents, props changed) head/audio/pianobooster/distinfo (contents, props changed) head/audio/pianobooster/files/ head/audio/pianobooster/files/patch-src_MidiDevice.cpp (contents, props changed) head/audio/pianobooster/files/patch-src_MidiDeviceFluidSynth.cpp (contents, props changed) head/audio/pianobooster/pkg-descr (contents, props changed) head/audio/pianobooster/pkg-plist (contents, props changed) Modified: head/audio/Makefile Modified: head/audio/Makefile ============================================================================== --- head/audio/Makefile Tue Apr 14 18:02:25 2020 (r531709) +++ head/audio/Makefile Tue Apr 14 18:05:49 2020 (r531710) @@ -615,6 +615,7 @@ SUBDIR += pear-Text_Spell_Audio SUBDIR += penguinsap SUBDIR += pianobar + SUBDIR += pianobooster SUBDIR += pianod2 SUBDIR += picard SUBDIR += picard-plugins Added: head/audio/pianobooster/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/audio/pianobooster/Makefile Tue Apr 14 18:05:49 2020 (r531710) @@ -0,0 +1,37 @@ +# $FreeBSD$ + +PORTNAME= pianobooster +DISTVERSIONPREFIX= v +DISTVERSION= 0.7.2b +CATEGORIES= audio + +MAINTAINER= yuri@FreeBSD.org +COMMENT= MIDI file player that teaches how to play the piano + +LICENSE= GPLv3 +LICENSE_FILE= ${WRKSRC}/gplv3.txt + +LIB_DEPENDS= libftgl.so:graphics/ftgl \ + libjack.so:audio/jack \ + librtmidi.so:audio/rtmidi + +USES= cmake desktop-file-utils gl pkgconfig qt:5 +USE_GITHUB= yes +GH_ACCOUNT= captnfab +GH_PROJECT= PianoBooster +USE_QT= core gui opengl widgets xml buildtools_build linguisttools_build qmake_build +USE_GL= gl glu + +CMAKE_ON= USE_SYSTEM_RTMIDI USE_JACK +CMAKE_ARGS= -DDATA_DIR:STRING=share/${PORTNAME} + +OPTIONS_DEFINE= FLUIDSYNTH +OPTIONS_DEFAULT= FLUIDSYNTH + +FLUIDSYNTH_CMAKE_BOOL= EXPERIMENTAL_USE_FLUIDSYNTH +FLUIDSYNTH_LIB_DEPENDS= libfluidsynth.so:audio/fluidsynth + +post-stage: + @${RM} -r ${STAGEDIR}${DOCSDIR} + +.include Added: head/audio/pianobooster/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/audio/pianobooster/distinfo Tue Apr 14 18:05:49 2020 (r531710) @@ -0,0 +1,3 @@ +TIMESTAMP = 1586862081 +SHA256 (captnfab-PianoBooster-v0.7.2b_GH0.tar.gz) = fe331f9bebafda31444fa415a6594a91f8283ba9c3cf18066684072081490633 +SIZE (captnfab-PianoBooster-v0.7.2b_GH0.tar.gz) = 2542590 Added: head/audio/pianobooster/files/patch-src_MidiDevice.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/audio/pianobooster/files/patch-src_MidiDevice.cpp Tue Apr 14 18:05:49 2020 (r531710) @@ -0,0 +1,22 @@ +--- src/MidiDevice.cpp.orig 2020-02-25 07:45:06 UTC ++++ src/MidiDevice.cpp +@@ -32,9 +32,9 @@ + #include "MidiDeviceFluidSynth.h" + #endif + ++#include + + +- + CMidiDevice::CMidiDevice() + { + m_rtMidiDevice = new CMidiDeviceRt(); +@@ -65,6 +65,8 @@ QStringList CMidiDevice::getMidiPortList(midiType_t ty + QStringList list; + #if EXPERIMENTAL_USE_FLUIDSYNTH + list << m_fluidSynthMidiDevice->getMidiPortList(type); ++ if (list.empty()) ++ qWarning() << "FluidSynth midi device didn't return any midi ports of midi type=" << type; + #endif + list << m_rtMidiDevice->getMidiPortList(type); + Added: head/audio/pianobooster/files/patch-src_MidiDeviceFluidSynth.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/audio/pianobooster/files/patch-src_MidiDeviceFluidSynth.cpp Tue Apr 14 18:05:49 2020 (r531710) @@ -0,0 +1,33 @@ +--- src/MidiDeviceFluidSynth.cpp.orig 2019-07-09 08:30:16 UTC ++++ src/MidiDeviceFluidSynth.cpp +@@ -30,6 +30,7 @@ + + #include + #include ++#include + #include + + CMidiDeviceFluidSynth::CMidiDeviceFluidSynth() +@@ -54,7 +55,7 @@ void CMidiDeviceFluidSynth::init() + + QStringList CMidiDeviceFluidSynth::getMidiPortList(midiType_t type) + { +- ++ qInfo() << "YURI CMidiDeviceFluidSynth::getMidiPortList type=" << type << " MIDI_OUTPUT=" << MIDI_OUTPUT; + if (type != MIDI_OUTPUT) // Only has an output + return QStringList(); + +@@ -62,11 +63,13 @@ QStringList CMidiDeviceFluidSynth::getMidiPortList(mid + QDir dirSoundFont("soundfont"); + dirSoundFont.setFilter(QDir::Files); + QStringList fileNames = dirSoundFont.entryList(); ++ qInfo() << "YURI CMidiDeviceFluidSynth::getMidiPortList numFileNames=" << fileNames.size() << " in dir=" << dirSoundFont; + + QStringList portNames; + + for (int i = 0; i < fileNames.size(); i++) + { ++ qInfo() << "YURI CMidiDeviceFluidSynth::getMidiPortList file[" << i << "]=" << fileNames.at(i); + if ( fileNames.at(i).endsWith(".sf2", Qt::CaseInsensitive ) ) + { + portNames += fileNames.at(i); Added: head/audio/pianobooster/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/audio/pianobooster/pkg-descr Tue Apr 14 18:05:49 2020 (r531710) @@ -0,0 +1,6 @@ +PianoBooster is a free (Open Source) program that plays regular midi files and +allows you to change the speed of playback and transpose the music etc. +There is a scrolling musical stave that shows the notes for just one part +from all the parts in the complete musical arrangement. + +WWW: http://pianobooster.sourceforge.net Added: head/audio/pianobooster/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/audio/pianobooster/pkg-plist Tue Apr 14 18:05:49 2020 (r531710) @@ -0,0 +1,28 @@ +bin/pianobooster +share/applications/pianobooster.desktop +share/icons/hicolor/32x32/apps/pianobooster.png +share/icons/hicolor/48x48/apps/pianobooster.png +share/icons/hicolor/64x64/apps/pianobooster.png +%%DATADIR%%/fonts/DejaVuSans.ttf +%%DATADIR%%/music/BoosterMusicBooks.zip +%%DATADIR%%/translations/langs.json +%%DATADIR%%/translations/music_ru.qm +%%DATADIR%%/translations/music_uk.qm +%%DATADIR%%/translations/pianobooster_ca.qm +%%DATADIR%%/translations/pianobooster_cs.qm +%%DATADIR%%/translations/pianobooster_da.qm +%%DATADIR%%/translations/pianobooster_de.qm +%%DATADIR%%/translations/pianobooster_es.qm +%%DATADIR%%/translations/pianobooster_fr.qm +%%DATADIR%%/translations/pianobooster_gl.qm +%%DATADIR%%/translations/pianobooster_is.qm +%%DATADIR%%/translations/pianobooster_it.qm +%%DATADIR%%/translations/pianobooster_ja.qm +%%DATADIR%%/translations/pianobooster_nb.qm +%%DATADIR%%/translations/pianobooster_nl.qm +%%DATADIR%%/translations/pianobooster_pl.qm +%%DATADIR%%/translations/pianobooster_ru.qm +%%DATADIR%%/translations/pianobooster_sk.qm +%%DATADIR%%/translations/pianobooster_sv.qm +%%DATADIR%%/translations/pianobooster_uk.qm +%%DATADIR%%/translations/pianobooster_zh.qm