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

Last change on this file since 3977 was 3977, checked in by jkh, 16 years ago

Fix the historical "sufx botch" by renaming it to "suffix"
Reviewed by: fkr & darwinports mailing list

  • Property svn:eol-style set to native
File size: 1.6 KB
Line 
1# $Id: Portfile,v 1.2 2003/11/17 21:19:58 jkh Exp $
2PortSystem 1.0
3name            netpbm
4version         10.11.10
5categories      graphics
6maintainers     norume@aps.anl.gov
7description     Image manipulation
8long_description    A whole bunch of utilities for primitive manipulation \
9                    of graphic images.  Wide array of converters from one \
10                    graphics format to another.  E.g. from g3 fax format to \
11                    jpeg.  Many basic graphics editing tools such as \
12                    magnifying and cropping.
13homepage        http://netpbm.sourceforge.net/
14master_sites    sourceforge:netpbm
15platforms       darwin
16depends_lib     lib:libzlib.1:zlib lib:libjpeg.6:jpeg lib:libtiff.3:tiff \
17                lib:libpng.1:libpng
18extract.suffix    .tgz
19checksums       md5 4c057801d3c5bd116fda88a57cedb057
20configure {
21        system "cd ${worksrcpath} &&
22                cat Makefile.config.in ../../files/Makefile.config.darwin |
23                    sed -e '/@PREFIX@/s@@${prefix}@' >Makefile.config";
24}
25destroot {
26        # netpbm has its own destroot-ish procedure.
27        # unfortunately, it doesn't want the darwinports destroot
28        # since it doesn't want anything to exist, including
29        # directories.  So, we let netpbm build its destroot-like
30        # area and then copy that into the port's destroot.
31        system "rm -rf ${worksrcpath}/insttmp &&
32                cd ${worksrcpath} &&
33                make package pkgdir=${worksrcpath}/insttmp &&
34                ( cd ${worksrcpath}/insttmp/lib ;
35                          ln -s libnetpbm.${version}.dylib libnetpbm.dylib ) &&
36                ( cd ${worksrcpath}/insttmp ;
37                  tar cf - bin lib include man ) | ( cd ${destroot}${prefix} ;
38                                                     tar xf - )";
39}
Note: See TracBrowser for help on using the repository browser.