source: trunk/dports/graphics/png2ico/Portfile

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

png2ico: add more checksum types; use the right optimization flags and -arch flags and add universal variant

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.6 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 115972 2014-01-15 20:18:27Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                png2ico
7version             2002-12-08
8revision            4
9categories          graphics
10platforms           darwin
11maintainers         nomaintainer
12license             GPL-2
13
14description         Converts PNG files to Windows icon resource files.
15
16long_description    ${description}
17
18homepage            http://www.winterdrache.de/freeware/png2ico/
19master_sites        http://www.winterdrache.de/freeware/png2ico/data/
20distname            ${name}-src-${version}
21
22checksums           sha1    955004bee9a20f12b225aa01895762cbbafaeb28 \
23                    rmd160  d71f49992f152df580e0c264f723a2a4c20fac2c \
24                    sha256  d6bc2b8f9dacfb8010e5f5654aaba56476df18d88e344ea1a32523bb5843b68e
25
26depends_lib         port:libpng \
27                    port:zlib
28
29worksrcdir          ${name}
30
31patchfiles          patch-Makefile \
32                    patch-png2ico.cpp.diff
33
34use_configure       no
35
36variant universal {}
37
38build.args          CXX="${configure.cxx} [get_canonical_archflags cxx]" \
39                    CPPFLAGS="${configure.cppflags} ${configure.cxxflags}" \
40                    LDFLAGS="${configure.ldflags}"
41
42destroot {
43    xinstall -m 755 ${worksrcpath}/png2ico ${destroot}${prefix}/bin
44    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
45    xinstall -m 644 -W ${worksrcpath} LICENSE README README.unix README.win \
46        ${destroot}${prefix}/share/doc/${name}
47    xinstall -m 644 ${worksrcpath}/doc/png2ico.1 \
48        ${destroot}${prefix}/share/man/man1/
49}
Note: See TracBrowser for help on using the repository browser.