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

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

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