Ticket #17900: Portfile

File Portfile, 1.9 KB (added by nerdling (Jeremy Lavergne), 16 years ago)

removed defaults, added extract.suffix

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