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

Last change on this file since 13697 was 13697, checked in by yves, 15 years ago

fix xcodeversion check
Bug: 4618
Submitted by:
Reviewed by:
Approved by:
Obtained from:

  • Property svn:eol-style set to native
File size: 1.6 KB
Line 
1# $Id: Portfile,v 1.10 2005/08/24 23:16:31 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
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.