packages feed

sdl2-ttf-2.0.2: sdl2-ttf.cabal

name:          sdl2-ttf
version:       2.0.2
synopsis:      Bindings to SDL2_ttf.
description:   Haskell bindings to SDL2_ttf C++ library <http://www.libsdl.org/projects/SDL_ttf/>.
bug-reports:   https://github.com/haskell-game/sdl2-ttf/issues
license:       BSD3
license-file:  LICENSE
maintainer:    Mikolaj Konarski <mikolaj.konarski@funktory.com>
author:        Rongcui Dong (rongcuid@outlook.com),
               Siniša Biđin <sinisa@bidin.eu>,
               Ömer Sinan Ağacan (omeragacan@gmail.com),
               Sean Chalmers (sclhiannan@gmail.com)
copyright:     Copyright © 2013-2017 Ömer Sinan Ağacan, Siniša Biđin, Rongcui Dong
category:      Font, Foreign binding, Graphics
build-type:    Simple
cabal-version: >=1.10

source-repository head
  type:     git
  location: https://github.com/haskell-game/sdl2-ttf

library
  ghc-options: -Wall

  exposed-modules:
    SDL.Font,
    SDL.Raw.Font

  other-modules:
    SDL.Raw.Helper

  hs-source-dirs:
    src

  pkgconfig-depends:
    sdl2 >= 2.0.3,
    SDL2_ttf >= 2.0.0

  c-sources:
    cbits/helpers.c

  build-depends:
    base             >= 4.8 && < 5,
    bytestring       >= 0.10.4.0,
    sdl2             >= 2.2,
    template-haskell,
    text             >= 1.1.0.0,
    transformers     >= 0.4

  default-language:
    Haskell2010

  if os(windows)
    cpp-options: -D_SDL_main_h -DSDL_main_h_

flag example
  description: Build the example executable
  default:     False

executable sdl2-ttf-example
  ghc-options: -Wall
  hs-source-dirs: example
  main-is: Example.hs
  default-language: Haskell2010

  if flag(example)
    build-depends:
      base,
      bytestring,
      sdl2,
      sdl2-ttf,
      text
  else
    buildable: False