1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-29 05:38:00 +00:00
freebsd-ports/Mk/Uses/gecko.mk
Jan Beich 94ba015244 www/firefox: update to 65.0
Backport a fix for WebRender on Wayland e.g.,

$ GDK_BACKEND=wayland MOZ_WEBRENDER=1 MOZ_ACCELERATED=1 firefox https://example.com/

Changes:	https://www.mozilla.org/firefox/65.0/releasenotes/
PR:		233791
Security:	b1f7d52f-fc42-48e8-8403-87d4c9d26229
MFH:		2019Q1
Differential Revision:	https://reviews.freebsd.org/D18432
2019-01-21 23:03:45 +00:00

113 lines
2.9 KiB
Makefile

# $FreeBSD$
#
# Handle dependency of different gecko based applications
#
# MAINTAINER: gecko@FreeBSD.org
#
# Feature: gecko
# Usage: USES=gecko or USES=gecko:ARGS
# Valid ARGS: firefox, seamonkey, thunderbird
# The following arguments are available
# - build: also add the dependency as a build
# dependency
# - [0-9][0-9][+]?: a version optionnally
# followed by a +
#
.if !defined(_INCLUDE_USES_GECKO_MK)
_INCLUDE_USES_GECKO_MK= yes
_GECKO_VERSION= ${gecko_ARGS:M[0-9][0-9]*}
.if ${gecko_ARGS:Mfirefox}
_GECKO_DEFAULT_VERSION= 60
_GECKO_VERSIONS= 60 65
_GECKO_TYPE= firefox
# Dependence lines for different Firefox versions
60_DEPENDS= ${LOCALBASE}/lib/firefox/firefox:www/firefox-esr
65_DEPENDS= ${LOCALBASE}/lib/firefox/firefox:www/firefox
.if exists(${LOCALBASE}/bin/firefox)
_GECKO_INSTALLED_VER!= ${PKG_QUERY} %v firefox firefox-esr
_GECKO_INSTALLED_VER:= ${_GECKO_INSTALLED_VER:C/\..*//}
.endif
.elif ${gecko_ARGS:Mseamonkey}
_GECKO_DEFAULT_VERSION= 49
_GECKO_VERSIONS= 49
_GECKO_TYPE= seamonkey
.if exists(${LOCALBASE}/bin/seamonkey)
_GECKO_INSTALLED_VER!= ${PKG_QUERY} %v seamonkey
_GECKO_INSTALLED_VER:= ${_GECKO_INSTALLED_VER:C/[0-9]*\.//:C/\..*//}
.endif
# Dependence lines for different Seamonkey versions
49_DEPENDS= ${LOCALBASE}/lib/seamonkey/seamonkey:www/seamonkey
.elif ${gecko_ARGS:Mthunderbird}
_GECKO_DEFAULT_VERSION= 60
_GECKO_VERSIONS= 60
_GECKO_TYPE= thunderbird
.if exists(${LOCALBASE}/bin/thunderbird)
_GECKO_INSTALLED_VER!= ${PKG_QUERY} %v thunderbird
_GECKO_INSTALLED_VER:= ${_GECKO_INSTALLED_VER:C/\..*//}
.endif
# Dependence lines for different Thunderbird versions
60_DEPENDS= ${LOCALBASE}/lib/thunderbird/thunderbird:mail/thunderbird
.else
IGNORE= Unknown type of gecko dependency you may specify either firefox, seamonkey or thunderbird
.endif
.if defined(_GECKO_TYPE)
.if ${_GECKO_VERSION:M*+}
_GECKO_MIN_VERSION:= ${_GECKO_VERSION:S/+//}
_GECKO_WANTED_VERSIONS:= ${_GECKO_DEFAULT_VERSION}
.endif
.if ${_GECKO_VERSION:M[0-9][0-9]}
_GECKO_WANTED_VERSIONS:= ${_GECKO_VERSION:M[0-9][0-9]}
.endif
_GECKO_WANTED_VERSIONS?= ${_GECKO_DEFAULT_VERSION}
.if defined(_GECKO_MIN_VERSION)
. for _v in ${_GECKO_VERSIONS}
. if ${_GECKO_MIN_VERSION} <= ${_v}
_GECKO_WANTED_VERSIONS+= ${_v}
. endif
. endfor
.endif
.for _v in ${_GECKO_WANTED_VERSIONS:O:u}
_GECKO_HIGHEST_VERSION:= ${_v}
.if defined(_GECKO_INSTALLED_VER) && ${_GECKO_INSTALLED_VER} == ${_v}
_GECKO_WANTED_VERSION:= ${_v}
.endif
.endfor
.if !defined(_GECKO_WANTED_VERSION)
.if defined(_GECKO_INSTALLED_VER)
IGNORE= cannot install: ${_GECKO_TYPE} versions mismatch: ${_GECKO_TYPE}-${_GECKO_INSTALLED_VER} is installed and wanted version is ${_GECKO_TYPE}-${_GECKO_VERSION:M[0-9][0-9]}
.else
_GECKO_WANTED_VERSION:= ${_GECKO_HIGHEST_VERSION}
.endif
.endif
.if ${gecko_ARGS:Mbuild}
BUILD_DEPENDS+= ${${_GECKO_WANTED_VERSION}_DEPENDS}
.endif
RUN_DEPENDS+= ${${_GECKO_WANTED_VERSION}_DEPENDS}
.endif
.endif