summaryrefslogtreecommitdiff
path: root/Mk/bsd.gecko.mk
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2018-10-20 21:39:35 +0000
committerJan Beich <jbeich@FreeBSD.org>2018-10-20 21:39:35 +0000
commitf4b5e313011a3ac0719e9d24a23c189d972fe7a2 (patch)
treea7994a66e69c5e3eab3340eea1758ff908f5350e /Mk/bsd.gecko.mk
parentgraphics/mesa-dri: don't forbid WAYLAND on non-x86 (diff)
gecko: expose Wayland support
Notes
Notes: svn path=/head/; revision=482626
Diffstat (limited to 'Mk/bsd.gecko.mk')
-rw-r--r--Mk/bsd.gecko.mk15
1 files changed, 14 insertions, 1 deletions
diff --git a/Mk/bsd.gecko.mk b/Mk/bsd.gecko.mk
index 15cdf441a063..dd4b07fc85f0 100644
--- a/Mk/bsd.gecko.mk
+++ b/Mk/bsd.gecko.mk
@@ -285,9 +285,11 @@ MOZ_EXPORT+= MOZ_GOOGLE_API_KEY=AIzaSyBsp9n41JLW8jCokwn7vhoaMejDFRd1mp8
.if ${PORT_OPTIONS:MGTK2}
MOZ_TOOLKIT= cairo-gtk2
+.elif ${PORT_OPTIONS:MWAYLAND}
+MOZ_TOOLKIT= cairo-gtk3-wayland
.endif
-.if ${MOZ_TOOLKIT:Mcairo-gtk3}
+.if ${MOZ_TOOLKIT:Mcairo-gtk3*}
BUILD_DEPENDS+= gtk3>=3.14.6:x11-toolkits/gtk30
USE_GNOME+= gdkpixbuf2 gtk20 gtk30
.else # gtk2, cairo-gtk2
@@ -574,6 +576,17 @@ gecko-moz-pis-patch:
@${MOZCONFIG_SED} < ${FILESDIR}/${moz} > ${WRKDIR}/${moz}
.endfor
+pre-configure: gecko-pre-configure
+
+gecko-pre-configure:
+.if ${PORT_OPTIONS:MWAYLAND}
+# .if !exists() evaluates too early before gtk3 has a chance to be installed
+ @if ! pkg-config --exists gtk+-wayland-3.0; then \
+ ${ECHO_MSG} "${PKGNAME}: Needs gtk3 with WAYLAND support enabled."; \
+ ${FALSE}; \
+ fi
+.endif
+
pre-install: gecko-moz-pis-pre-install
post-install-script: gecko-create-plist