packages feed

stb-image-0.1: stb-image.cabal

Name:                stb-image
Version:             0.1
Synopsis:            A wrapper around Sean Barrett's JPEG/PNG decoder
Description:         Partial implementation of JPEG, PNG, TGA, BMP, PSD decoders,
                     with a really simple API.
License:             PublicDomain
License-file:        LICENSE
Author:              Balazs Komuves
Maintainer:          bkomuves@gmail.com
Stability:           Experimental
Category:            Codec
Tested-With:         GHC == 6.8.2
Cabal-Version:       >= 1.2
Build-Type:          Simple
Extra-Source-Files:  example/viewer.hs

Flag splitBase
  Description: Choose the new smaller, split-up base package.

Library
  if flag(splitBase)
    Build-Depends: base >= 3, bytestring
  else
    Build-Depends: base <  3
  Exposed-Modules:     Codec.Image.STB
  Hs-Source-Dirs:      .
  Extensions:          ForeignFunctionInterface, CPP
  ghc-options:         -Wall
  C-Sources:           Codec/Image/stbi/stb_image.c 
  Include-Dirs:        Codec/Image/stbi
  cc-options:          -O3 -DSTBI_NO_HDR -DSTBI_NO_STDIO -DSTBI_FAILURE_USERMSG