source: trunk/dports/graphics/gd/Portfile @ 2125

Last change on this file since 2125 was 2125, checked in by mij, 18 years ago

Add CVS Id tags.

  • Property svn:eol-style set to native
File size: 1.8 KB
Line 
1# $Id: Portfile,v 1.11 2003/03/03 06:53:19 mij Exp $
2
3PortSystem 1.0
4name            gd
5version         1.8.4
6set libver      1.8
7revision        1
8categories      graphics
9maintainers     michaelm@opendarwin.org
10description     GD creates PNG and JPEG images, among other formats
11long_description        gd is a graphics library. It allows your code to quickly draw images \
12                        complete with lines, arcs, text, multiple colors, cut and paste from \
13                        other images, and flood fills, and write out the result as a .PNG file. \
14                        This is particularly useful in World Wide Web applications, where .PNG \
15                        is the format used for inline images. \
16                        gd is not a paint program. If you are looking for a paint program, you \
17                        are looking in the wrong place. If you are not a programmer, you are \
18                        looking in the wrong place.
19
20platforms       darwin
21master_sites    http://www.boutell.com/gd/http/
22checksums       md5 2aef76e79f206f9798233f025f5dd28d
23patchfiles      patch-Makefile patch-gdcache.h
24depends_lib     lib:libpng:libpng lib:libjpeg:jpeg
25build.type      gnu
26build.env       CPPFLAGS='-fno-common -no-cpp-precomp'
27configure       {}
28build.args      PREFIX=${prefix}
29post-build      { cd ${worksrcpath}
30                      system "cc -fno-common -dynamiclib -o libgd.${libver}.dylib \
31                      -install_name ${prefix}/lib/libgd.1.dylib -compatibility_version ${libver} \
32                      -current_version ${libver} -all_load libgd.a -L${prefix}/lib -lpng -lz -ljpeg" }
33
34install.args PREFIX=${destroot}/${prefix}
35pre-install     { system "install -d ${destroot}/${prefix}/bin"
36                  system "install -d ${destroot}/${prefix}/man/man1"
37                  system "install -d ${destroot}/${prefix}/include"
38                  system "install -d ${destroot}/${prefix}/lib" }
39
40
41post-install    { system "rm ${destroot}/${prefix}/lib/libgd.a"
42                                  system "install ${worksrcpath}/libgd.${libver}.dylib \
43                                  ${destroot}/${prefix}/lib/libgd.${libver}.dylib" }
44 
45                       
46variant x11 {   patchfiles patch-x11-Makefile patch-gdcache.h }
Note: See TracBrowser for help on using the repository browser.