source: trunk/dports/graphics/jbigkit/Portfile @ 20421

Last change on this file since 20421 was 20421, checked in by jberry@…, 14 years ago

Convert all darwinports@… addresses
to nomaintainer@… or openmaintainer@….

See http://trac.macports.org/projects/macports/wiki/SpecialMaintainerAddresses
for more information.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.1 KB
Line 
1# $Id: Portfile 20421 2006-11-03 02:16:50Z jberry@macports.org $
2
3PortSystem                      1.0
4name                            jbigkit
5version                         1.6
6categories                      graphics
7maintainers                     nomaintainer@macports.org
8description                     Data compression algorithm for bi-level high-res images
9long_description \
10        JBIG-KIT provides a portable library of compression and decompression \
11        functions with a documented interface that you can very easily include \
12        into your image or document processing software. In addition, JBIG-KIT \
13        provides ready-to-use compression and decompression programs with a \
14        simple command line interface (similar to the converters found in netpbm).
15
16platforms                       darwin
17
18homepage                        http://www.cl.cam.ac.uk/~mgk25/${name}
19master_sites            http://www.cl.cam.ac.uk/~mgk25/download/
20
21checksums                       md5 ce196e45f293d40ba76af3dc981ccfd7
22
23worksrcdir                      ${name}
24
25post-patch {
26        reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/libjbig/Makefile
27}
28
29use_configure           no
30
31destroot {
32        xinstall -m 755 -d ${destroot}/${prefix}/bin \
33                ${destroot}/${prefix}/include ${destroot}/${prefix}/lib \
34                ${destroot}/${prefix}/share/man/man1 \
35                ${destroot}/${prefix}/share/doc/${name} \
36                ${destroot}/${prefix}/share/examples
37        xinstall -m 755 -W ${worksrcpath}/pbmtools jbgtopbm pbmtojbg \
38                ${destroot}/${prefix}/bin
39        xinstall -m 644 -W ${worksrcpath}/pbmtools jbgtopbm.1 pbmtojbg.1 \
40                ${destroot}/${prefix}/share/man/man1
41        xinstall -m 644 -W ${worksrcpath}/libjbig jbig.h \
42                ${destroot}/${prefix}/include
43        xinstall -m 644 -W ${worksrcpath}/libjbig libjbig.a \
44                ${destroot}/${prefix}/lib
45        system "ranlib ${destroot}/${prefix}/lib/libjbig.a"
46        xinstall -m 644 -W ${worksrcpath} ANNOUNCE CHANGES COPYING INSTALL TODO \
47                ${destroot}/${prefix}/share/doc/${name}
48        xinstall -m 644 -W ${worksrcpath}/libjbig jbig.doc \
49                ${destroot}/${prefix}/share/doc/${name}
50        file copy ${worksrcpath}/examples \
51                ${destroot}/${prefix}/share/examples/${name}
52}
53
54variant darwin {
55        patchfiles-append       patch-Makefile_darwin patch-libjbig_Makefile_darwin
56        post-destroot {
57                xinstall -m 644 -W ${worksrcpath}/libjbig libjbig.1.dylib \
58                        ${destroot}/${prefix}/lib
59                system "ln -s libjbig.1.dylib ${destroot}/${prefix}/lib/libjbig.dylib"
60        }
61}
62
Note: See TracBrowser for help on using the repository browser.