From owner-svn-ports-head@freebsd.org Tue Jan 19 01:35:04 2021 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 0EBD44DC445; Tue, 19 Jan 2021 01:35:04 +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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DKWRq71sdz3nsC; Tue, 19 Jan 2021 01:35:03 +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 D9A6E1DFF6; Tue, 19 Jan 2021 01:35:03 +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 10J1Z3t8070722; Tue, 19 Jan 2021 01:35:03 GMT (envelope-from yuri@FreeBSD.org) Received: (from yuri@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 10J1Z2VG070716; Tue, 19 Jan 2021 01:35:02 GMT (envelope-from yuri@FreeBSD.org) Message-Id: <202101190135.10J1Z2VG070716@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: yuri set sender to yuri@FreeBSD.org using -f From: Yuri Victorovich Date: Tue, 19 Jan 2021 01:35:02 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r561999 - in head/audio: . midifile midifile/files X-SVN-Group: ports-head X-SVN-Commit-Author: yuri X-SVN-Commit-Paths: in head/audio: . midifile midifile/files X-SVN-Commit-Revision: 561999 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.34 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, 19 Jan 2021 01:35:04 -0000 Author: yuri Date: Tue Jan 19 01:35:02 2021 New Revision: 561999 URL: https://svnweb.freebsd.org/changeset/ports/561999 Log: New port: audio/midifile: C++ MIDI file parsing and writing library Added: head/audio/midifile/ head/audio/midifile/Makefile (contents, props changed) head/audio/midifile/distinfo (contents, props changed) head/audio/midifile/files/ head/audio/midifile/files/patch-CMakeLists.txt (contents, props changed) head/audio/midifile/pkg-descr (contents, props changed) head/audio/midifile/pkg-plist (contents, props changed) Modified: head/audio/Makefile Modified: head/audio/Makefile ============================================================================== --- head/audio/Makefile Tue Jan 19 01:20:20 2021 (r561998) +++ head/audio/Makefile Tue Jan 19 01:35:02 2021 (r561999) @@ -494,6 +494,7 @@ SUBDIR += mda-lv2 SUBDIR += mhwaveedit SUBDIR += midi-matrix-lv2 + SUBDIR += midifile SUBDIR += midiomatic-lv2 SUBDIR += midipp SUBDIR += mikmod Added: head/audio/midifile/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/audio/midifile/Makefile Tue Jan 19 01:35:02 2021 (r561999) @@ -0,0 +1,36 @@ +# $FreeBSD$ + +PORTNAME= midifile +PORTVERSION= g20200602 +CATEGORIES= audio + +MAINTAINER= yuri@FreeBSD.org +COMMENT= C++ MIDI file parsing and writing library + +LICENSE= BSD2CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +USES= cmake compiler:c++11-lang +USE_LDCONFIG= yes + +USE_GITHUB= yes +GH_ACCOUNT= craigsapp +GH_TAGNAME= 988d55b + +CMAKE_ON= BUILD_SHARED_LIBS + +EXECUTABLES= 80off asciimidi binasc createmidifile createmidifile2 drumtab durations mid2mat mid2mtb mid2svg \ + midi2binasc midi2melody midi2notes midi2skini midi2text midicat midimixup miditime perfid retick \ + shutak smfdur stretch sysextest text2midi textmidi toascii tobin tobinary todec tohex type0 vlv + +do-install: # https://github.com/craigsapp/midifile/issues/83 +.for e in ${EXECUTABLES} + ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/${e} ${STAGEDIR}${PREFIX}/bin +.endfor + ${MKDIR} ${STAGEDIR}${PREFIX}/include/midifile +.for h in Binasc.h MidiEvent.h MidiEventList.h MidiFile.h MidiMessage.h Options.h + ${INSTALL_DATA} ${WRKSRC}/include/${h} ${STAGEDIR}${PREFIX}/include/midifile +.endfor + ${INSTALL_LIB} ${BUILD_WRKSRC}/libmidifile.so ${STAGEDIR}${PREFIX}/lib + +.include Added: head/audio/midifile/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/audio/midifile/distinfo Tue Jan 19 01:35:02 2021 (r561999) @@ -0,0 +1,3 @@ +TIMESTAMP = 1611017810 +SHA256 (craigsapp-midifile-g20200602-988d55b_GH0.tar.gz) = 6718f4f69829a135859d89855e4b9b3adf8d4563cb28eae0e206a854f61c2f85 +SIZE (craigsapp-midifile-g20200602-988d55b_GH0.tar.gz) = 150202 Added: head/audio/midifile/files/patch-CMakeLists.txt ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/audio/midifile/files/patch-CMakeLists.txt Tue Jan 19 01:35:02 2021 (r561999) @@ -0,0 +1,11 @@ +--- CMakeLists.txt.orig 2021-01-19 01:04:22 UTC ++++ CMakeLists.txt +@@ -62,7 +62,7 @@ set(HDRS + include/Options.h + ) + +-add_library(midifile STATIC ${SRCS} ${HDRS}) ++add_library(midifile ${SRCS} ${HDRS}) + + ############################## + ## Added: head/audio/midifile/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/audio/midifile/pkg-descr Tue Jan 19 01:35:02 2021 (r561999) @@ -0,0 +1,13 @@ +C++ library for parsing and weiring standard MIDI Files. + +Features +* Event timestamps can be converted between absolute or delta tick values with + the MidiFile::deltaTicks and MidiFile::absoluteTicks functions +* In absolute tick mode, messages can be inserted into tracks in any order and + later sorted by timestamp with the MidiFile::sortTracks function +* Multi-track files can be converted to a single track in a reversible process +* Event performance times in seconds can be calculated from tick times and tempo + meta messages with the MidiFile::doTimeAnalysis function +* Durations of notes can be extracted using the MidiFile::linkNotePairs function + +WWW: https://midifile.sapp.org/ Added: head/audio/midifile/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/audio/midifile/pkg-plist Tue Jan 19 01:35:02 2021 (r561999) @@ -0,0 +1,40 @@ +bin/80off +bin/asciimidi +bin/binasc +bin/createmidifile +bin/createmidifile2 +bin/drumtab +bin/durations +bin/mid2mat +bin/mid2mtb +bin/mid2svg +bin/midi2binasc +bin/midi2melody +bin/midi2notes +bin/midi2skini +bin/midi2text +bin/midicat +bin/midimixup +bin/miditime +bin/perfid +bin/retick +bin/shutak +bin/smfdur +bin/stretch +bin/sysextest +bin/text2midi +bin/textmidi +bin/toascii +bin/tobin +bin/tobinary +bin/todec +bin/tohex +bin/type0 +bin/vlv +include/midifile/Binasc.h +include/midifile/MidiEvent.h +include/midifile/MidiEventList.h +include/midifile/MidiFile.h +include/midifile/MidiMessage.h +include/midifile/Options.h +lib/libmidifile.so