diff --git a/devel/kchmviewer/Portfile b/devel/kchmviewer/Portfile
index a457dd9817..2bd2e78d69 100644
a
|
b
|
|
1 | 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 | 2 | |
3 | 3 | PortSystem 1.0 |
4 | | |
5 | 4 | # kchmviewer's KDE variant still requires KDE4 and will thus not be shipped for now. |
6 | 5 | # The pure Qt variant is obtained by using QMake instead of CMake. |
7 | 6 | PortGroup qmake5 1.0 |
8 | 7 | |
9 | 8 | name kchmviewer |
10 | 9 | version 7.7 |
| 10 | revision 1 |
11 | 11 | |
12 | 12 | categories devel |
13 | 13 | description A CHM (Winhelp) files viewer written for Qt. |
… |
… |
depends_lib-append port:libzip \ |
34 | 34 | port:chmlib |
35 | 35 | |
36 | 36 | # kchmviewer is transitioning to QtWebEngine, but that adaptation is not yet functional. |
| 37 | # (and WebKit is a much more appropriate choice anyway.) |
37 | 38 | qt5.depends_component \ |
38 | 39 | qtwebkit |
39 | 40 | |
… |
… |
post-patch { |
62 | 63 | configure.cppflags-append -I${prefix}/lib/libzip/include |
63 | 64 | default configure.dir {${workpath}/build} |
64 | 65 | configure.pre_args-append ../${worksrcdir}/${name}.pro |
65 | | configure.args-append -nocache -recursive |
| 66 | configure.args-append -recursive |
66 | 67 | default build.dir {${workpath}/build} |
67 | 68 | |
| 69 | post-extract { |
| 70 | # the mainstream qmake5 PG assumes qt5.top_level exists but doesn't check. |
| 71 | # it'll fail for ports like us intending to do an out-of-tree build. |
| 72 | # Create the directory now (it's needed in the pre-configure). |
| 73 | xinstall -m 755 -d ${qt5.top_level} |
| 74 | } |
| 75 | |
| 76 | # the mainstream qmake5 PG also doesn't respect configure.ldflags |
| 77 | default qt5.ldflags {${configure.ldflags}} |
| 78 | |
68 | 79 | platform darwin { |
69 | 80 | destroot { |
70 | 81 | xinstall -m 755 -d ${destroot}${qt_apps_dir} |