import winbrew

class Bullet(winbrew.Formula):
    url = 'https://bullet.googlecode.com/files/bullet-2.82-r2704.zip'
    homepage = 'http://bulletphysics.org'
    sha1 = ''
    build_deps = ('cmake',)
    deps = ()
    options = {
        'double-precision': 'Use double precision',
        'build-demos': 'Build demo application',
        'build-extras': 'Build extra library',
        'shared': 'Build shared libraries',
    }

    def install(self):
        self.cmake(('-G', 'Visual Studio 12', 
            '-DUSE_DOUBLE_PRECISION=%s' % ('ON' if self.option('double-precision') else 'OFF'), 
            '-DBUILD_DEMOS=%s' % ('ON' if self.option('build-demos') else 'OFF'),
            '-DBUILD_EXTRAS=%s' % ('ON' if self.option('build-extras') else 'OFF'),
            '-DBUILD_SHARED_LIBS=%s' % ('ON' if self.option('shared') else 'OFF'),
        ))
        self.msbuild(winbrew.msbuild_args+('BULLET_PHYSICS.sln',))
        self.libs('lib\\Release')
        self.includes('src', dest='bullet')

    def test(self):
        pass

import winbrew

class Bullet(winbrew.Formula):
    url = 'https://bullet.googlecode.com/files/bullet-2.82-r2704.zip'
    homepage = 'http://bulletphysics.org'
    sha1 = ''
    build_deps = ('cmake',)
    deps = ()
    options = {
        'double-precision': 'Use double precision',
        'build-demos': 'Build demo application',
        'build-extras': 'Build extra library',
        'shared': 'Build shared libraries',
    }

    def install(self):
        self.cmake(('-G', 'Visual Studio 12', 
            '-DUSE_DOUBLE_PRECISION=%s' % ('ON' if self.option('double-precision') else 'OFF'), 
            '-DBUILD_DEMOS=%s' % ('ON' if self.option('build-demos') else 'OFF'),
            '-DBUILD_EXTRAS=%s' % ('ON' if self.option('build-extras') else 'OFF'),
            '-DBUILD_SHARED_LIBS=%s' % ('ON' if self.option('shared') else 'OFF'),
            '-DUSE_MSVC_RUNTIME_LIBRARY_DLL=ON',
        ))
        self.msbuild(winbrew.msbuild_args+('BULLET_PHYSICS.sln',))
        self.libs('lib\\Release')
        self.includes('src', dest='bullet')

    def test(self):
        pass

Fix Bullet