packages feed

hCsound-0.4.0: hCsound.cabal

Name:           hCsound
Version:        0.4.0
Cabal-Version:  >= 1.2
Description:    Haskell interface to Csound API.
License:        LGPL
License-file:   LICENSE
Author:	        John W. Lato, jwlato@gmail.com
Maintainer:     John W. Lato, jwlato@gmail.com
Stability:      experimental
synopsis:       interface to CSound API
category:       Sound, Music
cabal-version:  >= 1.6
build-type:     Simple
tested-with:    GHC == 7.0.4
extra-source-files: README COPYRIGHT changelog TODO examples/test1.csd examples/simple.hs examples/test2.hs examples/test3.hs

flag splitBase
  description: Choose the new split-up base package.

flag useDouble
  Description: link to doubles-based csound, if available
  Default: True

flag useFramework
  Description: Use CSound installed to /Libraries/Frameworks.  OS X only.
  Default: True

Library
 Hs-Source-Dirs:        src
 build-depends:         base         >=3 && < 5
                       ,monads-tf    >= 0.1 && < 0.2
                       ,transformers >= 0.2 && < 0.3
                       ,vector       >= 0.6 && < 0.10
 build-tools:           c2hs
 exposed-modules:       Sound.Csound
                        Sound.Csound.Foreign
                        Sound.Csound.Interface
                        Sound.Csound.Vector
 includes:              csound.h
 extra-libraries:       sndfile

 if flag(useDouble)
    CC-Options:         -DUSE_DOUBLE

 if os(darwin) && flag(useFramework)
    if flag(useDouble)
      frameworks:       CsoundLib64
      include-dirs:       /Library/Frameworks/CsoundLib64.framework/Headers
    else
      frameworks:       CsoundLib
      include-dirs:       /Library/Frameworks/CsoundLib.framework/Headers
 else
    if flag(useDouble)
      extra-libraries: csound64
    else
      extra-libraries: csound32

 if flag(splitBase)
    build-depends:      base >= 3, base < 5
 else
    build-depends:      base < 3

source-repository head
  type:     darcs
  location: http://www.tiresiaspress.us/haskell/hCsound