Ticket #65561: Portfile.2

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

Updated Portfile

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