From 42db51e2f92b7b543e28625b0da6426c1e5bd169 Mon Sep 17 00:00:00 2001 From: Bert van der Weerd Date: Sat, 5 Aug 2023 13:12:48 +0200 Subject: [PATCH] Hello, world! --- .gitignore | 0 README.freebsd | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 .gitignore create mode 100644 README.freebsd diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e69de29 diff --git a/README.freebsd b/README.freebsd new file mode 100644 index 0000000..2d836c2 --- /dev/null +++ b/README.freebsd @@ -0,0 +1,36 @@ +## build-time dependencies: + +To build the source tarball, we need some packages. + +* As root, do: + +``` +pkg install bash gmake wget gnupg python3 +``` + +The `Makefile` is GNU specific, so we use `gmake` throughout: + +``` +gmake fetch && gmake all +``` + +That should yield the latest source tarball, named like so: + +* `librewolf-$(version)-$(release).source.tar.gz`, and it does have a sha256 checksum file as well. + +The next step in the quest is to actually build librewolf using this tarball. + +* As root: `pkg install py39-pip`. We need to symlink to pip3 for this: + +``` +cd /usr/local/bin +ln -s pip pip3 +``` + +* Install Rust using `pkg install rust` +* Install cbindgen with cargo: `cargo install cbindgen` +* Update your PATH to also search in: `$HOME/.cargo/bin` +* Extract the tarball somewhere and change to it. +* Run: `./mach --no-interactive bootstrap --application-choice=browser` +* Run: `./mach build` +* install libclang, `pkg install llvm`