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

Last change on this file since 2121 was 2121, checked in by michaelm, 17 years ago

forgot to update revision and email on previous commit

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