Ticket #10841: Portfile

File Portfile, 963 bytes (added by digdog@…, 18 years ago)

Portfile for squish

Line 
1# $Id$
2
3PortSystem      1.0
4name            squish
5version         1.9
6revision        1
7categories      graphics
8maintainers     julian9@gmail.com
9description     DXT Compression Library
10long_description        \
11        DXT compression is a very well-designed compression scheme for \
12        colour textures with an optional alpha channel. The squish library \
13        is a cross-platform open source implementation of DXT compression \
14        (and decompression).
15
16homepage        http://www.sjbrown.co.uk/?code=squish
17master_sites    http://www.sjbrown.co.uk/files/
18
19distname        ${name}-${version}
20worksrcdir      ${name}-${version}
21platforms       darwin
22checksums       md5 ff02e9c8da406e2bad72c6ccb43b90dc
23
24use_configure   no
25
26post-configure  {
27        reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/config
28}
29
30destroot        {
31        xinstall -d -m 0755 ${destroot}/${prefix}/include
32        xinstall -d -m 0755 ${destroot}/${prefix}/lib
33        xinstall -m 0644 ${worksrcpath}/lib${name}.a ${destroot}/${prefix}/lib
34        xinstall -m 0644 ${worksrcpath}/${name}.h ${destroot}/${prefix}/include
35}