Ticket #17900: Portfile.2

File Portfile.2, 1.4 KB (added by nerdling (Jeremy Lavergne), 16 years ago)

portfile changes based on PortGroup cmake 1.0.

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