packages feed

vrpn-0.2.1.4: vrpn.cabal

name:                vrpn
version:             0.2.1.4
synopsis:            Bindings to VRPN.
description:         See \<<https://github.com/vrpn/vrpn/wiki>\> for information on VRPN.  This has been tested using VRPN 07.30 on Linux.
                     .
                     If the VRPN libraries are static and this package is used from Template Haskell, then the package needs to be configured with the QuatStatic flag.
license:             MIT
license-file:        LICENSE
author:              Brian W Bush <consult@brianwbush.info>
maintainer:          Brian W Bush <consult@brianwbush.info>
copyright:           (c) 2015 Brian W Bush
category:            Network
build-type:          Simple
cabal-version:       >= 1.10
homepage:            https://bitbucket.org/functionally/vrpn
bug-reports:         https://bwbush.atlassian.net/projects/HVRPN/issues/
package-url:         https://bitbucket.org/functionally/vrpn/vrp-0.2.1.4.tar.gz

extra-source-files:  ReadMe.md

source-repository head
  type: git
  location: https://bitbucket.org/functionally/vrpn.git

flag QuatStatic
  description:         Explicitly link with static library libquat.a, which is required when using this package with Template Haskell.
  default:             False
 
library
  exposed-modules:     Network.VRPN
  build-depends:       base >= 4.8 && < 5
  hs-source-dirs:      src
  ghc-options:         -Wall
  default-language:    Haskell2010
  C-sources:           src/vrpn.cpp
  include-dirs:        /usr/local/include
  extra-lib-dirs:      /usr/local/lib
  if flag(QuatStatic)
    extra-libraries:   vrpn quat stdc++
  else
    extra-libraries:   vrpn stdc++

executable test-vrpn
  main-is:             Main.hs
  build-depends:       base
  hs-source-dirs:      src
  ghc-options:         -threaded -Wall
  default-language:    Haskell2010
  C-sources:           src/vrpn.cpp
  include-dirs:        /usr/local/include
  extra-lib-dirs:      /usr/local/lib
  extra-libraries:     vrpn stdc++