2020-11-17 03:19:36 +00:00
# $OpenBSD: Makefile,v 1.132 2020/11/17 03:19:38 jeremy Exp $
2016-09-01 08:27:17 +00:00
# patches/patch-Source_JavaScriptCore_javascriptcoregtk_pc_in
2017-09-15 07:43:42 +00:00
# patches/patch-Source_WebKit_gtk_webkit2gtk-web-extension_pc_in
# patches/patch-Source_WebKit_gtk_webkit2gtk_pc_in
2016-09-01 08:27:17 +00:00
USE_WXNEEDED = Yes
2015-01-16 12:56:16 +00:00
2017-12-14 08:14:33 +00:00
BROKEN-alpha = GCC 5.0.0 is required to build WebKitGTK+, use a newer GCC version or clang
BROKEN-hppa = GCC 5.0.0 is required to build WebKitGTK+, use a newer GCC version or clang
2020-05-07 14:24:53 +00:00
BROKEN-arm = JavaScriptCore/runtime/MachineContext.h, various sigcontext-related
2014-09-30 08:25:27 +00:00
PORTROACH = limitw:1,even
COMMENT = GTK+ port of the WebKit rendering engine
2020-10-24 09:22:18 +00:00
V = 2.30.2
2020-11-17 03:19:36 +00:00
REVISION = 2
2014-09-30 08:25:27 +00:00
DISTNAME = webkitgtk-${ V }
PKGNAME = webkitgtk4-${ V }
EXTRACT_SUFX = .tar.xz
API = 4.0
SUBST_VARS = API
2018-01-24 23:36:24 +00:00
DPB_PROPERTIES = parallel
2014-09-30 08:25:27 +00:00
2020-09-13 10:28:44 +00:00
SHARED_LIBS += javascriptcoregtk-${ API } 3.3 # 18.13.3
SHARED_LIBS += webkit2gtk-${ API } 3.3 # 37.37.2
2014-09-30 08:25:27 +00:00
CATEGORIES = www
2019-03-05 16:24:23 +00:00
HOMEPAGE = https://webkitgtk.org/
2014-09-30 08:25:27 +00:00
2017-11-05 10:23:48 +00:00
MAINTAINER = Antoine Jacoutot <ajacoutot@openbsd.org>
2014-09-30 08:25:27 +00:00
# LGPLv2 and BSD
2019-07-12 20:50:46 +00:00
PERMIT_PACKAGE = Yes
2014-09-30 08:25:27 +00:00
2018-03-19 08:13:15 +00:00
WANTLIB += ${ COMPILER_LIBCXX } EGL GL X11 Xcomposite Xdamage Xrender
2018-05-15 06:51:59 +00:00
WANTLIB += Xt atk-1.0 c cairo cairo-gobject enchant-2 fontconfig
SECURITY update to webkitgtk4-2.20.5.
CVE-2018-4261, CVE-2018-4262, CVE-2018-4263, CVE-2018-4264, CVE-2018-4265,
CVE-2018-4266, CVE-2018-4267, CVE-2018-4270, CVE-2018-4272, CVE-2018-4273,
CVE-2018-4278, CVE-2018-4284.
with help from robert@ who pointed again how dumb I was... thanks ;-)
2018-08-20 12:45:08 +00:00
WANTLIB += freetype gcrypt gdk-3 gdk_pixbuf-2.0 gio-2.0 glib-2.0
WANTLIB += gmodule-2.0 gobject-2.0 gstapp-1.0 gstaudio-1.0 gstbase-1.0
WANTLIB += gstfft-1.0 gstgl-1.0 gstpbutils-1.0 gstreamer-1.0 gsttag-1.0
WANTLIB += gstvideo-1.0 gtk-3 harfbuzz harfbuzz-icu hyphen icudata
WANTLIB += icui18n icuuc intl jpeg m notify pango-1.0 pangocairo-1.0
2019-05-17 16:45:25 +00:00
WANTLIB += openjp2 png secret-1 soup-2.4 sqlite3 tasn1 webp
2019-03-14 09:48:28 +00:00
WANTLIB += webpdemux woff2dec xml2 xslt z
2014-09-30 08:25:27 +00:00
2019-03-05 16:24:23 +00:00
MASTER_SITES = https://webkitgtk.org/releases/
2014-09-30 08:25:27 +00:00
MODULES = devel/cmake \
lang/python \
lang/ruby \
x11/gnome
2017-12-14 08:14:33 +00:00
# gcc>=5.0.0 or clang
COMPILER = base-clang ports-clang ports-gcc
2014-09-30 08:25:27 +00:00
MODRUBY_RUNDEP = No
MODPY_RUNDEP = No
2018-06-11 22:55:55 +00:00
MODPY_ADJ_FILES = Tools/glib/generate-inspector-gresource-manifest.py
2014-09-30 08:25:27 +00:00
MODGNOME_TOOLS = gobject-introspection
2020-09-13 10:28:44 +00:00
# XXX disable DEBUG_PACKAGES because libWebCoreGTK.a is too big (4.1G)
# ld.lld: error: lib/libWebCoreGTK.a:
# could not get the member for symbol WebCore::WorkerThread::runEventLoop():
# truncated or malformed archive (terminator characters in archive member "ar" not the correct "`\n" values for the archive member header for 12__retguard_29)
#DEBUG_PACKAGES = ${BUILD_PACKAGES}
2019-11-12 20:20:35 +00:00
2014-10-02 05:46:22 +00:00
NO_TEST = Yes
USE_GMAKE = Yes
LIBTOOL_FLAGS = --tag= disable-static
2014-09-30 08:25:27 +00:00
BUILD_DEPENDS = devel/bison \
2019-05-20 22:15:00 +00:00
devel/gettext,-tools \
2014-09-30 08:25:27 +00:00
devel/gperf \
devel/libexecinfo \
geo/geoclue2
RUN_DEPENDS = geo/geoclue2
2018-03-19 08:13:15 +00:00
LIB_DEPENDS = archivers/woff2 \
devel/harfbuzz,-icu \
2015-03-27 18:38:45 +00:00
devel/libnotify \
2014-09-30 08:25:27 +00:00
devel/libsoup \
graphics/libwebp \
2019-03-14 09:48:28 +00:00
graphics/openjp2 \
2018-04-10 11:38:33 +00:00
multimedia/gstreamer1/plugins-base \
2018-05-15 06:51:59 +00:00
textproc/enchant2 \
2015-09-23 06:06:11 +00:00
textproc/hyphen \
2014-09-30 08:25:27 +00:00
textproc/libxslt \
x11/gnome/libsecret \
x11/gtk+3
2020-04-25 20:04:50 +00:00
CONFIGURE_ENV = WK_USE_CCACHE = NO
2014-10-02 05:38:56 +00:00
CONFIGURE_ARGS = -DPORT= GTK \
-DCMAKE_EXE_LINKER_FLAGS= " ${ LDFLAGS } " \
2020-09-13 10:28:44 +00:00
-DCMAKE_SHARED_LINKER_FLAGS= " ${ LDFLAGS } " \
-DUSE_SYSTEMD= OFF
2015-12-20 09:35:18 +00:00
2014-10-02 05:38:56 +00:00
# sync with Source/JavaScriptCore/assembler/MacroAssembler.h
2017-09-09 19:25:29 +00:00
. i f ${MACHINE_ARCH} != "aarch64" && ${ MACHINE_ARCH } != "amd64" && \
${ MACHINE_ARCH } != "arm" && ${ MACHINE_ARCH } != "i386" && \
2019-03-05 16:18:49 +00:00
${ MACHINE_ARCH } != "mips64" && ${ MACHINE_ARCH } != "mips64el"
2014-10-02 05:38:56 +00:00
# #error "The MacroAssembler is not supported on this platform."
CONFIGURE_ARGS += -DENABLE_JIT= OFF
CONFIGURE_ARGS += -DENABLE_LLINT_C_LOOP= ON
. e n d i f
2019-09-24 06:56:43 +00:00
# XXX fatal error: 'X11/Xlib.h' file not found
CXXFLAGS += -I${ X11BASE } /include
2017-09-09 19:25:29 +00:00
. i n c l u d e < b s d . p o r t . a r c h . m k >
# ld.lld does not have this option
# save memory on 32bit arches
.if !${PROPERTIES : Mlld } && ${MACHINE_ARCH } != "amd 64"
2014-10-12 16:08:02 +00:00
LDFLAGS += -Wl,--no-keep-memory
. e n d i f
2019-03-25 14:03:49 +00:00
. i f ${MACHINE_ARCH} = = "powerpc"
2020-11-11 21:27:03 +00:00
# XXX fix colors being off, it would be nice to fix the code
CONFIGURE_ARGS += -DENABLE_GRAPHICS_CONTEXT_GL= OFF
2019-03-25 14:03:49 +00:00
LDFLAGS += -Wl,--relax
2020-11-11 21:27:03 +00:00
PATCH_LIST = patch-* powerpc-patch-*
2019-03-25 14:03:49 +00:00
. e n d i f
2014-09-30 08:25:27 +00:00
post-extract :
ln -sf ${ MODPY_BIN } ${ WRKDIR } /bin/python
ln -sf ${ RUBY } ${ WRKDIR } /bin/ruby
pre-configure :
2016-04-19 06:05:36 +00:00
${ SUBST_CMD } ${ WRKSRC } /Source/cmake/WebKitCommon.cmake \
2017-09-15 07:43:42 +00:00
${ WRKSRC } /Source/WebKit/Shared/Plugins/unix/PluginSearchPath.cpp
2014-09-30 08:25:27 +00:00
. i n c l u d e < b s d . p o r t . m k >