Ticket #486: Portfile

File Portfile, 1.1 KB (added by mtn88 (Max), 22 years ago)

Portfile for unrar

Line 
1PortSystem 1.0
2name                    unrar
3version                 3.11
4platforms               darwin freebsd
5categories              archivers
6maintainers             max@kruschwitz.biz
7description             Extract, view & test RAR archives
8long_description        The unRAR utility is a minor part of the \
9                        RAR archiver and contains RAR uncompression algorithm. \
10                        unRAR requires very small volume of memory to operate.
11
12homepage                http://www.rarsoft.com/
13master_sites            http://files2.rarlab.com/rar/
14
15checksums               md5 1a55414d0288865a0f836a751884457a
16distname                ${name}src-3.1.4
17worksrcdir              ${name}
18
19post-patch {
20        system "cp -f ${worksrcpath}/makefile.unix ${worksrcpath}/Makefile"
21}
22
23configure               {}
24build.type              gnu
25
26install {
27        system "install -d ${destroot}/${prefix}/bin"
28        system "install -d ${destroot}/${prefix}/share/doc/${name}"
29        system "install ${worksrcpath}/${name} \
30                ${destroot}/${prefix}/bin/${name}"
31        system "install ${worksrcpath}/license.txt \
32                ${destroot}/${prefix}/share/doc/${name}"
33        system "install ${worksrcpath}/readme.txt \
34                ${destroot}/${prefix}/share/doc/${name}"
35}
36
37install.destroot        prefix=${destroot}/${prefix}