diff options
| author | wsg <wsg@gacbox.my.domain> | 2018-02-09 18:03:26 +0100 |
|---|---|---|
| committer | wsg <wsg@gacbox.my.domain> | 2018-02-09 18:03:26 +0100 |
| commit | 599a6618b110f39ba07a4825d7ca416fac2d30e9 (patch) | |
| tree | 87217dc866c558a9b0cdc1e23b85ed220b3decee | |
| parent | 9241a79bbf159ba0b079ebdbfa8ad1b3e69cf8c0 (diff) | |
Enable building in OpenBSD
| -rwxr-xr-x | server/autobuild | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/server/autobuild b/server/autobuild index bc33ba7..49743d9 100755 --- a/server/autobuild +++ b/server/autobuild @@ -244,6 +244,28 @@ os_freebsd() { return 0 } +# OpenBSD +os_openbsd() { + if ! which uname >/dev/null 2>&1 || [ "$(uname -s)" != "OpenBSD" ]; then + return 1 + fi + PKGCMD=pkg_add + PKGARGS="-uU" + PACKAGES="autoconf-2.69p2 automake-1.15.1 poppler poppler-utils png" + export AUTOCONF_VERSION=2.69 + export AUTOMAKE_VERSION=1.15 + if whereis clang++ ;then + export CXX=clang++ + elif whereis eg++ ;then + export CXX=eg++ + else + export CXX=eg++ + PACKAGES="${PACKAGES} g++" + fi + export CXXFLAGS="-std=c++11 -I/usr/local/include/poppler -I/usr/local/include" + return 0 +} + # Fedora os_fedora() { if ! [ -e "/etc/fedora-release" ]; then |
