source: trunk/dports/php/php-FreeImage/Portfile

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

add php56 subports

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 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 124944 2014-09-01 01:05:32Z ryandesign@macports.org $
3
4PortSystem              1.0
5PortGroup               php 1.1
6
7name                    php-FreeImage
8version                 0.1
9revision                1
10license                 PHP-2.02
11categories              php devel
12platforms               darwin
13maintainers             ryandesign openmaintainer
14
15php.branches            5.3 5.4 5.5 5.6
16php.pecl                yes
17php.pecl.prerelease     yes
18
19description             Provides a wrapper to the FreeImage library.
20
21long_description        This extension is a wrapper for the FreeImage library \
22                        that allows PHP to support popular graphics image \
23                        formats like GIF, PNG, BMP, JPEG, TIFF, PSD, XPM and \
24                        others as needed by today's multimedia applications.
25
26checksums               md5     91d3776de0beba4cdd7a76952f9b3265 \
27                        sha1    a81bddb31962f4054cddf1fc4b35d9c2ae7476d7 \
28                        rmd160  7a19f53176fc303c7ef04f06671b9eeeadbcec5a
29
30if {${name} ne ${subport}} {
31    depends_lib-append      port:freeimage
32   
33    post-extract {
34        # DOS to UNIX line endings so we can patch.
35        reinplace "s|\r||g" ${worksrcpath}/freeimage.c
36    }
37   
38    patchfiles              patch-freeimage.c.diff
39   
40    configure.args-append   --with-freeimage=${prefix}
41   
42    post-destroot {
43        set docdir ${prefix}/share/doc/${subport}
44        xinstall -d ${destroot}${docdir} ${destroot}${prefix}/share/examples
45        xinstall -m 644 -W ${worksrcpath} CREDITS README ${destroot}${docdir}
46        copy ${worksrcpath}/examples ${destroot}${prefix}/share/examples/${subport}
47    }
48}
Note: See TracBrowser for help on using the repository browser.