mirror of
https://github.com/HandBrake/HandBrake-docs.git
synced 2025-12-11 04:35:53 -06:00
docs: Add Building HandBrake for BSD.
This commit is contained in:
parent
e71bb427ee
commit
ba02cd9087
46
source/docs/en/latest/developer/build-bsd.markdown
Normal file
46
source/docs/en/latest/developer/build-bsd.markdown
Normal file
@ -0,0 +1,46 @@
|
||||
---
|
||||
Type: article
|
||||
Title: Building HandBrake for BSD
|
||||
Project: HandBrake
|
||||
Project_URL: https://handbrake.fr/
|
||||
Project_Version: Latest
|
||||
Language: English
|
||||
Language_Code: en
|
||||
Authors: [ Bradley Sepos <bradley@bradleysepos.com> (BradleyS) ]
|
||||
Copyright: 2017 HandBrake Team
|
||||
License: Creative Commons Attribution-ShareAlike 4.0 International
|
||||
License_Abbr: CC BY-SA 4.0
|
||||
License_URL: https://handbrake.fr/docs/license.html
|
||||
---
|
||||
|
||||
Building HandBrake for BSD
|
||||
==========================
|
||||
|
||||
If you have installed a HandBrake package from your distribution or other third-party package repository, please remove it before proceeding. See the section, *Warning about broken third-party builds* on [Where to get HandBrake](../get-handbrake/where-to-get-handbrake.html) for more information.
|
||||
|
||||
## Installing dependencies
|
||||
|
||||
Dependency installation instructions are available for the following distributions.
|
||||
|
||||
- [FreeBSD](install-dependencies-freebsd.html)
|
||||
|
||||
## Building HandBrake
|
||||
|
||||
Clone the HandBrake repository.
|
||||
|
||||
git clone https://github.com/HandBrake/HandBrake.git && cd HandBrake
|
||||
|
||||
Build HandBrake. Since only the command line interface is supported on BSD, the graphical interface is automatically disabled (equivalent to `--disable-gtk`).
|
||||
|
||||
./configure --launch-jobs=$(sysctl -n hw.ncpu) --launch
|
||||
|
||||
When complete, you will find `HandBrakeCLI` in the `build` directory.
|
||||
|
||||
Install HandBrake (optional).
|
||||
|
||||
cd build && sudo make install
|
||||
|
||||
To start over, simply remove the `build` directory.
|
||||
|
||||
bash -c 'if [[ "$(basename $(pwd))" == "build" ]]; then cd ..; fi'
|
||||
rm -rf build
|
||||
@ -0,0 +1,73 @@
|
||||
---
|
||||
Type: article
|
||||
Title: Installing dependencies on FreeBSD
|
||||
Project: HandBrake
|
||||
Project_URL: https://handbrake.fr/
|
||||
Project_Version: Latest
|
||||
Language: English
|
||||
Language_Code: en
|
||||
Authors: [ Bradley Sepos <bradley@bradleysepos.com> (BradleyS) ]
|
||||
Copyright: 2017 HandBrake Team
|
||||
License: Creative Commons Attribution-ShareAlike 4.0 International
|
||||
License_Abbr: CC BY-SA 4.0
|
||||
License_URL: https://handbrake.fr/docs/license.html
|
||||
---
|
||||
|
||||
Installing dependencies on FreeBSD
|
||||
==================================
|
||||
|
||||
The following instructions are for [FreeBSD](https://www.freebsd.org) 11.1.
|
||||
|
||||
Dependencies:
|
||||
|
||||
- autoconf
|
||||
- automake
|
||||
- bash
|
||||
- bzip2
|
||||
- cmake
|
||||
- flac
|
||||
- fontconfig
|
||||
- freetype2
|
||||
- fribidi
|
||||
- git
|
||||
- gcc
|
||||
- gm4
|
||||
- gmake
|
||||
- gpatch
|
||||
- gtar
|
||||
- harfbuzz
|
||||
- jansson
|
||||
- lame (source port)
|
||||
- libass
|
||||
- libiconv
|
||||
- libogg
|
||||
- libsamplerate
|
||||
- libtheora
|
||||
- libtool
|
||||
- libvorbis
|
||||
- libx264
|
||||
- libxml2
|
||||
- opus
|
||||
- pkgconf
|
||||
- python
|
||||
- yasm
|
||||
|
||||
Install the `sudo` package when running as a regular user (not root).
|
||||
|
||||
pkg install sudo
|
||||
|
||||
Install dependencies.
|
||||
|
||||
sudo pkg install autoconf automake bash bzip2 cmake flac fontconfig freetype2 fribidi git gcc gm4 gmake gpatch gtar harfbuzz jansson libass libiconv libogg libsamplerate libtheora libtool libvorbis libx264 libxml2 opus pkgconf python yasm
|
||||
|
||||
Build and install the `lame` source port.
|
||||
|
||||
sudo portsnap fetch
|
||||
bash -c 'if [[ ! -e /usr/ports ]]; then sudo portsnap extract; fi'
|
||||
sudo portsnap update
|
||||
LASTDIR="`pwd`"
|
||||
cd /usr/ports/audio/lame
|
||||
sudo make install
|
||||
cd "LASTDIR"
|
||||
|
||||
FreeBSD is now prepared to build HandBrake. See [Building HandBrake for BSD](build-bsd.html) for further instructions.
|
||||
@ -157,6 +157,8 @@ Table of contents
|
||||
## Developer documentation
|
||||
|
||||
- Building HandBrake
|
||||
- [Building HandBrake for BSD](developer/build-bsd.html)
|
||||
- Installing dependencies on [FreeBSD](developer/install-dependencies-freebsd.html)
|
||||
- [Building HandBrake for Linux](developer/build-linux.html)
|
||||
- Installing dependencies on [Arch](developer/install-dependencies-arch.html) / [CentOS](developer/install-dependencies-centos.html) / [Fedora](developer/install-dependencies-fedora.html) / [Gentoo](developer/install-dependencies-gentoo.html) / [Ubuntu](developer/install-dependencies-ubuntu.html)
|
||||
- [Building HandBrake for Mac](developer/build-mac.html)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user