# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id$

PortSystem          1.0
PortGroup           cmake 1.0
PortGroup           github 1.0
PortGroup           conflicts_build 1.0

github.setup        erincatto Box2D 2.3.1 v

name                box2d
categories          devel
platforms           darwin
license             BSD

maintainers         stromnov openmaintainer

description         Box2D Physics Engine
long_description    ${description}

homepage            http://box2d.org/

checksums           rmd160  4cc7cf8918ab19a552ee1939c345aa061cd818a3 \
                    sha256  d323141a9bb202e37f9860568ca0769be67e4758e6bbccb4f190fdf50cc7bf4e

conflicts_build     ${name}

cmake.out_of_source yes

worksrcdir          Box2D-${version}/Box2D

configure.args-append \
                    -DBOX2D_INSTALL=ON \
                    -DBOX2D_INSTALL_DOC=ON \
                    -DBOX2D_BUILD_SHARED=ON \
                    -DBOX2D_BUILD_STATIC=ON \
                    -DBOX2D_BUILD_EXAMPLES=OFF