Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Feb 2023 21:00:35 GMT
From:      Emanuel Haupt <ehaupt@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: c14e8a660992 - main - audio/milkytracker: Add MIDI support
Message-ID:  <202302282100.31SL0Zn4076820@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by ehaupt:

URL: https://cgit.FreeBSD.org/ports/commit/?id=c14e8a660992114f8bbcf8523dd566b317da392c

commit c14e8a660992114f8bbcf8523dd566b317da392c
Author:     Emanuel Haupt <ehaupt@FreeBSD.org>
AuthorDate: 2023-02-28 20:59:52 +0000
Commit:     Emanuel Haupt <ehaupt@FreeBSD.org>
CommitDate: 2023-02-28 21:00:30 +0000

    audio/milkytracker: Add MIDI support
    
    While here pacify portfmt, portclippy.
    
    PR:             269106
    Submitted by:   notbylundzander@gmail.com
---
 audio/milkytracker/Makefile                   | 27 ++++++++++++++++-----------
 audio/milkytracker/files/patch-CMakeLists.txt | 20 ++++++++++++++++++++
 2 files changed, 36 insertions(+), 11 deletions(-)

diff --git a/audio/milkytracker/Makefile b/audio/milkytracker/Makefile
index 2d676e06af14..7fff7dbb9080 100644
--- a/audio/milkytracker/Makefile
+++ b/audio/milkytracker/Makefile
@@ -1,36 +1,41 @@
 PORTNAME=	milkytracker
 PORTVERSION=	1.03.00
-PORTREVISION=	1
 DISTVERSIONPREFIX=	v
+PORTREVISION=	2
 CATEGORIES=	audio
 
 MAINTAINER=	ehaupt@FreeBSD.org
 COMMENT=	Music creation tool inspired by Fast Tracker 2
 WWW=		https://milkytracker.titandemo.org/
 
-LICENSE=	GPLv3+ BSD3CLAUSE
+LICENSE=	BSD3CLAUSE GPLv3+
 LICENSE_COMB=	multi
 LICENSE_FILE_GPLv3+ =	${WRKSRC}/COPYING
 
-LIB_DEPENDS=	liblhasa.so:archivers/lhasa \
-		libzzip.so:devel/zziplib \
-		libjack.so:audio/jack
+LIB_DEPENDS=	libjack.so:audio/jack \
+		liblhasa.so:archivers/lhasa \
+		libzzip.so:devel/zziplib
 
 USES=		cmake compiler:c11 cpe sdl
-USE_GITHUB=	yes
-USE_SDL=	sdl2
-
 CPE_VENDOR=	milkytracker_project
-
+USE_GITHUB=	yes
 GH_PROJECT=	MilkyTracker
+USE_SDL=	sdl2
 
 ICONS=		carton.ico carton.png
 
-OPTIONS_DEFINE=	DOCS
-
 # ci pipeline creates transient tags
 PORTSCOUT=	ignore:1
 
+OPTIONS_DEFINE=		DOCS RTMIDI
+OPTIONS_DEFAULT=	DOCS RTMIDI
+
+RTMIDI_DESC=	MIDI input support via rtmidi
+
+RTMIDI_LIB_DEPENDS=	libasound.so:audio/alsa-lib \
+			librtmidi.so:audio/rtmidi
+RTMIDI_CMAKE_ON=	-DENABLE_RTMIDI:BOOL=ON
+
 post-install:
 .for f in ${ICONS}
 	${INSTALL_DATA} ${WRKSRC}/resources/pictures/${f} \
diff --git a/audio/milkytracker/files/patch-CMakeLists.txt b/audio/milkytracker/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..f7ee60f09d44
--- /dev/null
+++ b/audio/milkytracker/files/patch-CMakeLists.txt
@@ -0,0 +1,20 @@
+--- CMakeLists.txt.orig	2020-12-09 22:58:14 UTC
++++ CMakeLists.txt
+@@ -23,7 +23,7 @@ cmake_minimum_required(VERSION 3.10)
+ project(MilkyTracker)
+ 
+ # Set C++ standard to C++98
+-set(CMAKE_CXX_STANDARD 98)
++set(CMAKE_CXX_STANDARD 17)
+ set(CMAKE_CXX_EXTENSIONS OFF)
+ 
+ # Enable IDE solution folders
+@@ -196,7 +196,7 @@ if(UNIX)
+       find_package(ZZIPLIB)
+     endif()
+ 
+-    if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
++    if(${ENABLE_RTMIDI})
+         find_package(ALSA)
+         find_package(JACK)
+ 



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