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

Last change on this file since 32256 was 32256, checked in by ryandesign@…, 13 years ago

All nomaintainer ports: ${prefix} already begins with a slash,
so there's no reason to put a slash before the ${prefix} variable
when using it.

See r32257 for the equivalent change for openmaintainer ports.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.1 KB
Line 
1# $Id: Portfile 32256 2007-12-23 09:18:47Z ryandesign@macports.org $
2
3PortSystem                      1.0
4name                            jbigkit
5version                         1.6
6categories                      graphics
7maintainers                     nomaintainer
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
31test.run                yes
32test.target             test
33
34destroot {
35        xinstall -m 755 -d ${destroot}${prefix}/bin \
36                ${destroot}${prefix}/include ${destroot}${prefix}/lib \
37                ${destroot}${prefix}/share/man/man1 \
38                ${destroot}${prefix}/share/doc/${name} \
39                ${destroot}${prefix}/share/examples
40        xinstall -m 755 -W ${worksrcpath}/pbmtools jbgtopbm pbmtojbg \
41                ${destroot}${prefix}/bin
42        xinstall -m 644 -W ${worksrcpath}/pbmtools jbgtopbm.1 pbmtojbg.1 \
43                ${destroot}${prefix}/share/man/man1
44        xinstall -m 644 -W ${worksrcpath}/libjbig jbig.h \
45                ${destroot}${prefix}/include
46        xinstall -m 644 -W ${worksrcpath}/libjbig libjbig.a \
47                ${destroot}${prefix}/lib
48        system "ranlib ${destroot}${prefix}/lib/libjbig.a"
49        xinstall -m 644 -W ${worksrcpath} ANNOUNCE CHANGES COPYING INSTALL TODO \
50                ${destroot}${prefix}/share/doc/${name}
51        xinstall -m 644 -W ${worksrcpath}/libjbig jbig.doc \
52                ${destroot}${prefix}/share/doc/${name}
53        file copy ${worksrcpath}/examples \
54                ${destroot}${prefix}/share/examples/${name}
55}
56
57platform darwin {
58        patchfiles-append       patch-Makefile_darwin patch-libjbig_Makefile_darwin
59        post-destroot {
60                xinstall -m 644 -W ${worksrcpath}/libjbig libjbig.1.dylib \
61                        ${destroot}${prefix}/lib
62                system "ln -s libjbig.1.dylib ${destroot}${prefix}/lib/libjbig.dylib"
63        }
64}
Note: See TracBrowser for help on using the repository browser.