source: trunk/dports/graphics/netpbm/Portfile @ 14341

Last change on this file since 14341 was 14341, checked in by yves, 14 years ago

Bug: 5078
Submitted by: hparker@…
Reviewed by: yves@
Approved by:
Obtained from:

  • Property svn:eol-style set to native
File size: 1.7 KB
Line 
1# $Id: Portfile,v 1.11 2005/09/30 12:25:37 yves Exp $
2PortSystem 1.0
3name            netpbm
4version         10.29
5revision        1
6categories      graphics
7maintainers     yves@opendarwin.org
8description     Image manipulation
9long_description \
10    A whole bunch of utilities for primitive manipulation \
11    of graphic images.  Wide array of converters from one \
12    graphics format to another.  E.g. from g3 fax format to \
13    jpeg.  Many basic graphics editing tools such as \
14    magnifying and cropping.
15
16homepage        http://netpbm.sourceforge.net/
17master_sites    sourceforge:netpbm
18platforms       darwin
19
20depends_lib     port:zlib port:jpeg port:tiff \
21                port:libpng port:jasper
22extract.suffix  .tgz
23checksums       md5 606c7ca1f3cd4c722a98961216730aec
24
25patchfiles      patch-lib-Makefile patch-camera.c patch-cameratopam.c
26post-patch {
27    reinplace "s|INFINITY|infinity|g" \
28        ${worksrcpath}/editor/pnmaddnoise.c
29}
30
31configure {
32    if { ${xcodeversion} == "2.0orlower"} {
33        set use_gcc "gcc-3.3"
34    } else {
35        set use_gcc "gcc"
36    }
37    system "cd ${worksrcpath} &&
38        cat Makefile.config.in ${filespath}/Makefile.config.darwin |
39        sed -e '/@PREFIX@/s@@${prefix}@' -e '/@GCC@/s@@${use_gcc}@' \
40            > Makefile.config";
41}
42
43build.args    "messages=yes"
44build.target  ""
45
46destroot {
47    file delete -force ${destroot}${prefix}
48    system "cd ${worksrcpath} && make package pkgdir=${destroot}${prefix}"
49    xinstall -m 755 -d ${destroot}${prefix}/share/netpbm
50    system "cd ${destroot}${prefix} &&
51        mv bin/doc.url misc/* share/netpbm &&
52        mv man share &&
53        rm -rf README VERSION config_template link misc pkginfo share/man/web"
54}
Note: See TracBrowser for help on using the repository browser.