packages feed

Hipmunk-5.0.1: Hipmunk.cabal

Cabal-Version: >= 1.2
Build-Type:    Simple
Tested-With:   GHC
Category:      Physics, Game
Name:          Hipmunk
Version:       5.0.1
Stability:     provisional
License:       OtherLicense
License-File:  LICENSE
Copyright:     (c) 2008-2009 Felipe A. Lessa
Author:        Felipe A. Lessa <felipe.lessa@gmail.com>
Maintainer:    Felipe A. Lessa <felipe.lessa@gmail.com>
Synopsis:      A Haskell binding for Chipmunk.
Description:
      Chipmunk is a fast, simple, portable, 2D physics engine
      (<http://wiki.slembcke.net/main/published/Chipmunk>).  This
      package contains a prerelease Chipmunk 5.0 source
      and Haskell bindings to all of its functions. It is
      completely self-contained.  Please see
      <http://hackage.haskell.org/package/HipmunkPlayground>
      for a demonstration of this library.
      .
      New in version 5.0.1:
      * Updated dependencies for GHC 6.12.  Thanks, dons.
      .
      New in version 5.0.0:
      .
      * Updated for a prerelease of Chipmunk 5.0 from subversion
        revision 192.  Besides bugfixes this new version brings
        the long awaited new constraints type, doubling the
        number of different joints from four to nine.
      .
      * Tighter dependencies following the versioning policies.
      .
      Licensed under the MIT license (like Chipmunk itself).
Extra-Source-Files:
      NEWS,
      chipmunk-5.0/chipmunk.h,
      chipmunk-5.0/chipmunk_types.h,
      chipmunk-5.0/chipmunk_unsafe.h,
      chipmunk-5.0/cpArbiter.h,
      chipmunk-5.0/cpArray.h,
      chipmunk-5.0/cpBB.h,
      chipmunk-5.0/cpBody.h,
      chipmunk-5.0/cpCollision.h,
      chipmunk-5.0/cpHashSet.h,
      chipmunk-5.0/cpPolyShape.h,
      chipmunk-5.0/cpShape.h,
      chipmunk-5.0/cpSpace.h,
      chipmunk-5.0/cpSpaceHash.h,
      chipmunk-5.0/cpVect.h,
      chipmunk-5.0/prime.h,
      chipmunk-5.0/constraints/cpConstraint.h,
      chipmunk-5.0/constraints/cpDampedRotarySpring.h,
      chipmunk-5.0/constraints/cpDampedSpring.h,
      chipmunk-5.0/constraints/cpGearJoint.h,
      chipmunk-5.0/constraints/cpGrooveJoint.h,
      chipmunk-5.0/constraints/cpPinJoint.h,
      chipmunk-5.0/constraints/cpPivotJoint.h,
      chipmunk-5.0/constraints/cpRotaryLimitJoint.h,
      chipmunk-5.0/constraints/cpSimpleMotor.h,
      chipmunk-5.0/constraints/cpSlideJoint.h,
      chipmunk-5.0/constraints/util.h,
      Physics/Hipmunk/wrapper.h

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


Library
  Exposed-Modules:
      Physics.Hipmunk,
      Physics.Hipmunk.Common,
      Physics.Hipmunk.Body,
      Physics.Hipmunk.Shape,
      Physics.Hipmunk.Constraint,
      Physics.Hipmunk.Space,
      Physics.Hipmunk.Unsafe
  Other-Modules:
      Physics.Hipmunk.Internal
  Include-Dirs:
      Physics/Hipmunk,
      chipmunk-5.0
  Includes:
      wrapper.h
  C-Sources:
      chipmunk-5.0/chipmunk.c,
      chipmunk-5.0/cpArbiter.c,
      chipmunk-5.0/cpArray.c,
      chipmunk-5.0/cpBB.c,
      chipmunk-5.0/cpBody.c,
      chipmunk-5.0/cpCollision.c,
      chipmunk-5.0/cpHashSet.c,
      chipmunk-5.0/cpPolyShape.c,
      chipmunk-5.0/cpShape.c,
      chipmunk-5.0/cpSpace.c,
      chipmunk-5.0/cpSpaceHash.c,
      chipmunk-5.0/cpVect.c,
      chipmunk-5.0/constraints/cpConstraint.c,
      chipmunk-5.0/constraints/cpDampedRotarySpring.c,
      chipmunk-5.0/constraints/cpDampedSpring.c,
      chipmunk-5.0/constraints/cpGearJoint.c,
      chipmunk-5.0/constraints/cpGrooveJoint.c,
      chipmunk-5.0/constraints/cpPinJoint.c,
      chipmunk-5.0/constraints/cpPivotJoint.c,
      chipmunk-5.0/constraints/cpRotaryLimitJoint.c,
      chipmunk-5.0/constraints/cpSimpleMotor.c,
      chipmunk-5.0/constraints/cpSlideJoint.c,
      Physics/Hipmunk/wrapper.c
  if flag(small_base)
    Build-Depends: base >= 3 && < 5,
                   array >= 0.1 && < 0.4,
                   containers >= 0.1 && < 0.4
  else
    Build-Depends: base >= 2 && < 3
  Extensions:    CPP, ForeignFunctionInterface
  Build-Tools:   hsc2hs
  GHC-Options:   -Wall
  CC-Options:    -O3 -ffast-math -std=gnu99
  Extra-Libraries: m