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

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

removed requirement for root to install

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