packages feed

ALUT-2.3.0.2: ALUT.cabal

name: ALUT
version: 2.3.0.2
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>.
homepage: https://github.com/haskell-openal/ALUT
bug-reports: https://github.com/haskell-openal/ALUT/issues
license: BSD3
license-file: LICENSE
author: Sven Panne
maintainer: Sven Panne <svenpanne@gmail.com>
category: Sound
build-type: Simple
cabal-version:  >= 1.10
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
  hs-source-dirs: src
  ghc-options: -Wall -O2
  build-depends: base >= 3 && < 5, OpenGL >= 2.9.0.0, OpenAL >= 1.6.0.0
  default-language: Haskell2010
  other-extensions: CPP
  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(ios)
      frameworks: ALUT
    else
      extra-libraries: alut

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