10 | | long_description Unalz is a BSD-licensed unarchiver for AlZip format which \ |
11 | | requires proprietary and win32-only software but widely used \ |
12 | | in Korea. |
| 15 | long_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. |
| 28 | depends_lib port:libiconv \ |
| 29 | port:zlib \ |
| 30 | port:bzip2 |
| 31 | |
| 32 | checksums md5 e4db2c4e3c8f6f5ee414b68bc55288e5 \ |
| 33 | rmd160 bb55aee26e12c8bf0e4422b11feffa5c88844771 \ |
| 34 | sha256 4c26699eb7545072de2ef7de79b4fff1f01c4db09cebff2d8d50ec03d5d74db0 \ |
| 35 | size 137985 |
| 36 | |
| 37 | worksrcdir ${name} |
| 38 | |
| 39 | patchfiles 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 | # |
27 | | reinplace "s|/usr/local|\$(DESTDIR)${prefix}|" ${worksrcpath}/Makefile |
28 | | reinplace "s|register ||" ${worksrcpath}/UnAlz.cpp |
29 | | reinplace "s|CRC_TABLE = get_crc_table|CRC_TABLE = (unsigned long *)get_crc_table|" ${worksrcpath}/UnAlz.cpp |
30 | | } |
31 | | |
32 | | |
33 | | # Note: CPP in the Makefile is the C++ compiler, not preprocessor |
34 | | configure { |
35 | | reinplace -E "/^CFLAGS/s|\$|${configure.cflags} [get_canonical_archflags cc]\\\nCPPFLAGS=${configure.cxxflags} [get_canonical_archflags cxx]|" ${worksrcpath}/Makefile |
36 | | reinplace -E "/^LDFLAGS/s|\$|${configure.ldflags} [get_canonical_archflags ld]|" ${worksrcpath}/Makefile |
| 54 | reinplace -locale C "s|register ||" ${worksrcpath}/UnAlz.cpp |