Skip to content

Commit 1a8253e

Browse files
committed
Modernized .cabal file.
1 parent 9fda0b3 commit 1a8253e

File tree

1 file changed

+54
-53
lines changed

1 file changed

+54
-53
lines changed

GLURaw.cabal

Lines changed: 54 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,69 @@
11
name: GLURaw
22
version: 1.4.0.1
3+
synopsis: A raw binding for the OpenGL graphics system
4+
description:
5+
GLURaw is a raw Haskell binding for the GLU 1.3 OpenGL utility library. It is
6+
basically a 1:1 mapping of GLU's C API, intended as a basis for a nicer
7+
interface.
8+
.
9+
OpenGL is the industry's most widely used and supported 2D and 3D graphics
10+
application programming interface (API), incorporating a broad set of
11+
rendering, texture mapping, special effects, and other powerful visualization
12+
functions. For more information about OpenGL and its various extensions,
13+
please see <http://www.opengl.org/>
14+
and <http://www.opengl.org/registry/>.
15+
homepage: http://www.haskell.org/haskellwiki/Opengl
16+
bug-reports: https://github.com/haskell-opengl/GLURaw/issues
317
license: BSD3
418
license-file: LICENSE
19+
author: Sven Panne
520
maintainer: Sven Panne <[email protected]>, Jason Dagit <[email protected]>
6-
bug-reports: https://github.com/haskell-opengl/GLURaw/issues
7-
homepage: http://www.haskell.org/haskellwiki/Opengl
821
category: Graphics
9-
synopsis: A raw binding for the OpenGL graphics system
10-
description:
11-
GLURaw is a raw Haskell binding for the GLU 1.3 OpenGL utility library. It is
12-
basically a 1:1 mapping of GLU's C API, intended as a basis for a nicer
13-
interface.
14-
.
15-
OpenGL is the industry's most widely used and supported 2D and 3D graphics
16-
application programming interface (API), incorporating a broad set of
17-
rendering, texture mapping, special effects, and other powerful visualization
18-
functions. For more information about OpenGL and its various extensions,
19-
please see <http://www.opengl.org/>
20-
and <http://www.opengl.org/registry/>.
2122
build-type: Simple
22-
cabal-version: >= 1.6
23+
cabal-version: >= 1.10
2324
extra-source-files:
24-
README.md
25-
include/HsGLURaw.h
25+
README.md
26+
include/HsGLURaw.h
2627

2728
flag UseNativeWindowsLibraries
28-
description:
29-
When compiling under Windows, use the native libraries instead of e.g. the
30-
ones coming with Cygwin.
29+
description:
30+
When compiling under Windows, use the native libraries instead of e.g. the
31+
ones coming with Cygwin.
3132

3233
library
33-
exposed-modules:
34-
Graphics.Rendering.GLU.Raw
35-
Graphics.Rendering.GLU.Raw.Callbacks,
36-
Graphics.Rendering.GLU.Raw.Functions,
37-
Graphics.Rendering.GLU.Raw.Tokens,
38-
Graphics.Rendering.GLU.Raw.Types
39-
other-modules:
40-
Graphics.Rendering.GLU.Raw.APIEntry,
41-
Graphics.Rendering.GLU.Raw.TypesInternal
42-
c-sources:
43-
cbits/HsGLURaw.c
44-
hs-source-dirs: src
45-
include-dirs: include
46-
build-depends: base >= 3 && < 5, OpenGLRaw >= 1.3.0.0
47-
ghc-options: -Wall -O2
48-
if os(windows) && flag(UseNativeWindowsLibraries)
49-
if arch(i386)
50-
cpp-options: "-DCALLCONV=stdcall"
51-
else
52-
cpp-options: "-DCALLCONV=ccall"
53-
cc-options: "-DUSE_GETPROCADDRESS"
54-
extra-libraries: glu32
55-
else
34+
exposed-modules:
35+
Graphics.Rendering.GLU.Raw
36+
Graphics.Rendering.GLU.Raw.Callbacks
37+
Graphics.Rendering.GLU.Raw.Functions
38+
Graphics.Rendering.GLU.Raw.Tokens
39+
Graphics.Rendering.GLU.Raw.Types
40+
other-modules:
41+
Graphics.Rendering.GLU.Raw.APIEntry
42+
Graphics.Rendering.GLU.Raw.TypesInternal
43+
c-sources:
44+
cbits/HsGLURaw.c
45+
hs-source-dirs: src
46+
include-dirs: include
47+
build-depends: base >= 3 && < 5, OpenGLRaw >= 1.3.0.0
48+
ghc-options: -Wall -O2
49+
if os(windows) && flag(UseNativeWindowsLibraries)
50+
if arch(i386)
51+
cpp-options: "-DCALLCONV=stdcall"
52+
else
5653
cpp-options: "-DCALLCONV=ccall"
57-
cc-options: "-DUSE_DLSYM"
58-
if os(darwin)
59-
frameworks: OpenGL
60-
else
61-
if os(ios)
62-
frameworks: OpenGLES
63-
else
64-
extra-libraries: GLU
54+
cc-options: "-DUSE_GETPROCADDRESS"
55+
extra-libraries: glu32
56+
else
57+
cpp-options: "-DCALLCONV=ccall"
58+
cc-options: "-DUSE_DLSYM"
59+
if os(darwin)
60+
frameworks: OpenGL
61+
else
62+
if os(ios)
63+
frameworks: OpenGLES
64+
else
65+
extra-libraries: GLU
6566

6667
source-repository head
67-
type: git
68-
location: https://github.com/haskell-opengl/GLURaw
68+
type: git
69+
location: https://github.com/haskell-opengl/GLURaw.git

0 commit comments

Comments
 (0)