first step at cabalization
[maximus:mandulia.git] / mandulia.cabal
1 Name:                mandulia
2 Version:             0.4
3 Stability:           Provisional
4 Synopsis:            A zooming visualisation of the Mandelbrot Set as many Julia Sets.
5 Description:         Mandulia provides a zooming visualisation of the Mandelbrot Set
6                      as many Julia Sets.  Featuring a profiled and optimized renderer,
7                      and a Lua configuration and scripting interface.
8
9 Homepage:            http://gitorious.org/maximus/mandulia
10 Source-repository head
11   type:                git
12   location:            git://gitorious.org/maximus/mandulia.git
13 Source-repository this
14   type:                git
15   location:            git://gitorious.org/maximus/mandulia.git
16   tag:                 v0.4
17
18 License:             GPL-3
19 License-file:        COPYING
20 Author:              Claude Heiland-Allen
21 Maintainer:          claudiusmaximus@goto10.org
22 Copyright:           (C) 2010  Claude Heiland-Allen <claudiusmaximus@goto10.org>
23
24 Category:            Graphics
25 Build-type:          Simple
26 Cabal-version:       >=1.2
27
28 Flag SSE4
29   Description:         Enable optimizations for SSE4 CPUs.
30   Default:             True
31
32 Extra-source-files:  README
33                      *.h
34 Data-dir:            config
35 Data-files:          *.lua
36
37 Executable mandulia
38   Build-depends:       base >= 4 && < 5, GLUT -any, hslua >= 0.2
39   Build-tools:         hsc2hs
40   Extensions:          ForeignFunctionInterface
41   if  flag(SSE4) && impl(ghc)
42     GHC-options:         -Wall -O3 -threaded -fvia-c -funbox-strict-fields -optc-O3 -optc-march=native -optc-ffast-math -optc-msse4
43     GHC-prof-options:    -Wall -O3 -threaded -fvia-c -funbox-strict-fields -optc-O3 -optc-march=native -optc-ffast-math -optc-msse4 -prof -auto-all
44     CC-options:          -std=c99 -Wall -pedantic -O3 -march=native -ffast-math -msse4
45   if !flag(SSE4) && impl(ghc)
46     GHC-options:         -Wall -O3 -threaded -fvia-c -funbox-strict-fields -optc-O3 -optc-march=native -optc-ffast-math
47     GHC-prof-options:    -Wall -O3 -threaded -fvia-c -funbox-strict-fields -optc-O3 -optc-march=native -optc-ffast-math -prof -auto-all
48     CC-options:          -std=c99 -Wall -pedantic -O3 -march=native -ffast-math
49   HS-source-dirs:      src
50   Main-is:             Mandulia.hs
51   Other-modules:       AmmannA3
52                        Bounds
53                        Image
54                        Interface
55                        JobQueue
56                        Julia
57                        Mandulia
58                        PriorityCache
59                        ResourcePool
60                        Snapshot
61                        Sort
62                        StatsLogger
63                        TextureCache
64                        Utils
65                        Vector
66   C-sources:           julia.c
67                        sort.c