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 | |
---|
6 | name chipmunk |
---|
7 | version 4.1.0 |
---|
8 | categories devel |
---|
9 | maintainers fs.ei.tum.de:jonas openmaintainer |
---|
10 | description Fast and lightweight 2D rigid body physics library in C |
---|
11 | long_description ${description} |
---|
12 | platforms darwin |
---|
13 | homepage http://wiki.slembcke.net/main/published/Chipmunk |
---|
14 | master_sites http://files.slembcke.net/chipmunk/release/ |
---|
15 | extract.suffix .tgz |
---|
16 | checksums md5 804d0e478f2a27a1d272fa07e41480ba \ |
---|
17 | sha1 c5da0977e6bba110d13ea98dc89743726daab90d \ |
---|
18 | rmd160 0e1714bc744cdb478f53d7f65924dff3c4c58440 |
---|
19 | |
---|
20 | patchfiles patch-Demo-CMakeLists.diff \ |
---|
21 | patch-ruby-CMakeLists.diff \ |
---|
22 | patch-CMakeLists.diff |
---|
23 | |
---|
24 | depends_build port:cmake |
---|
25 | |
---|
26 | use_parallel_build yes |
---|
27 | worksrcdir build |
---|
28 | |
---|
29 | configure.cmd cmake |
---|
30 | configure.ccache no |
---|
31 | configure.args ../${distname} \ |
---|
32 | -DCMAKE_VERBOSE_MAKEFILE=ON \ |
---|
33 | -DCMAKE_BUILD_TYPE=Release \ |
---|
34 | -DCMAKE_SYSTEM_PREFIX_PATH=\"${prefix}\;/usr\" \ |
---|
35 | -DCMAKE_INSTALL_PREFIX=${prefix} \ |
---|
36 | -DCMAKE_OSX_SYSROOT=${sysroot} \ |
---|
37 | -Wno-dev |
---|
38 | |
---|
39 | variant universal { |
---|
40 | configure.universal_args-delete --disable-dependency-tracking |
---|
41 | configure.args-append -DCMAKE_OSX_ARCHITECTURES=\"[strsed ${configure.universal_archs} "g| |;|"]\" |
---|
42 | } |
---|
43 | |
---|
44 | variant debug description "Enable debug binaries" { |
---|
45 | configure.args-delete -DCMAKE_BUILD_TYPE=Release |
---|
46 | configure.args-append -DCMAKE_BUILD_TYPE=debugFull |
---|
47 | } |
---|
48 | |
---|
49 | variant demos description "compile and install a demo application" { |
---|
50 | configure.args-append -DBUILD_DEMOS=ON |
---|
51 | } |
---|
52 | |
---|
53 | variant ruby description "compile and install the ruby extension" { |
---|
54 | configure.args-append -DBUILD_RUBY_EXT=ON |
---|
55 | } |
---|