1 | # -*- 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 |
---|
2 | # $Id$ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup cmake 1.0 |
---|
6 | |
---|
7 | name chipmunk |
---|
8 | version 4.1.0 |
---|
9 | categories devel |
---|
10 | maintainers fs.ei.tum.de:jonas openmaintainer |
---|
11 | description Fast and lightweight 2D rigid body physics library in C |
---|
12 | long_description ${description} |
---|
13 | platforms darwin |
---|
14 | homepage http://wiki.slembcke.net/main/published/Chipmunk |
---|
15 | master_sites http://files.slembcke.net/chipmunk/release/ |
---|
16 | distname Chipmunk-${version} |
---|
17 | extract.suffix .tgz |
---|
18 | checksums md5 804d0e478f2a27a1d272fa07e41480ba \ |
---|
19 | sha1 c5da0977e6bba110d13ea98dc89743726daab90d \ |
---|
20 | rmd160 0e1714bc744cdb478f53d7f65924dff3c4c58440 |
---|
21 | |
---|
22 | patchfiles patch-Demo-CMakeLists.diff \ |
---|
23 | patch-ruby-CMakeLists.diff \ |
---|
24 | patch-CMakeLists.diff |
---|
25 | |
---|
26 | use_parallel_build yes |
---|
27 | |
---|
28 | configure.args-append ../${distname} \ |
---|
29 | -DCMAKE_INSTALL_PREFIX=${prefix} \ |
---|
30 | -DCMAKE_OSX_SYSROOT=${sysroot} |
---|
31 | |
---|
32 | variant demos description "compile and install a demo application" { |
---|
33 | configure.args-append -DBUILD_DEMOS=ON |
---|
34 | } |
---|
35 | |
---|
36 | variant ruby description "compile and install the ruby extension" { |
---|
37 | configure.args-append -DBUILD_RUBY_EXT=ON |
---|
38 | depends_lib-append port:ruby |
---|
39 | } |
---|