| @@ -1,44 +1,55 @@ | | | @@ -1,44 +1,55 @@ |
1 | # $NetBSD: Makefile,v 1.217.2.1 2022/01/01 16:49:10 bsiegert Exp $ | | 1 | # $NetBSD: Makefile,v 1.217.2.2 2022/01/21 15:24:17 bsiegert Exp $ |
2 | | | 2 | |
3 | DISTNAME= webkitgtk-2.34.3 | | 3 | DISTNAME= webkitgtk-2.34.3 |
4 | PKGNAME= ${DISTNAME:S/webkitgtk/webkit-gtk/} | | 4 | PKGNAME= ${DISTNAME:S/webkitgtk/webkit-gtk/} |
5 | PKGREVISION= 1 | | 5 | PKGREVISION= 1 |
6 | CATEGORIES= www | | 6 | CATEGORIES= www |
7 | MASTER_SITES= https://www.webkitgtk.org/releases/ | | 7 | MASTER_SITES= https://www.webkitgtk.org/releases/ |
8 | EXTRACT_SUFX= .tar.xz | | 8 | EXTRACT_SUFX= .tar.xz |
9 | | | 9 | |
10 | MAINTAINER= pkgsrc-users@NetBSD.org | | 10 | MAINTAINER= pkgsrc-users@NetBSD.org |
11 | HOMEPAGE= https://www.webkitgtk.org/ | | 11 | HOMEPAGE= https://www.webkitgtk.org/ |
12 | COMMENT= GTK port of the WebKit browser engine | | 12 | COMMENT= GTK port of the WebKit browser engine |
13 | LICENSE= 2-clause-bsd AND gnu-lgpl-v2 | | 13 | LICENSE= 2-clause-bsd AND gnu-lgpl-v2 |
14 | | | 14 | |
15 | # shm_open(3) and shm_unlink(3) appeared in NetBSD 7.0 | | 15 | # shm_open(3) and shm_unlink(3) appeared in NetBSD 7.0 |
16 | NOT_FOR_PLATFORM= NetBSD-[1-6].*-* | | 16 | NOT_FOR_PLATFORM= NetBSD-[1-6].*-* |
17 | | | 17 | |
18 | TOOL_DEPENDS+= gettext-tools>=0.18:../../devel/gettext-tools | | 18 | TOOL_DEPENDS+= gettext-tools>=0.18:../../devel/gettext-tools |
19 | TOOL_DEPENDS+= ${PYPKGPREFIX}-expat-[0-9]*:../../textproc/py-expat | | 19 | TOOL_DEPENDS+= ${PYPKGPREFIX}-expat-[0-9]*:../../textproc/py-expat |
20 | | | 20 | |
21 | USE_CMAKE= yes | | 21 | USE_CMAKE= yes |
22 | USE_LANGUAGES= c c++11 | | 22 | USE_LANGUAGES= c c++17 |
23 | USE_TOOLS+= automake bash bison flex gmake perl pkg-config msgfmt | | 23 | USE_TOOLS+= automake bash bison flex gmake perl pkg-config msgfmt |
24 | | | 24 | |
25 | # Enabling -gdwarf-2 hits GNU ar limits on file size. | | 25 | # Enabling -gdwarf-2 hits GNU ar limits on file size. |
26 | CTF_SUPPORTED= no | | 26 | CTF_SUPPORTED= no |
27 | | | 27 | |
28 | # GCC >= 7.3.0 is required, checked via CMakeLists.txt | | 28 | # GCC >= 8 is required, it no longer builds with lower versions. |
29 | GCC_REQD+= 7 | | 29 | GCC_REQD+= 8 |
30 | USE_GCC_RUNTIME= yes | | 30 | USE_GCC_RUNTIME= yes |
31 | | | 31 | |
| | | 32 | .include "../../mk/bsd.prefs.mk" |
| | | 33 | |
| | | 34 | # This package will link against libstdc++.so from the pkgsrc GCC when the |
| | | 35 | # base OS GCC doesn't meet the minimum requirement. Thus we do this so the |
| | | 36 | # appropriate gcc-libs package will be captured as a dependency, otherwise |
| | | 37 | # binary packages will be broken. See also PR pkg/56604. |
| | | 38 | .if ${OPSYS} == "NetBSD" && ${OPSYS_VERSION} < 099915 |
| | | 39 | USE_PKGSRC_GCC= yes |
| | | 40 | USE_PKGSRC_GCC_RUNTIME= yes |
| | | 41 | .endif |
| | | 42 | |
32 | # Using ld.gold subverts Pkgsrc wrappers, and this package also crashes buggy | | 43 | # Using ld.gold subverts Pkgsrc wrappers, and this package also crashes buggy |
33 | # versions of ld.gold. | | 44 | # versions of ld.gold. |
34 | CMAKE_ARGS+= -DUSE_LD_GOLD=OFF | | 45 | CMAKE_ARGS+= -DUSE_LD_GOLD=OFF |
35 | | | 46 | |
36 | PKGCONFIG_OVERRIDE+= Source/JavaScriptCore/javascriptcoregtk.pc.in | | 47 | PKGCONFIG_OVERRIDE+= Source/JavaScriptCore/javascriptcoregtk.pc.in |
37 | PKGCONFIG_OVERRIDE+= Source/WebKit/gtk/webkit2gtk-web-extension.pc.in | | 48 | PKGCONFIG_OVERRIDE+= Source/WebKit/gtk/webkit2gtk-web-extension.pc.in |
38 | PKGCONFIG_OVERRIDE+= Source/WebKit/gtk/webkit2gtk.pc.in | | 49 | PKGCONFIG_OVERRIDE+= Source/WebKit/gtk/webkit2gtk.pc.in |
39 | | | 50 | |
40 | CMAKE_ARGS+= -DCMAKE_BUILD_TYPE=Release | | 51 | CMAKE_ARGS+= -DCMAKE_BUILD_TYPE=Release |
41 | CMAKE_ARGS+= -DPORT=GTK | | 52 | CMAKE_ARGS+= -DPORT=GTK |
42 | CMAKE_ARGS+= -DENABLE_X11_TARGET=ON | | 53 | CMAKE_ARGS+= -DENABLE_X11_TARGET=ON |
43 | CMAKE_ARGS+= -DENABLE_MINIBROWSER=ON | | 54 | CMAKE_ARGS+= -DENABLE_MINIBROWSER=ON |
44 | CMAKE_ARGS+= -DENABLE_GAMEPAD=OFF | | 55 | CMAKE_ARGS+= -DENABLE_GAMEPAD=OFF |