source: trunk/dports/science/libANN/Portfile

Last change on this file was 115519, checked in by ryandesign@…, 4 years ago

libANN: ensure we're UsingTheRightCompiler and -arch flags and add universal variant; rewrite master_sites to avoid double slash

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1# -*- coding: utf-8; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
2# $Id: Portfile 115519 2014-01-04 00:05:38Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                libANN
7version             1.1.2
8maintainers         nomaintainer
9
10categories          science devel
11description         A Library for Approximate Nearest Neighbor Searching
12long_description    ANN is a library written in C++, which supports data structures and \
13                    algorithms for both exact and approximate nearest neighbor searching \
14                    in arbitrarily high dimensions.
15
16platforms           darwin
17license             LGPL
18
19homepage            http://www.cs.umd.edu/~mount/ANN/
20master_sites        ${homepage}Files/${version}/
21distname            ann_${version}
22
23checksums           md5     7ffaacc7ea79ca39d4958a6378071365 \
24                    sha1    27ec04d55e244380ade3706a9b71c3d631e2ff1a \
25                    rmd160  1b76b2f5c25c83c6d52a1a1e19e5b058ccf929d0
26
27patchfiles          patch-Make-config.diff \
28                    patch-ann2fig-ann2fig.cpp.diff
29
30post-patch {
31    # Yes, libANN gives CFLAGS to the C++ compiler.
32    reinplace "s|@CFLAGS@|${configure.cxxflags}|g" ${worksrcpath}/Make-config
33    reinplace "s|@CXX@|${configure.cxx} [get_canonical_archflags cxx]|g" ${worksrcpath}/Make-config
34}
35
36use_configure       no
37
38variant universal {}
39
40build.target        macosx-g++
41
42destroot {
43    file copy ${worksrcpath}/include/ANN ${destroot}${prefix}/include
44    file copy ${worksrcpath}/lib/libANN.a ${destroot}${prefix}/lib
45    eval file copy [glob ${worksrcpath}/bin/*] ${destroot}${prefix}/bin
46    file mkdir ${destroot}${prefix}/share/doc
47    file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/libANN
48}
49
50livecheck.type      regex
51livecheck.url       ${homepage}
52livecheck.regex     <b>Version (.*)</b>
Note: See TracBrowser for help on using the repository browser.