source: trunk/dports/devel/lzo/Portfile

Last change on this file was 127290, checked in by ryandesign@…, 3 years ago

lzo: clang does not experience ancient gcc bugs, the workarounds for which clang doesn't understand either (#45596)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
1# $Id: Portfile 127290 2014-10-24 22:45:11Z ryandesign@macports.org $
2
3PortSystem          1.0
4name                lzo
5version             1.08
6categories          devel compression
7license             GPL-2+
8maintainers         nomaintainer
9description         Real-time data compression library
10long_description \
11   LZO is a portable lossless data compression library written in ANSI C. \
12   It offers pretty fast compression and very fast decompression. \
13   Decompression requires no memory. \
14   In addition there are slower compression levels achieving a quite \
15   competitive compression ratio while still decompressing at \
16   this very high speed. \
17   LZO is distributed under the GNU General Public License.
18
19platforms           darwin
20
21homepage            http://www.oberhumer.com/opensource/lzo/
22master_sites        http://www.oberhumer.com/opensource/lzo/download/LZO-v1/
23
24checksums           md5 ab94d3da364c7cbd5b78d76f1875b0f6
25
26patchfiles          patch-automake-1.13.diff
27
28use_autoreconf      yes
29autoreconf.args     -fvi
30
31configure.ccache    no
32configure.args      --enable-shared --disable-static
33
34if {[string match *clang* ${configure.compiler}]} {
35    configure.args-append mfx_cv_prog_gcc_bug_schedule_insns=no
36}
37
38post-configure {
39    if {[variant_isset universal]} {
40        system -W ${worksrcpath} "ed - config.h < ${filespath}/config.h.ed && touch stamp-h1"
41    }
42}
43
44post-destroot {
45   xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
46   xinstall -m 644 -W ${worksrcpath}/doc LTEST.TXT LZO.FAQ LZO.TXT \
47      LZOAPI.TXT ${destroot}${prefix}/share/doc/${name}
48}
49
50livecheck.type      regex
51livecheck.url       ${master_sites}
52livecheck.regex     "${name}-(1.\[0-9\]+)${extract.suffix}"
53
Note: See TracBrowser for help on using the repository browser.