packages feed

FreeTypeGL-0.0.2: FreeTypeGL.cabal

Name:                FreeTypeGL
Version:             0.0.2
Synopsis:            Loadable texture fonts for OpenGL.

Description:         Based on the freetype-gl library, with large
                     modifications.
                     .
                     This is similar to the FTGL (<http://hackage.haskell.org/package/FTGL>)
                     library, but avoids C++, which makes it easier to wrap and work with
                     in Haskell-land.
                     .
                     This library is completely stand-alone (comes
                     with the required C sources), so you don't need
                     to install any C library prior to installing
                     this. cabal intall FreeTypeGL should work fine.
                     .
                     Unfortunately, it seems not to perform as well as
                     FTGL on some setups.
                     .
                     NOTE: Most of the demos and C-side documentation
                     are out-of-date, as the C side was heavily
                     modified, without updating many of the demos or
                     the C documentation.

License:             BSD3
License-file:        LICENSE
Author:              Eyal Lotem <eyal.lotem@gmail.com>
Maintainer:          Eyal Lotem <eyal.lotem@gmail.com>
Category:            Graphics
Build-type:          Simple
Extra-source-files:  src/*.c
                     src/demo/*.c
                     src/fonts/*.ttf src/fonts/VERA-COPYRIGHT
                     shaders/*.vert shaders/*.frag
                     windows/glew.c
                     windows/include/GL/glew.h windows/include/GL/wglew.h windows/include/GL/glxew.h
Data-files:          shaders/text.frag shaders/text.vert

Cabal-version:       >=1.8

Flag use_font_config
-- problematic on windows
  Description: Build with fontconfig support
  Default: False

Library
  -- Modules exported by the library.
  Exposed-modules: Graphics.Rendering.FreeTypeGL,
                   Graphics.Rendering.FreeTypeGL.Internal.FontDesc,
                   Graphics.Rendering.FreeTypeGL.Internal.Shader,
                   Graphics.Rendering.FreeTypeGL.Internal.TextureFont,
                   Graphics.Rendering.FreeTypeGL.Internal.TextBuffer,
                   Graphics.Rendering.FreeTypeGL.Internal.Markup
  Other-modules:   Paths_FreeTypeGL

  -- Packages needed in order to build this package.
  -- "freetype2" and "OpenGL" deps are just for the C build side
  Build-depends: base > 3 && < 5, freetype2, OpenGL

  -- Modules not exported by this package.
  -- Other-modules:

  -- Extra tools (e.g. alex, hsc2hs, ...) needed to build the source.
  Build-tools: hsc2hs
  ghc-options: -Wall
  include-dirs: src
  if os(windows)
    include-dirs: windows/include

  if flag(use_font_config)
    cc-options: -DUSE_FONT_CONFIG
    Extra-libraries: fontconfig

  c-sources: src/edtaa3func.c
             src/shader.c
             src/font-desc.c
             src/text-buffer.c
             src/texture-atlas.c
             src/texture-font.c
             src/glyph-cache.c
             src/vector.c
             src/vertex-attribute.c
             src/vertex-buffer.c
  if os(windows)
    c-sources: windows/glew.c
    cc-options: -Wno-attributes

source-repository head
  type: git
  location: git://github.com/Peaker/FreeTypeGL.git

Flag examples
  Description: Build example programs
  Default: False

Executable hellobye
  Main-is:       demos/hellobye.hs
  if !flag(examples)
    Buildable:     False
  else
    Buildable:     True
    Build-depends: base > 3 && < 5, FreeTypeGL, GLFW-b, OpenGL
    ghc-options:   -Wall