packages feed

stb-truetype-0.1.4: stb-truetype.cabal

Name:                stb-truetype
Version:             0.1.4
Synopsis:            A wrapper around Sean Barrett's TrueType rasterizer library.
Description:         A wrapper around Sean Barrett's TrueType rasterizer library.
License:             PublicDomain
License-file:        LICENSE
Author:              Balazs Komuves
Maintainer:          bkomuves (plus) hackage (at) gmail (dot) com
Homepage:            http://code.haskell.org/~bkomuves/
Stability:           Experimental
Category:            Graphics
Tested-With:         GHC == 8.0.2, GHC == 8.2.1
Cabal-Version:       >= 1.24
Build-Type:          Simple

extra-source-files:  cbits/stb_truetype.h,
                     example/example.hs

source-repository head
  type:                darcs 
  location:            http://moire.be/haskell/projects/stb-truetype/

Flag base4
  Description: Base v4

Library
  if flag(base4)
    Build-Depends:   base >= 4 && < 5 , array >= 0.4 , containers , bytestring
    cpp-options:     -DBASE_VERSION=4
  else
    Build-Depends:   base >= 3 && < 4 , array >= 0.4 , containers , bytestring
    cpp-options:     -DBASE_VERSION=3
    
  Exposed-Modules:     Graphics.Rendering.TrueType.STB

  Hs-Source-Dirs:      .

  Default-Language:    Haskell2010
  Default-Extensions:  CPP, BangPatterns, ForeignFunctionInterface

  C-Sources:           cbits/wrapper.c 
  Include-Dirs:        cbits