Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

rtmidi 2.1.0 (new formula) #41125

Closed
wants to merge 4 commits into from
Closed

Conversation

robhardwick
Copy link
Contributor

RtMidi - a set of C++ classes that provide a common API for realtime
MIDI input/output across Linux (ALSA & JACK), Macintosh OS X (CoreMidi &
JACK) and Windows (Multimedia).

RtMidi - a set of C++ classes that provide a common API for realtime
MIDI input/output across Linux (ALSA & JACK), Macintosh OS X (CoreMidi &
JACK) and Windows (Multimedia).
@DomT4
Copy link
Member

DomT4 commented Jun 27, 2015

==> brew style rtmidi

1 file inspected, no offenses detected
Error: 3 problems in 1 formula

==> audit problems
rtmidi:
 * A `test do` test block should be added
 * autoconf dependency should be
  depends_on "autoconf" => :build
Or if it is indeed a runtime denpendency
  depends_on "autoconf" => :run
 * Use `system "make", "librtmidi.a"` instead of `system "make librtmidi.a"` 

system "autoconf"
system "./configure", "--prefix=#{prefix}"
system "make", "librtmidi.a"
lib.install Dir["*.a", "*.dylib"]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there no make install we can use?

@robhardwick
Copy link
Contributor Author

Unfortunately, using make install with the generated Makeflle doesn't seem to work:

$ make install
install --mode=755 librtmidi.a /private/tmp/rtmidi20150629-3073-18yemi8/rtmidi-2.1.0/test/lib/
install: illegal option -- -
usage: install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
               [-o owner] file1 file2
       install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
               [-o owner] file1 ... fileN directory
       install -d [-v] [-g group] [-m mode] [-o owner] directory ...
make: *** [install] Error 64

It looks like the issue is caused by the long form of the --mode option which isn't supported by install on OS X. Any ideas?

@mistydemeo
Copy link
Member

Do you mind reporting that to the developers? They may not be aware this is incompatible.

@mistydemeo
Copy link
Member

Actually, it looks like the buildsystem has changed a lot since the 2.1.0 release - this doesn't seem to be an issue with upcoming versions, so we can just work around it and/or backport the makefile patches.

@robhardwick
Copy link
Contributor Author

Would it be OK to merge this as-is and then update to a cleaner install method when the next verison of RtMidi is released? If not, is there anything I could do?

@mistydemeo
Copy link
Member

I'm fine with merging now and cleaning up in the next release. Thank you!

@Homebrew Homebrew locked and limited conversation to collaborators Jul 10, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants