packages feed

gegl-0.0.0.1: gegl.cabal

-- Initial gegl.cabal generated by cabal init.  For further documentation, 
-- see http://haskell.org/cabal/users-guide/

name:                gegl
version:             0.0.0.1
synopsis:            Haskell bindings to GEGL library
description:         see homepage for description.
homepage:            https://github.com/nek0/gegl#readme
license:             LGPL-3
license-file:        LICENSE
author:              nek0
maintainer:          nek0@nek0.eu
-- copyright:           
category:            Graphics
build-type:          Simple
-- extra-source-files:  
cabal-version:       >=1.10

source-repository head
  type:              git
  location:          https://github.com/nek0/gegl.git

flag examples
  description:       Build example programs
  default:           False

library
  exposed-modules:     GEGL
                     , GEGL.Buffer
                     , GEGL.Buffer.BufferIterator
                     , GEGL.Color
                     , GEGL.Connection
                     , GEGL.Enums
                     , GEGL.Node
                     , GEGL.Node.State
                     , GEGL.Operation
                     , GEGL.Process
                     , GEGL.Rectangle
                     , GEGL.Reparent
                     , GEGL.FFI
                     , GEGL.FFI.Buffer
                     , GEGL.FFI.Buffer.BufferIterator
                     , GEGL.FFI.Color
                     , GEGL.FFI.Connection
                     , GEGL.FFI.Node
                     , GEGL.FFI.Node.State
                     , GEGL.FFI.Process
                     , GEGL.FFI.Rectangle
                     , GEGL.FFI.Reparent
                     , GEGL.FFI.Tuple
  -- other-modules:       
  other-extensions:    ForeignFunctionInterface
  hs-source-dirs:      src
  c-sources:           src/GEGL/FFI/Buffer/BufferIterator.c
                     , src/GEGL/FFI/Node.c
                     , src/GEGL/FFI/Node/State.c
  cc-options:          -Wall
  default-language:    Haskell2010
  default-extensions:  OverloadedStrings
  extra-libraries:     gegl-0.3
  includes:            gegl.h
                     , src/GEGL/FFI/Tuple.h
  pkgconfig-depends:   gegl-0.3 >= 0.3.10
  build-depends:       base == 4.*
                     , inline-c
                     , containers
                     , random
                     , template-haskell
                     , split
                     , monad-loops
                     , glib
                     , babl

executable example00
  hs-source-dirs:      examples
  main-is:             example00.hs
  ghc-options:         -threaded -Wall
  default-language:    Haskell2010
  default-extensions:  OverloadedStrings
  if flag(examples)
    build-depends:       base
                       , gegl
  else
    buildable: False

executable example01
  hs-source-dirs:      examples
  main-is:             example01.hs
  ghc-options:         -threaded -Wall
  default-language:    Haskell2010
  default-extensions:  OverloadedStrings
  if flag(examples)
    build-depends:       base
                       , SDL
                       , gegl
                       , babl
                       , linear
                       , monad-loops
  else
    buildable: False

executable example02
  hs-source-dirs:      examples
  main-is:             example02.hs
  ghc-options:         -threaded -Wall -auto-all -caf-all -rtsopts
  default-language:    Haskell2010
  default-extensions:  OverloadedStrings
  if flag(examples)
    build-depends:       base
                       , sdl2
                       , gegl
                       , babl
                       , monad-loops
  else
    buildable: False