about [UPDATING (4 days)] [MOVED (15 hours)] [vuxml (3 hours)]summaryrefslograw-logtreecommitdiffstats
path: root/www/librewolf/Makefile [up]
Last 15 commits to file "www/librewolf/Makefile" in the last year: [ Last 15 commits to this file | All commits to this file ]
 
Commit messageAuthorDateFilesLines
* [ file ]www/librewolf: Update 160.0.1-1 => 161.0-1Martin Filla2026-11-30 02:40:43 +0000 (34 hours)1-2/+5
* [ file ]www/librewolf: Update 160.0-1 => 160.0.1-1Martin Filla2026-11-18 22:06:12 +0000 (13 days)1-1/+1
* [ file ]www/librewolf: Update 159.0.1-1 => 160.0-1Martin Filla2026-11-11 20:36:26 +00001-2/+2
* [ file ]www/firefox www/firefox-esr www/librewolf www/waterfox mail/thunderbird mail/thunderbird-esr: fix build and rendering on powerpc64Piotr Kubaj2026-11-06 23:52:17 +00001-5/+8
* [ file ]www/librewolf: Update 159.0-1 => 159.0.1-1Martin Filla2026-11-06 04:16:45 +00001-3/+2
* [ file ]www/librewolf: Update 158.0.1-2 => 159.0-1Martin Filla2026-10-28 19:10:45 +00001-3/+3
* [ file ]www/librewolf: Update 158.0-1 => 158.0.1-2Martin Filla2026-10-24 00:28:47 +01001-3/+2
* [ file ]www/librewolf: Update 157.0.1-1 => 158.0-1Martin Filla2026-10-18 22:48:13 +01001-2/+2
* [ file ]lang/rust: Bump revisions after 1.99.0Mikael Urankar2026-10-14 08:38:19 +01001-0/+1
* [ file ]www/librewolf: Update 157.0-1 => 157.0.1-1Martin Filla2026-10-11 14:54:56 +01001-1/+9
* [ file ]www/librewolf: Update 156.0-1 => 157.0-1Martin Filla2026-10-05 02:15:49 +01001-2/+2
* [ file ]www/librewolf: Update 155.0.1-1 => 156.0-1Martin Filla2026-09-17 05:09:56 +01001-2/+3
* [ file ]www/librewolf: Update 154.0.1-3 => 155.0.1-1Martin Filla2026-09-14 21:38:02 +01001-4/+3
* [ file ]lang/rust: Bump revisions after 1.98.1Mikael Urankar2026-09-08 11:38:00 +01001-1/+1
* [ file ]devel/wasi-libc: bump consumer PORTREVISIONs after updateCharlie Li2026-08-30 04:10:51 +01001-0/+1
[...]


commit: (<title> <author> <date> etc.)
blob: e34653f1adac8155a62093e6b068cec1e95dfd32 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
PORTNAME=	librewolf
DISTVERSION=	161.0
LWPATCH=	-1
DISTVERSIONSUFFIX=	${LWPATCH}.source
CATEGORIES=	www wayland
MASTER_SITES=	https://librewolf.dev/api/packages/librewolf/generic/librewolf-source/${DISTVERSION}${LWPATCH}/ \
		LOCAL/vvd

MAINTAINER=	freebsd@sysctl.cz
COMMENT=	Custom version of Firefox, focused on privacy, security and freedom
WWW=		https://librewolf.net/

NOT_FOR_ARCHS=          i386
NOT_FOR_ARCHS_REASON=   fails to build: rust needs more address space than platform can provide

LICENSE=	MPL20
LICENSE_FILE=	${WRKSRC}/LICENSE

BUILD_DEPENDS=	nspr>=4.32:devel/nspr \
		nss>=3.133:security/nss \
		libevent>=2.1.8:devel/libevent \
		harfbuzz>=10.1.0:print/harfbuzz \
		graphite2>=1.3.14:graphics/graphite2 \
		png>=1.6.45:graphics/png \
		dav1d>=1.0.0:multimedia/dav1d \
		libvpx>=1.15.0:multimedia/libvpx \
		${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/py-sqlite3@${PY_FLAVOR} \
		v4l_compat>0:multimedia/v4l_compat \
		nasm:devel/nasm \
		yasm:devel/yasm \
		zip:archivers/zip

USE_GECKO=	gecko
USE_MOZILLA=	-icu -sqlite
# work around bindgen not finding ICU, e.g.
# dist/include/mozilla/intl/ICU4CGlue.h:8:10: fatal error: 'unicode/uenum.h' file not found, err: true
CONFIGURE_ENV+=	BINDGEN_CFLAGS="-I${LOCALBASE}/include"
CONFIGURE_ENV+=	MOZ_REQUIRE_SIGNING=""

WRKSRC=		${WRKDIR}/${PORTNAME}-${DISTVERSION}${LWPATCH}

FIREFOX_ICON=		${MOZILLA}.png
FIREFOX_ICON_SRC=	${PREFIX}/lib/${MOZILLA}/browser/chrome/icons/default/default48.png

MOZILLA_CAP=	${MOZILLA:C/^(.).*/\1/:tu}${MOZILLA:C/^.//}

MOZ_EXPORT=	MOZ_TELEMETRY_REPORTING="" \
		MOZILLA_OFFICIAL="1" \
		MOZ_OFFICIAL_BRANDING="1" \
		MOZ_APP_DISPLAYNAME="${MOZILLA_CAP}" \
		MOZ_APP_NAME="${MOZILLA}"

MOZ_OPTIONS=	--enable-application=browser \
		--allow-addon-sideload \
		--disable-crashreporter \
		--disable-debug \
		--disable-default-browser-agent \
		--disable-tests \
		--disable-updater \
		--enable-hardening \
		--enable-optimize \
		--enable-release \
		--with-app-name=${MOZILLA} \
		--with-branding=browser/branding/${MOZILLA} \
		--with-unsigned-addon-scopes=app,system \
		--enable-bootstrap \
		--with-l10n-base=${WRKSRC}/lw/l10n \
		MOZ_CRASHREPORTER=0 \
		MOZ_DATA_REPORTING=0

.include "${.CURDIR}/../../www/firefox/Makefile.options"

.include <bsd.port.options.mk>

.if ${ARCH} != powerpc64
BUILD_DEPENDS+=	${LOCALBASE}/share/wasi-sysroot/lib/wasm32-wasip1/libc++abi.a:devel/wasi-libcxx${LLVM_VERSION} \
		${LOCALBASE}/share/wasi-sysroot/lib/wasm32-wasip1/libc.a:devel/wasi-libc@${LLVM_VERSION} \
		wasi-compiler-rt${LLVM_VERSION}>0:devel/wasi-compiler-rt${LLVM_VERSION}
MOZ_OPTIONS+=	--with-wasi-sysroot=${LOCALBASE}/share/wasi-sysroot
.endif

.if ${ARCH} == i386 && ${MACHINE_CPU:Msse2}
# is not enabled on i386 by default
# Fix for error: always_inline function '_mm_setzero_si64' requires target feature 'sse2'
CFLAGS_i386+=	-msse2
.endif

.if ${ARCH} == amd64
MOZ_OPTIONS+=	--enable-rust-simd
.endif

post-extract:
	@${SED} -e 's|@FIREFOX_ICON@|${FIREFOX_ICON:R}|;s|@MOZILLA@|${MOZILLA}|' \
		-e 's|firefox|${MOZILLA}|' \
		-e 's|Firefox|${MOZILLA_CAP}|' \
		<${.CURDIR}/../firefox/files/firefox.desktop.in >${WRKDIR}/${MOZILLA_EXEC_NAME}.desktop

post-patch:
	@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
		${WRKSRC}/browser/app/nsBrowserApp.cpp
	@${RM} ${WRKSRC}/mozconfig
.if ${ARCH} == i386
# mtu bindings were generated on amd64 and assert amd64 struct sizes and
# alignment; the struct definitions themselves are correct on i386
	@${SED} -i '' -e '/^#\[allow(clippy::unnecessary_operation/,/^};/d' \
		${WRKSRC}/third_party/rust/mtu/src/bindings/freebsd.rs
	@${SED} -i '' -e 's|"src/bindings/freebsd.rs":"[0-9a-f]*",||' \
		${WRKSRC}/third_party/rust/mtu/.cargo-checksum.json
.endif

post-install:
	${INSTALL_DATA} ${WRKDIR}/${MOZILLA_EXEC_NAME}.desktop ${STAGEDIR}${DESKTOPDIR}
	${MKDIR} ${STAGEDIR}${PREFIX}/share/pixmaps
	${LN} -sf ${FIREFOX_ICON_SRC} ${STAGEDIR}${PREFIX}/share/pixmaps/${FIREFOX_ICON}

.include <bsd.port.mk>
This site is maintained by Jamie Landeg-Jones <jamie@catflap.org>, and is not an official FreeBSD project, nor is it endorsed by the FreeBSD team.