packages feed

oculus-0.1.0.2: oculus.cabal

-- Initial oculus.cabal generated by cabal init.  For further 
-- documentation, see http://haskell.org/cabal/users-guide/

name:                oculus
version:             0.1.0.2
synopsis:            Oculus Rift ffi providing head tracking data
description:         Bindings to the oculus rift sdk head tracking. Requires installation of the OculusSdk, currently only supported for linux installs.
		     You're going to need to either install the sdk under the default include and ld search path, or you can point cabal to your local oculusSdk install
		     by using the \"--extra-include-dirs\" and \"--extra-lib-dirs\" flags.
		     .
		     For example 
		     \"cabal install --extra-include-dirs \/path\/to\/OculusSDK\/LibOVR\/Include --extra-lib-dirs \/path\/to\/OculusSDK\/LibOVR\/Lib\/Linux\/Release\/x86_64\"
		     .
		     Below is a small program that initializes the rift and prints the orientation every second until ctrl-C
		     .
		     >module Main where
		     >
		     >import Control.Concurrent (threadDelay)
		     >import Control.Monad
		     >import Control.Monad.Trans.Either
		     >
		     >import Rift
		     >
		     >main = eitherT print printOrientation initRift
		     >  where printOrientation h = forever $ wait1sec >> orientation h >>= print
		     >        wait1sec = threadDelay 1000000

homepage:            http://github.com/cpdurham/oculus
license:             BSD3
license-file:        LICENSE
author:              Charles Durham
maintainer:          Charles Durham <cpdurham@gmail.com>
copyright:           (c) 2014 Charles Durham
category:            Graphics
build-type:          Simple
cabal-version:       >=1.8

library
  Hs-source-dirs:      src
  c-sources:           cbits/Rift.cpp
  include-dirs:	       cbits
  extra-libraries:     ovr, udev, pthread, GL, X11, Xinerama, stdc++
  extensions:          ForeignFunctionInterface
  exposed-modules:     Rift
  ghc-options:         -Wall -O2
  cc-options:          -fpic -shared
  build-depends:       base ==4.6.*, transformers ==0.3.*, either ==4.1.*, monads-tf ==0.1.*, vect-floating ==0.1.0.3