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

Last change on this file since 8381 was 8381, checked in by mww, 15 years ago

-fix mandir
-inc. revision

  • Property svn:eol-style set to native
File size: 1.7 KB
Line 
1# $Id: Portfile,v 1.3 2004/09/20 16:30:23 mww Exp $
2PortSystem 1.0
3name            netpbm
4version         10.11.10
5revision                1
6categories      graphics
7maintainers     norume@aps.anl.gov
8description     Image manipulation
9long_description    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.
14homepage        http://netpbm.sourceforge.net/
15master_sites    sourceforge:netpbm
16platforms       darwin
17depends_lib     lib:libzlib.1:zlib lib:libjpeg.6:jpeg lib:libtiff.3:tiff \
18                lib:libpng.1:libpng
19extract.suffix    .tgz
20checksums       md5 4c057801d3c5bd116fda88a57cedb057
21configure {
22        system "cd ${worksrcpath} &&
23                cat Makefile.config.in ../../files/Makefile.config.darwin |
24                    sed -e '/@PREFIX@/s@@${prefix}@' >Makefile.config";
25}
26destroot {
27        # netpbm has its own destroot-ish procedure.
28        # unfortunately, it doesn't want the darwinports destroot
29        # since it doesn't want anything to exist, including
30        # directories.  So, we let netpbm build its destroot-like
31        # area and then copy that into the port's destroot.
32        system "rm -rf ${worksrcpath}/insttmp &&
33                cd ${worksrcpath} &&
34                make package pkgdir=${worksrcpath}/insttmp &&
35                ( cd ${worksrcpath}/insttmp/lib ;
36                          ln -s libnetpbm.${version}.dylib libnetpbm.dylib ) &&
37                ( cd ${worksrcpath}/insttmp ;
38                  tar cf - bin lib include man ) | ( cd ${destroot}${prefix} ;
39                                                     tar xf - )";
40        file delete -force ${destroot}${prefix}/share/man \
41                ${destroot}${prefix}/man/web
42        file rename ${destroot}${prefix}/man ${destroot}${prefix}/share/man
43}
Note: See TracBrowser for help on using the repository browser.