source: trunk/dports/php/php-gdchart/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: 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 124944 2014-09-01 01:05:32Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           php 1.1
6
7name                php-gdchart
8version             0.2.0
9categories          php devel
10platforms           darwin
11maintainers         ryandesign openmaintainer
12license             PHP
13
14php.branches        5.3 5.4 5.5 5.6
15php.pecl            yes
16php.pecl.name       GDChart
17php.pecl.prerelease yes
18
19description         GDChart Based Graphing Interface
20
21long_description    The GDChart extension provides an interface to the \
22                    bundled gdchart library. This library uses GD (bundled) \
23                    library to generate 20 different types of graphs based \
24                    on supplied parameters. The extension provides an OO \
25                    interface to gdchart exposing majority of options via \
26                    properties and complex (array) options via a series of \
27                    methods.
28
29checksums           md5     a8428e43616b6a5a40cb5f322acaf2be \
30                    sha1    cf1071d5e9bba2ea0dc45fd172b22db68a66b953 \
31                    rmd160  ae22aaa5b869a15677fc11d038ea0319179f056c
32
33distname            gdchart-${version}
34
35if {${name} ne ${subport}} {
36    depends_build-append        port:gd2
37   
38    depends_lib-append          port:${php}-gd
39   
40    patchfiles                  patch-gdchart.c.diff
41   
42    configure.args              --enable-gdchart=${prefix}/include/${php}/php/ext/gd
43   
44    configure.cppflags-append   -DHAVE_LIBFREETYPE
45   
46    pre-configure {
47        set fonts {Giant MediumBold Large Small Tiny}
48        foreach font ${fonts} {
49            configure.cppflags-append -DgdFont${font}=php_gd_gdFont${font}
50        }
51    }
52   
53    post-destroot {
54        set docdir ${prefix}/share/doc/${subport}
55        xinstall -d ${destroot}${docdir}
56        xinstall -m 644 -W ${worksrcpath} CREDITS README TODO ${destroot}${docdir}
57    }
58}
Note: See TracBrowser for help on using the repository browser.