source: trunk/dports/graphics/gdchart/Portfile

Last change on this file was 125011, checked in by mf2k@…, 3 years ago

backuppc cextract gdchart newmat newran nifticlib py-chm py-chm2pdf py-hcluster py-ode py-psychopy py-pynifti py-pywavelets py26-pymvpa py26-tvdb py26-tvnamer py27-instapaperlib shogun uclatools xmedcon: Ports abandoned. (#44641)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 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 125011 2014-09-02 19:44:07Z ryandesign@macports.org $
3PortSystem          1.0
4
5name                gdchart
6version             0.11.5
7revision            7
8categories          graphics
9maintainers         nomaintainer
10description         Easy to use C API, high performance library.
11long_description    Create charts and graphs in PNG, GIF and WBMP format.
12homepage            http://www.fred.net/brv/chart/
13platforms           darwin
14master_sites        http://www.fred.net/brv/chart/
15distname            ${name}${version}dev
16
17checksums           md5 a4af7bc927d8b88934da56fce10a7a3c \
18                    sha1 c23e1cd233c38ac007b57420c20a5fa7fa206841 \
19                    rmd160 be9b11eb446738d9e30d78e8ce73b8a418b1f520
20use_parallel_build  no
21
22depends_build       port:libpng \
23                    port:zlib \
24                    port:gd2 \
25                    port:jpeg \
26                    port:freetype
27
28set CFLAGS ${configure.cflags}
29
30post-patch {
31    # Use prefix
32    reinplace s:/usr/local:${prefix}: ${worksrcpath}/Makefile
33}
34
35use_configure       no
36
37build.args \
38    CC=${configure.cc} \
39    GD_LIB=libgd.dylib
40
41pre-build {
42    build.args-append \
43        CFLAGS="${CFLAGS}"
44}
45
46destroot.args \
47    PREFIX_INC=${destroot}${prefix}/include \
48    PREFIX_LIB=${destroot}${prefix}/lib
49
50post-destroot {
51    set docdir ${prefix}/share/doc/${name}
52    xinstall -d ${destroot}${docdir}
53    xinstall -m 644 ${worksrcpath}/README.txt ${destroot}${docdir}
54}
55
56variant universal {
57    append CFLAGS " ${configure.universal_cflags}"
58
59    post-patch {
60        # Use libtool instead of ar
61        reinplace "s:ar cr:libtool -o:" \
62            ${worksrcpath}/Makefile
63    }
64}
65
66livecheck.type      regex
67livecheck.url       ${homepage}dev011x.htm
68livecheck.regex     {gdchart([0-9.]+)dev.tar.gz}
Note: See TracBrowser for help on using the repository browser.