[Bug 269106] Including MIDI support in Milkytracker

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 23 Jan 2023 01:21:52 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=269106

            Bug ID: 269106
           Summary: Including MIDI support in Milkytracker
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: notbylundzander@gmail.com

I don't know enough about ports/cmake to submit a patch, but I can with some
instruction or pointers. This is the just get it to work fix.

Add this to the cmake build text (just making sure it includes all the MIDI
files):

add_subdirectory(src/midi)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -I/usr/local/include/rtmidi
-L/usr/local/lib/ -lrtmidi")
find_library(RTMIDI_LIBRARY RtMidi)

find_package(RTMIDI REQUIRED)
find_package(JACK REQUIRED)
find_package(ALSA REQUIRED)
find_package(SDL2 REQUIRED)

Also change some includes to absolute paths in the midi header because it
doesn't read the src/midi includes.

Then the MIDI support is working as described in the docs.

-- 
You are receiving this mail because:
You are the assignee for the bug.