packages feed

RtMidi-0.1.0.0: RtMidi.cabal

name:                RtMidi
version:             0.1.0.0
description:         Haskell wrapper for RtMidi, the lightweight, cross-platform MIDI I/O library.
category:            Sound
build-type:          Simple
author:              kohlrabi
license-file:        LICENSE
homepage:            https://github.com/riottracker/RtMidi
maintainer:          kohlrabi@kohlra.biz
extra-source-files:  rtmidi/rtmidi_c.h
                     rtmidi/RtMidi.h
                     examples/playback.hs
                     examples/query.hs
                     examples/callback.hs
cabal-version:       >=1.10
license:             MIT

Flag alsa {
  Description:  Enable ALSA sequencer api
  Default:      False
}

Flag jack {
  Description:  Enable JACK api
  Default:      False
}

Flag core {
  Description:  Enable CoreMIDI api
  Default:      False
}

Flag mm {
  Description:  Enable Windows Multimedia Library api
  Default:      False
}


library
  exposed-modules:     Sound.RtMidi
  -- other-modules:       
  -- other-extensions:    
  build-depends:       base >=4.9 && <4.10
  default-language:    Haskell2010
  include-dirs:        rtmidi
  extra-libraries:     stdc++
  c-sources:           rtmidi/RtMidi.cpp
                       rtmidi/rtmidi_c.cpp
  if flag(alsa)
    cc-options:       -D__LINUX_ALSA__
    extra-libraries:  asound pthread
  if flag(jack)
    cc-options:       -D__UNIX_JACK__
    extra-libraries:  jack
  if flag(core)
    cc-options:       -D__MAXOSX_CORE__
    extra-libraries:  CoreMIDI CoreAudio CoreFoundation


source-repository head
  type:     git
  location: https://github.com/riottracker/RtMidi