Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Jan 2021 01:35:02 +0000 (UTC)
From:      Yuri Victorovich <yuri@FreeBSD.org>
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
Message-ID:  <202101190135.10J1Z2VG070716@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 <bsd.port.mk>

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202101190135.10J1Z2VG070716>