Ticket #12165: Portfile

File Portfile, 2.0 KB (added by yves@…, 17 years ago)
Line 
1# $Id: Portfile 25847 2007-06-03 16:55:21Z nox@macports.org $
2
3PortSystem      1.0
4name            jpeg
5version         6b
6revision        2
7categories      graphics
8maintainers     waqar@macports.org
9description     Library for manipulating JPEG images
10long_description        \
11        This distribution contains the sixth public release of the      \
12        Independent JPEG Group's free JPEG software. You are welcome    \
13        to redistribute this software and to use it for any purpose,    \
14        subject to the conditions under LEGAL ISSUES, below.            \
15        Serious users of this software (particularly those              \
16        incorporating it into larger programs) should contact IJG at    \
17        jpeg-info@uunet.uu.net to be added to our electronic mailing    \
18        list.  Mailing list members are notified of updates and have    \
19        a chance to participate in technical discussions, etc.
20
21homepage        http://www.ijg.org/
22platforms       darwin freebsd sunos
23master_sites    http://www.ijg.org/files \
24                ftp://ftp.uu.net/graphics/jpeg \
25                http://sylvana.net/jpegcrop/:drop
26
27distname        ${name}src.v${version}
28worksrcdir      ${name}-${version}
29set jpegmain    ${distname}${extract.suffix}
30distfiles       ${jpegmain} \
31                droppatch.tar.gz:drop
32               
33checksums       ${jpegmain} md5 dbd5f3b47ed13132f04c685d608a7547 \
34                droppatch.tar.gz md5 511c39779ac96cd41ca1e0a87b239287
35extract.only    ${jpegmain}
36
37patchfiles      patch-config.sub patch-config.guess patch-ltmain.sh \
38                patch-ltconfig patch-makefile.cfg
39post-patch {
40    reinplace   "s|(prefix)/man|(prefix)/share/man|g" makefile.cfg
41    cd ${worksrcpath}
42    system "tar zxf ${distpath}/droppatch.tar.gz"
43}
44
45configure.args      --enable-shared --enable-static
46destroot.destdir    prefix=${destroot}${prefix}
47pre-destroot {
48    xinstall -d ${destroot}${prefix}/bin
49    xinstall -d ${destroot}${prefix}/share/man/man1
50    xinstall -d ${destroot}${prefix}/include
51    xinstall -d ${destroot}${prefix}/lib
52}
53
54
55livecheck.check regex
56livecheck.url   [lindex $master_sites 0]/?M=D
57livecheck.regex [suffix ${name}src.v(.*?)]