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

Last change on this file since 41755 was 41755, checked in by devans@…, 12 years ago

jbigkit: lint, add modeline, fix livecheck.

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