Skip to content

Building on FreeBSD

Keto edited this page May 22, 2021 · 9 revisions

Building on FreeBSD, much like Linux support, is made possible by cctools-port.

To setup Procursus on FreeBSD

  1. Install dependencies

    You can install dependencies with pkg.

     $ sudo pkg autoconf automake bash cmake coreutils docbook-xsl dpkg fakeroot findutils gettext git gmake gnugrep gnupg gsed gtar libtool ncurses openssl patch perl5 pkgconf po4a python39 wget zstd
    

    You'll also need to install triehash.

     $ wget -O triehash https://raw.githubusercontent.com/julian-klode/triehash/main/triehash.pl
     $ gsed -i 's@#!/usr/bin/perl -w@#!/usr/bin/env perl -w@g' triehash
     $ sudo mv triehash /usr/local/bin
    
  2. Setup your iOS toolchain

    This script will setup your SDKs, cctools-port with your iOS toolchain, and other dependencies needed.

    To run the script

     $ bash procursus-utils-fbsd.sh
    

    It's recommended that you add this script to your shells' config file, so that it's sourced on every enviorment on login.

     $ echo "source procursus-utils-fbsd.sh" > .profile
    

    Then, reload your shell or reload your shells' config file.

     $ source procursus-utils-fbsd.sh
    
  3. Build!

    To check whether you did everything correctly, attempt to build bash.

     $ make bash [OPTIONS]
    

    If the build is successful, congrats!. You should now be able to compile packages from Procursus.

    Similar to other supported platforms, it's likely that some packages (particularly those that need Go, Python, and/or NodeJS) will fail to compile. You'll need a macOS build system if this is the case.

Contents

Clone this wiki locally