1 | PortSystem 1.0 |
---|
2 | |
---|
3 | name unalz |
---|
4 | version 0.65 |
---|
5 | categories archivers |
---|
6 | platforms darwin |
---|
7 | maintainers bawi.org:minskim |
---|
8 | description unarchiver for the AlZip format |
---|
9 | |
---|
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. |
---|
13 | |
---|
14 | homepage http://www.kipple.pe.kr/win/unalz/ |
---|
15 | master_sites ${homepage} |
---|
16 | |
---|
17 | extract.suffix .tgz |
---|
18 | |
---|
19 | depends_lib port:libiconv |
---|
20 | |
---|
21 | checksums md5 e4db2c4e3c8f6f5ee414b68bc55288e5 \ |
---|
22 | sha1 98a64f799892f7adfffd4635bd19826fe8f18b26 \ |
---|
23 | rmd160 bb55aee26e12c8bf0e4422b11feffa5c88844771 |
---|
24 | |
---|
25 | worksrcdir unalz |
---|
26 | |
---|
27 | patchfiles 1000-Makefile.patch |
---|
28 | |
---|
29 | use_configure no |
---|
30 | |
---|
31 | post-patch { |
---|
32 | reinplace -E "/^CFLAGS/s|\$|${configure.cflags} [get_canonical_archflags cc]\\\nCXXFLAGS=${configure.cxxflags} [get_canonical_archflags cxx]|" ${worksrcpath}/Makefile |
---|
33 | reinplace -E "/^LDFLAGS/s|\$|${configure.ldflags} [get_canonical_archflags ld]|" ${worksrcpath}/Makefile |
---|
34 | reinplace "s|register ||" ${worksrcpath}/UnAlz.cpp |
---|
35 | reinplace "s|CRC_TABLE = get_crc_table|CRC_TABLE = (unsigned long *)get_crc_table|" ${worksrcpath}/UnAlz.cpp |
---|
36 | } |
---|
37 | |
---|
38 | build.args CPP="${configure.cxx}" \ |
---|
39 | CXX="${configure.cxx}" \ |
---|
40 | CC="${configure.cc}" |
---|
41 | |
---|
42 | build.target posix-utf8 |
---|
43 | |
---|
44 | destroot { |
---|
45 | xinstall -m 755 ${worksrcpath}/unalz ${destroot}${prefix}/bin |
---|
46 | |
---|
47 | xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name} |
---|
48 | xinstall -m 644 ${worksrcpath}/readme.txt ${destroot}${prefix}/share/doc/${name} |
---|
49 | } |
---|
50 | |
---|