source: trunk/dports/graphics/vlfeat/Portfile

Last change on this file was 127201, checked in by stromnov@…, 3 years ago

vlfeat: update to version 0.9.19

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 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 127201 2014-10-22 22:01:40Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                vlfeat
7version             0.9.19
8revision            0
9categories          graphics devel
10platforms           darwin
11license             BSD
12
13maintainers         stromnov openmaintainer
14
15description         Implementation of SIFT, MSER and other CV algorithms.
16
17long_description \
18    The VLFeat open source library implements popular computer vision \
19    algorithms including SIFT, MSER, k-means, hierarchical k-means, \
20    agglomerative information bottleneck, and quick shift.
21
22homepage            http://vlfeat.org/
23master_sites        http://vlfeat.org/download/
24
25checksums           rmd160  0331f15b9e779095e0d16afc65452cb446ccfa56 \
26                    sha256  f0b38d7800c8ed681f1cfdc53bb86afc0e8742650d2eb3e29531d32834d68124
27
28use_configure       no
29
30supported_archs     x86_64 i386
31
32if {${build_arch} eq "x86_64"} {
33    set vlfeat_arch maci64
34} elseif {${build_arch} eq "i386"} {
35    set vlfeat_arch maci
36}
37if {[info exists vlfeat_arch]} {
38    build.args-append   ARCH=${vlfeat_arch}
39}
40
41if {${configure.sdkroot} != ""} {
42    build.args-append   SDKROOT="${configure.sdkroot}"
43} else {
44    build.args-append   SDKROOT=/
45}
46
47build.args-append       CC="${configure.cc}"
48
49# disable silent rules
50build.args-append       VERB=1
51
52use_parallel_build      no
53
54post-patch {
55    reinplace "s|-install_name @loader_path/|-install_name ${prefix}/lib/|g" ${worksrcpath}/make/dll.mak
56}
57
58destroot {
59    xinstall -m 755 -W ${worksrcpath}/bin/${vlfeat_arch} libvl.dylib ${destroot}${prefix}/lib
60    xinstall -m 755 -W ${worksrcpath}/bin/${vlfeat_arch} sift mser ${destroot}${prefix}/bin
61    xinstall -d -m 755 ${destroot}${prefix}/include/vl
62    foreach header [glob -directory ${worksrcpath}/vl *.h] {
63         xinstall -m 644 $header ${destroot}${prefix}/include/vl
64    }
65}
66
67livecheck.type      regex
68livecheck.url       ${master_sites}
69livecheck.regex     "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
Note: See TracBrowser for help on using the repository browser.