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

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

Bump to 10.30
Bug: also fix gcc build detection (5299)
Submitted by:
Reviewed by:
Approved by:
Obtained from:

  • Property svn:eol-style set to native
File size: 1.6 KB
RevLine 
[14750]1# $Id: Portfile,v 1.12 2005/10/22 02:04:20 yves Exp $
[3274]2PortSystem 1.0
3name            netpbm
[14750]4version         10.30
[3274]5categories      graphics
[12726]6maintainers     yves@opendarwin.org
[3274]7description     Image manipulation
[11723]8long_description \
[12726]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
[3274]15homepage        http://netpbm.sourceforge.net/
[12726]16master_sites    sourceforge:netpbm
17platforms       darwin
18
[12398]19depends_lib     port:zlib port:jpeg port:tiff \
[12726]20                port:libpng port:jasper
[11723]21extract.suffix  .tgz
[14750]22checksums       md5 f84620e2733fb13eebe1394948077342
[11723]23
[14750]24set gcc-suffix ""
25patchfiles      patch-lib-Makefile
[11723]26
[3274]27configure {
[12726]28    system "cd ${worksrcpath} &&
29        cat Makefile.config.in ${filespath}/Makefile.config.darwin |
[14750]30        sed -e '/@PREFIX@/s@@${prefix}@' -e '/@GCC_SUFFIX@/s@@${gcc-suffix}@' \
[13587]31            > Makefile.config";
[3274]32}
[11723]33
[13587]34build.args    "messages=yes"
35build.target  ""
[11723]36
[3274]37destroot {
[12726]38    file delete -force ${destroot}${prefix}
39    system "cd ${worksrcpath} && make package pkgdir=${destroot}${prefix}"
40    xinstall -m 755 -d ${destroot}${prefix}/share/netpbm
41    system "cd ${destroot}${prefix} &&
[13587]42        mv bin/doc.url misc/* share/netpbm &&
[12726]43        mv man share &&
44        rm -rf README VERSION config_template link misc pkginfo share/man/web"
[3274]45}
[14750]46
47# work around bug in Apple's gcc build 4061
48platform darwin 8 {
49    set fl [open "| gcc --version"]
50    set data [read $fl]
51    if {[regexp "build 4061" $data] } {
52        set gcc-suffix "-3.3"
53    }
54}
Note: See TracBrowser for help on using the repository browser.