Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for FreeBSD build #501

Merged
merged 5 commits into from
Feb 5, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,51 @@ jobs:
cat unicon-config.log
cat unicon-features.log

FreeBSD:
runs-on: ubuntu-latest
name: FreeBSD

steps:
- uses: actions/checkout@v4
- name: Start FreeBSD VM
id: vm
uses: vmactions/freebsd-vm@v1
with:
usesh: true # default shell is csh, switch to sh
prepare: |
pkg install -y -f autoconf gmake lang/gcc git

- name: Configure
shell: freebsd {0}
run: |
cd $GITHUB_WORKSPACE
git config --global --add safe.directory $GITHUB_WORKSPACE
./configure

- name: Make
shell: freebsd {0}
run: cd $GITHUB_WORKSPACE && gmake

- name: HtmlDoc
shell: freebsd {0}
run: cd $GITHUB_WORKSPACE && gmake htmldoc

- name: Test
shell: freebsd {0}
run: cd $GITHUB_WORKSPACE && gmake Test

- name: TestReport
shell: freebsd {0}
run: cd $GITHUB_WORKSPACE && gmake -C tests Report

- name: Summary
shell: freebsd {0}
run: |
cd $GITHUB_WORKSPACE
cat unicon-config.log
cat unicon-features.log


DebianPkg:
runs-on: ${{ matrix.cfg.os }}
name: ${{ matrix.cfg.name }}
Expand Down
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ dnf install libjpeg-turbo-devel libpng-devel libX11-devel mesa-libGL-devel mesa-
Go into the Unicon directory and run:
```
./configure
make
make -j
```
After that you can add `unicon/bin` to the $PATH environment variable or install Unicon instead:
```
Expand All @@ -115,6 +115,19 @@ explicitly set the compiler as follows:
If you want access to the graphics facilities of Unicon, you also need to download
and install the XQuartz package from https://www.xquartz.org/.

### *BSD

installl build dependencies. Make sure to use GNU `gmake` when building.
```
pkg install -y -f autoconf gmake lang/gcc git
```

Configure, make, and optionally install unicon:
```
./configure
gmake -j
gmake install
```

### Windows
There are two possibilities depending on the choice of the C runtime library. You can choose
Expand Down
Loading