source: trunk/dports/science/KlustaKwik/Portfile

Last change on this file was 108512, checked in by jeremyhu@…, 4 years ago

Remove compiler dependency hacks now that users should be on base 2.2

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.1 KB
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: Portfile 108512 2013-07-25 06:07:28Z ryandesign@macports.org $
3PortSystem              1.0
4
5name                    KlustaKwik
6categories              science
7platforms               darwin
8license                 GPL-2
9maintainers             gmail.com:FlorianFranzen openmaintainer
10
11description             A program for automatic clustering of continuous \
12                        data into a mixture of Gaussians.
13long_description        KlustaKwik is an open-source program for \
14                        automatic clustering of continuous data into \
15                        a mixture of Gaussians. The program was \
16                        originally developed for sorting of neuronal \
17                        action potentials, but can be applied to any \
18                        sort of data.
19homepage                http://sourceforge.net/projects/klustakwik/
20
21use_bzip2               yes
22
23patchfiles              patch-${subport}-makefile.diff
24
25use_configure           no
26variant universal {}
27
28installs_libs           no
29destroot {
30    xinstall ${worksrcpath}/${name} ${destroot}${prefix}/bin
31}
32
33if {${subport} == ${name}} {
34    version             2.0.1
35    revision            1
36    conflicts           maskedKlustaKwik
37
38    master_sites        sourceforge:project/klustakwik/klustakwik/
39    checksums           rmd160  d9eff4ddbda85cfd4258eee64756955473ea1613 \
40                        sha256  a5ccaba9fd9383591023d03bcedf339de462f9dbd540b424c873b6648172cf7a
41
42    build.target
43    build.args          CXX=${configure.cxx} \
44                        CXXFLAGS="[get_canonical_archflags cxx]"
45
46    livecheck.regex     "/klustakwik/${name}-(\[0-9.\]+\[0-9\])"
47} else {
48    livecheck.type      none
49}
50
51subport maskedKlustaKwik {
52    version             3.0.2
53    conflicts           KlustaKwik
54
55    long_description    ${long_description} This is the new masked \
56                        version of KlustaKwik, designed for large dense \
57                        electrode arrays.
58
59    master_sites        sourceforge:project/klustakwik/${subport}/
60    # Distfile decompresses to a tar file with no extension. Seriously.
61    extract.suffix      .bz2
62    checksums           rmd160  1d723b72ed17c285a160856c4f3131c1f3451896 \
63                        sha256  acdd9a71675d2c0b64809d7f67118eebdb42df1eddfc170b9a00fc8a37dac5b6
64
65    worksrcdir          MKK_sourceforge
66
67    variant native description "Enable CPU-specific optimizations" {
68        # Blacklist compilers that do not support "-march=native".
69        compiler.blacklist  macports-llvm-gcc-4.2 llvm-gcc-4.2 \
70                            apple-gcc-4.2 apple-gcc-4.0 \
71                            gcc-4.2 gcc-4.0 gcc-3.3
72
73        build.target        native
74    }
75
76    build.args          CXXFLAGS="[get_canonical_archflags cxx]" \
77                        LDFLAGS="[get_canonical_archflags ld]"
78
79    pre-build {
80        build.args-append \
81                        CXX=${configure.cxx}
82    }
83
84    livecheck.type      sourceforge
85    livecheck.regex     "/${subport}/${name}-(\[0-9.\]+\[0-9\])"
86}
Note: See TracBrowser for help on using the repository browser.