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

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

If I can't fix it, I can still explain
Bug: 5459
Submitted by:
Reviewed by:
Approved by:
Obtained from:

  • Property svn:eol-style set to native
File size: 2.0 KB
Line 
1# $Id: Portfile,v 1.13 2005/10/24 23:22:50 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
27post-fetch {
28        ui_msg "##################################################################################"
29        ui_msg "If you are upgrading from a previous netpbm version, the build will miserably fail"
30        ui_msg "Please use the following commands instead :"
31        ui_msg "port deactivate netpbm"
32        ui_msg "port install netpbm"
33        ui_msg "##################################################################################"
34}
35
36configure {
37    system "cd ${worksrcpath} &&
38        cat Makefile.config.in ${filespath}/Makefile.config.darwin |
39        sed -e '/@PREFIX@/s@@${prefix}@' -e '/@GCC_SUFFIX@/s@@${gcc-suffix}@' \
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}
55
56# work around bug in Apple's gcc build 4061
57platform darwin 8 {
58    set fl [open "| gcc --version"]
59    set data [read $fl]
60    if {[regexp "build 4061" $data] } {
61        set gcc-suffix "-3.3"
62    }
63}
Note: See TracBrowser for help on using the repository browser.