Ticket #65561: Portfile.3

File Portfile.3, 2.5 KB (added by RobK88, 2 years ago)

Final Portfile

Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2
3PortSystem          1.0
4PortGroup           makefile 1.0
5
6name                unalz
7version             0.65
8categories          archivers
9platforms           darwin
10license             zlib
11maintainers         bawi.org:minskim \
12                    {hotmail.com:amtor @RobK88} \
13                    openmaintainer
14
15description         unarchiver for the AlZip format
16
17long_description    Unalz is an unarchiver for the AlZip format which \
18                    is widely used in Korea.  The ALZ file format is a proprietary \
19                    file compression and archiving format designed to overcome \
20                    the file size limitations of the ZIP file format. \
21                    If you want to create .alz archives, \
22                    you will need to use the proprietary ALZip software which only \
23                    runs in Windows.
24
25homepage            http://kippler.com/win/unalz/
26master_sites        ${homepage}
27
28extract.suffix      .tgz
29
30depends_lib         port:libiconv \
31                    port:zlib \
32                    port:bzip2
33
34checksums           md5 e4db2c4e3c8f6f5ee414b68bc55288e5 \
35                    rmd160 bb55aee26e12c8bf0e4422b11feffa5c88844771 \
36                    sha256 4c26699eb7545072de2ef7de79b4fff1f01c4db09cebff2d8d50ec03d5d74db0 \
37                    size 137985
38
39worksrcdir          ${name}
40
41patchfiles          1000-Makefile.diff \
42                    1001-libz-linkage.diff \
43                    1002-libbz2-linkage.diff \
44                    1003-zlib-1.2.7-build.diff \
45                    1004-pipe-mode-fixes.diff \
46                    1005-filename-length-check.diff \
47                    1006-fix-offset-overflow.diff
48
49#
50# Remove this post-patch if you want to take advantage of the potential speed increase
51# offered by using the "register" keyword in the C++ program.
52# Unfortunately, the "register" keyword is only available in older compilers.
53# The "register" keyword was deprecated in the C++17 language standard.
54#
55post-patch {
56    reinplace -locale C "s|register ||" ${worksrcpath}/UnAlz.cpp
57}
58
59use_configure       no
60
61build.target        posix-utf8
62
63destroot {
64    xinstall -m 755 ${worksrcpath}/unalz ${destroot}${prefix}/bin
65    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
66    xinstall -m 644 ${worksrcpath}/readme.txt ${destroot}${prefix}/share/doc/${name}
67}
68
69livecheck.type      regex
70livecheck.url       ${homepage}
71livecheck.regex     ${name}-(\\d+(?:\\.\\d+)*)
72