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
Line 
1# $Id: Portfile,v 1.12 2005/10/22 02:04:20 yves Exp $
2PortSystem 1.0
3name            netpbm
4version         10.30
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 f84620e2733fb13eebe1394948077342
23
24set gcc-suffix ""
25patchfiles      patch-lib-Makefile
26
27configure {
28    system "cd ${worksrcpath} &&
29        cat Makefile.config.in ${filespath}/Makefile.config.darwin |
30        sed -e '/@PREFIX@/s@@${prefix}@' -e '/@GCC_SUFFIX@/s@@${gcc-suffix}@' \
31            > Makefile.config";
32}
33
34build.args    "messages=yes"
35build.target  ""
36
37destroot {
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} &&
42        mv bin/doc.url misc/* share/netpbm &&
43        mv man share &&
44        rm -rf README VERSION config_template link misc pkginfo share/man/web"
45}
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.