From 22209ec056a5cda4cae84e5260cbb3aaf5e2039e Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Sat, 10 Sep 2022 20:46:12 -0400 Subject: [PATCH] docs: Add OpenBSD initial documentation --- .../en/latest/developer/build-bsd.markdown | 11 +++ .../install-dependencies-openbsd.markdown | 88 +++++++++++++++++++ 2 files changed, 99 insertions(+) create mode 100644 source/docs/en/latest/developer/install-dependencies-openbsd.markdown diff --git a/source/docs/en/latest/developer/build-bsd.markdown b/source/docs/en/latest/developer/build-bsd.markdown index bccbdb2a..2f73c93c 100644 --- a/source/docs/en/latest/developer/build-bsd.markdown +++ b/source/docs/en/latest/developer/build-bsd.markdown @@ -24,6 +24,7 @@ Dependency installation instructions are available for the following distributio - [FreeBSD](install-dependencies-freebsd.html) - [NetBSD](install-dependencies-netbsd.html) +- [OpenBSD](install-dependencies-openbsd.html) ## Building HandBrake @@ -33,8 +34,18 @@ Clone the HandBrake repository. Build HandBrake. To enable experimental support for Intel Quick Sync Video, append `--enable-qsv`. To build the command line interface only, disable the graphical interface by appending `--disable-gtk`. +For FreeBSD + ./configure --launch-jobs=$(sysctl -n hw.ncpu) --launch +For NetBSD + + ./configure --launch-jobs=$(sysctl -n hw.ncpuonline) --launch + +For OpenBSD + + env AUTOCONF_VERSION=2.71 AUTOMAKE_VERSION=1.16 CC=cc ./configure --launch-jobs=$(sysctl -n hw.ncpuonline) --launch + When complete, you will find `HandBrakeCLI` in the `build` directory. If the graphical interface is enabled, you will also find `ghb` in the `build/gtk/src` directory. Install HandBrake (optional). When installing the graphical interface, icon and desktop files for the Applications menu will be also installed. diff --git a/source/docs/en/latest/developer/install-dependencies-openbsd.markdown b/source/docs/en/latest/developer/install-dependencies-openbsd.markdown new file mode 100644 index 00000000..001341d8 --- /dev/null +++ b/source/docs/en/latest/developer/install-dependencies-openbsd.markdown @@ -0,0 +1,88 @@ +--- +Type: article +Title: Installing dependencies on OpenBSD +Project: HandBrake +Project_URL: https://handbrake.fr/ +Project_Version: Latest +Language: English +Language_Code: en +Authors: [ Brad Smith (brad0) ] +Copyright: 2022 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 OpenBSD +================================= + +The following instructions are for [OpenBSD](https://www.openbsd.org/) 7.1. + +Basic requirements to run commands: + +- sudo (for normal user accounts) + +Dependencies: + +- autoconf 2.71 +- automake 1.16.3 +- bash +- bzip2 +- cmake +- flac +- fribidi +- git +- gmake +- gpatch +- gtar +- harfbuzz +- jansson +- jpeg +- lame +- libass +- libiconv +- libogg +- libsamplerate +- libtheora +- libtool +- libvorbis +- libvpx +- libxml +- m4 +- meson +- nasm +- ninja +- opus +- pkgconf +- python3 +- speex +- x264 +- xz + +Graphical interface dependencies: + +- atk +- cairo +- dbus +- dbus-glib +- desktop-file-utils +- gdk-pixbuf +- gettext-tools +- glib2 +- gstreamer1-plugins-base +- gstreamer1-plugins-libav +- gtk+3 +- intltool +- libnotify +- libvpx +- pango + +Install dependencies. + + sudo pkg_add autoconf-2.71 automake-1.16.3 bash bzip2 cmake flac fribidi git gmake gpatch gtar-- harfbuzz jansson jpeg lame libass libiconv libogg libsamplerate libtheora libtool libvorbis libvpx libxml m4 meson nasm ninja opus pkgconf python3 speex x264 xz + +To build the GTK [GUI](abbr:Graphical User Interface), install the graphical interface dependencies. + + sudo pkg_add atk cairo dbus dbus-glib desktop-file-utils gdk-pixbuf gettext-tools glib2 gstreamer1-plugins-base gstreamer1-plugins-libav gtk+3 intltool libnotify libvpx pango + +OpenBSD is now prepared to build HandBrake. See [Building HandBrake for BSD](build-bsd.html) for further instructions.