source: trunk/dports/graphics/pngquant/Portfile

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

pngquant: new port, version 2.1.0 (#42730)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 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 117656 2014-03-07 07:12:54Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           github 1.0
6
7github.setup        pornel pngquant 2.1.0
8categories          graphics
9platforms           darwin
10maintainers         gmail.com:lpancescu
11license             BSD
12
13description         command-line utility and library for lossy compression of PNG images.
14
15long_description    pngquant is a ${description}. \
16                    The conversion reduces file sizes significantly (often as \
17                    much as 70%) and preserves full alpha transparency. \
18                    Generated images are compatible with all modern web \
19                    browsers, and have better fallback in IE6 than 24-bit PNGs.
20
21homepage            http://pngquant.org/
22master_sites        ${homepage}
23use_bzip2           yes
24distfiles           ${name}-${version}-src${extract.suffix}
25
26checksums           rmd160  f76bf91ed33b00eb5f5daf1e3b03ffe1170d5707 \
27                    sha256  ef41138ff320495c785155eb9f774ae6e1d41978b3e490854e6a8c46c0b032e2
28
29depends_lib         port:libpng \
30                    port:zlib
31
32patchfiles          patch-Makefile.diff
33
34use_configure       no
35
36variant universal {}
37
38build.env-append    PREFIX=${prefix} \
39                    CC=${configure.cc} \
40                    CFLAGSADD="[get_canonical_archflags cc]" \
41                    LDFLAGSADD="[get_canonical_archflags ld]" \
42                    ARFLAGS=rsv
43
44eval destroot.env-append ${build.env}
45
46post-destroot {
47    set docdir ${prefix}/share/doc/${subport}
48    xinstall -d ${destroot}${docdir}
49    xinstall -m 644 -W ${worksrcpath} \
50        CHANGELOG \
51        COPYRIGHT \
52        README.md \
53        ${destroot}${docdir}
54}
55
56livecheck.type      regex
57livecheck.url       ${homepage}releases.html
58livecheck.regex     ${name}-(\[0-9.\]+)-src${extract.suffix}
Note: See TracBrowser for help on using the repository browser.