blob: b22051a9c42d01ab072e683081de7ddc3bcae187 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
PORTNAME= midifile
PORTVERSION= g20200602
PORTREVISION= 1
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/${PORTNAME}-${e}
.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>
|