source: trunk/dports/audio/wavpack/Portfile

Last change on this file was 153248, checked in by devans@…, 12 months ago

wavpack: build fix, disable asm on 10.7 if suitable compiler not found.

  • 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 153248 2016-09-27 23:01:08Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           muniversal 1.0
6PortGroup           compiler_blacklist_versions 1.0
7
8name                wavpack
9version             4.80.0
10categories          audio
11license             BSD
12maintainers         nomaintainer
13description         Hybrid lossless audio compression
14long_description    WavPack is a completely open audio compression format \
15                    providing lossless, high-quality lossy, and a unique \
16                    hybrid compression mode. Although the technology is \
17                    loosely based on previous versions of WavPack, the new \
18                    version 4 format has been designed from the ground up \
19                    to offer unparalleled performance and functionality.
20homepage            http://www.wavpack.com/
21platforms           darwin
22master_sites        ${homepage}
23
24use_bzip2           yes
25
26checksums           rmd160  ca569bde94705f8405c98f79131a9af0eb6e96ba \
27                    sha256  79182ea75f7bd1ca931ed230062b435fde4a4c2e0dbcad048007bd1ef1e66be9
28
29depends_lib         port:libiconv
30
31platform darwin {
32    compiler.blacklist {macports-clang-3.[34]} {clang < 500} *gcc*
33
34    # handrolled asm has issues on older platforms.  Disable it if we don't find a good compiler.
35    if {${os.major} < 12 && ![string match "*macports*" ${configure.compiler}]} {
36        configure.args-append --disable-asm
37    }
38}
39
40# if host is not set in 32-bit mode, wrong assembly code is used
41if {![variant_isset universal] && ${build_arch} eq "i386"} {
42    configure.args-append \
43        --host=i686-apple-${os.platform}${os.version}
44}
45if { [variant_isset universal] } {
46    lappend merger_configure_args(i386) \
47        --host=i686-apple-${os.platform}${os.version}
48}
49
50livecheck.type      regex
51livecheck.url       ${homepage}/downloads.html
52livecheck.regex     "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
Note: See TracBrowser for help on using the repository browser.