Changeset View
Changeset View
Standalone View
Standalone View
head/Mk/Uses/gecko.mk
Show All 25 Lines | |||||
.if ${gecko_ARGS:Mlibxul} | .if ${gecko_ARGS:Mlibxul} | ||||
# Compat with older versions | # Compat with older versions | ||||
GECKO= libxul | GECKO= libxul | ||||
GECKO_CONFING?= ${LOCALBASE}/bin/${GECKO}-config | GECKO_CONFING?= ${LOCALBASE}/bin/${GECKO}-config | ||||
XPIDL?= ${LOCALBASE}/lib/${GECKO}/xpidl | XPIDL?= ${LOCALBASE}/lib/${GECKO}/xpidl | ||||
XPIDL_INCL?= `${GECKO_CONFIG} --idlflags` | XPIDL_INCL?= `${GECKO_CONFIG} --idlflags` | ||||
BUILD_DEPENDS+= libxul>=38:${PORTSDIR}/www/libxul | BUILD_DEPENDS+= libxul>=38:www/libxul | ||||
RUN_DEPENDS+= libxul>=38:${PORTSDIR}/www/libxul | RUN_DEPENDS+= libxul>=38:www/libxul | ||||
.elif ${gecko_ARGS:Mfirefox} | .elif ${gecko_ARGS:Mfirefox} | ||||
_GECKO_DEFAULT_VERSION= 38 | _GECKO_DEFAULT_VERSION= 38 | ||||
_GECKO_VERSIONS= 38 41 | _GECKO_VERSIONS= 38 41 | ||||
_GECKO_TYPE= firefox | _GECKO_TYPE= firefox | ||||
# Dependence lines for different Firefox versions | # Dependence lines for different Firefox versions | ||||
38_DEPENDS= ${LOCALBASE}/lib/firefox/firefox:${PORTSDIR}/www/firefox-esr | 38_DEPENDS= ${LOCALBASE}/lib/firefox/firefox:www/firefox-esr | ||||
41_DEPENDS= ${LOCALBASE}/lib/firefox/firefox:${PORTSDIR}/www/firefox | 41_DEPENDS= ${LOCALBASE}/lib/firefox/firefox:www/firefox | ||||
.if exists(${LOCALBASE}/bin/firefox) | .if exists(${LOCALBASE}/bin/firefox) | ||||
_GECKO_INSTALLED_VER!= ${LOCALBASE}/bin/firefox --version 2>/dev/null | _GECKO_INSTALLED_VER!= ${LOCALBASE}/bin/firefox --version 2>/dev/null | ||||
_GECKO_INSTALLED_VER:= ${_GECKO_INSTALLED_VER:M[0-9][0-9]*:C/([0-9][0-9]).*/\1/g} | _GECKO_INSTALLED_VER:= ${_GECKO_INSTALLED_VER:M[0-9][0-9]*:C/([0-9][0-9]).*/\1/g} | ||||
.endif | .endif | ||||
.elif ${gecko_ARGS:Mseamonkey} | .elif ${gecko_ARGS:Mseamonkey} | ||||
_GECKO_DEFAULT_VERSION= 33 | _GECKO_DEFAULT_VERSION= 33 | ||||
_GECKO_VERSIONS= 33 | _GECKO_VERSIONS= 33 | ||||
_GECKO_TYPE= seamonkey | _GECKO_TYPE= seamonkey | ||||
.if exists(${LOCALBASE}/bin/seamonkey) | .if exists(${LOCALBASE}/bin/seamonkey) | ||||
_GECKO_INSTALLED_VER!= ${LOCALBASE}/bin/seamonkey --version 2>/dev/null | _GECKO_INSTALLED_VER!= ${LOCALBASE}/bin/seamonkey --version 2>/dev/null | ||||
_GECKO_INSTALLED_VER:= ${_GECKO_INSTALLED_VER:M[0-9]*:C/[0-9].([0-9][0-9]).*/\1/g} | _GECKO_INSTALLED_VER:= ${_GECKO_INSTALLED_VER:M[0-9]*:C/[0-9].([0-9][0-9]).*/\1/g} | ||||
.endif | .endif | ||||
# Dependence lines for different Seamonkey versions | # Dependence lines for different Seamonkey versions | ||||
33_DEPENDS= ${LOCALBASE}/lib/seamonkey/seamonkey:${PORTSDIR}/www/seamonkey | 33_DEPENDS= ${LOCALBASE}/lib/seamonkey/seamonkey:www/seamonkey | ||||
.elif ${gecko_ARGS:Mthunderbird} | .elif ${gecko_ARGS:Mthunderbird} | ||||
_GECKO_DEFAULT_VERSION= 38 | _GECKO_DEFAULT_VERSION= 38 | ||||
_GECKO_VERSIONS= 38 | _GECKO_VERSIONS= 38 | ||||
_GECKO_TYPE= thunderbird | _GECKO_TYPE= thunderbird | ||||
.if exists(${LOCALBASE}/bin/thunderbird) | .if exists(${LOCALBASE}/bin/thunderbird) | ||||
_GECKO_INSTALLED_VER!= ${LOCALBASE}/bin/thunderbird --version 2>/dev/null | _GECKO_INSTALLED_VER!= ${LOCALBASE}/bin/thunderbird --version 2>/dev/null | ||||
_GECKO_INSTALLED_VER:= ${_GECKO_INSTALLED_VER:M[0-9][0-9]*:C/([0-9][0-9]).*/\1/g} | _GECKO_INSTALLED_VER:= ${_GECKO_INSTALLED_VER:M[0-9][0-9]*:C/([0-9][0-9]).*/\1/g} | ||||
.endif | .endif | ||||
# Dependence lines for different Thunderbird versions | # Dependence lines for different Thunderbird versions | ||||
38_DEPENDS= ${LOCALBASE}/lib/thunderbird/thunderbird:${PORTSDIR}/mail/thunderbird | 38_DEPENDS= ${LOCALBASE}/lib/thunderbird/thunderbird:mail/thunderbird | ||||
.else | .else | ||||
IGNORE= Unknown type of gecko dependency you may specify either libxul, firefox, seamonkey or thunderbird | IGNORE= Unknown type of gecko dependency you may specify either libxul, firefox, seamonkey or thunderbird | ||||
.endif | .endif | ||||
.if defined(_GECKO_TYPE) | .if defined(_GECKO_TYPE) | ||||
.if ${_GECKO_VERSION:M*+} | .if ${_GECKO_VERSION:M*+} | ||||
_GECKO_MIN_VERSION:= ${_GECKO_VERSION:S/+//} | _GECKO_MIN_VERSION:= ${_GECKO_VERSION:S/+//} | ||||
▲ Show 20 Lines • Show All 41 Lines • Show Last 20 Lines |