packages feed

ALUT-2.3.0.0: ALUT.cabal

name: ALUT
version: 2.3.0.0
license: BSD3
license-file: LICENSE
maintainer: Sven Panne <svenpanne@gmail.com>
bug-reports: https://github.com/haskell-openal/ALUT/issues
homepage: https://github.com/haskell-openal/ALUT
category: Sound
synopsis: A binding for the OpenAL Utility Toolkit
description:
        A Haskell binding for the OpenAL Utility Toolkit, which makes
        managing of OpenAL contexts, loading sounds in various formats
        and creating waveforms very easy. For more information about the
        C library on which this binding is based, please see:
        <http://distro.ibiblio.org/rootlinux/rootlinux-ports/more/freealut/freealut-1.1.0/doc/alut.html>.
build-type: Simple
cabal-version:  >= 1.6
extra-source-files:
        README.md
        examples/Basic/HelloWorld.hs
        examples/Basic/OpenALInfo.hs
        examples/Basic/PlayFile.hs
        examples/TestSuite/TestErrorStuff.hs
        examples/TestSuite/TestFileLoader.hs
        examples/TestSuite/TestMemoryLoader.hs
        examples/TestSuite/TestVersion.hs
        examples/TestSuite/TestWaveforms.hs
        examples/TestSuite/file1.wav
        examples/TestSuite/file2.au
        examples/TestSuite/file3.raw

flag UseNativeWindowsLibraries
   description:
      When compiling under Windows, use the native libraries instead of e.g. the
      ones coming with Cygwin.

library
    exposed-modules:
        Sound.ALUT,
        Sound.ALUT.Initialization,
        Sound.ALUT.Loaders,
        Sound.ALUT.Sleep,
        Sound.ALUT.Version
    other-modules:
        Sound.ALUT.Config,
        Sound.ALUT.Constants,
        Sound.ALUT.Errors
    ghc-options: -Wall -O2
    build-depends: base >= 3 && < 5, OpenGL >= 2.9.0.0, OpenAL >= 1.5.0.0
    if os(windows) && flag(UseNativeWindowsLibraries)
      if arch(i386)
         cpp-options: "-DCALLCONV=stdcall"
      else
         cpp-options: "-DCALLCONV=ccall"
      extra-libraries: alut
    else
      cpp-options: "-DCALLCONV=ccall"
      if os(darwin) || os(ios)
         frameworks: ALUT
      else
         extra-libraries: alut

source-repository head
  type:     git
  location: https://github.com/haskell-openal/ALUT