https://github.com/valpackett/docker-freebsd-cross
Docker image for cross-compiling to FreeBSD. With pkg!!
https://github.com/valpackett/docker-freebsd-cross
container cross-compilation docker freebsd
Last synced: 8 months ago
JSON representation
Docker image for cross-compiling to FreeBSD. With pkg!!
- Host: GitHub
- URL: https://github.com/valpackett/docker-freebsd-cross
- Owner: valpackett
- License: unlicense
- Created: 2018-07-16T14:01:17.000Z (almost 8 years ago)
- Default Branch: trunk
- Last Pushed: 2024-01-25T02:20:28.000Z (over 2 years ago)
- Last Synced: 2025-04-22T23:46:17.009Z (about 1 year ago)
- Topics: container, cross-compilation, docker, freebsd
- Language: Dockerfile
- Homepage: https://hub.docker.com/r/myfreeweb/freebsd-cross/
- Size: 5.86 KB
- Stars: 11
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
[](http://unlicense.org)
[


](https://hub.docker.com/r/myfreeweb/freebsd-cross/)
[](https://hub.docker.com/r/myfreeweb/freebsd-cross/builds/)
[](https://microbadger.com/images/myfreeweb/freebsd-cross)
# docker-freebsd-cross
An Alpine based Docker image for cross-compiling to FreeBSD (11, amd64) using clang.
- Allows pkg dependency installation!
- Configures pkgconf (pkg-config)!
- Configures meson! (use `--cross-file freebsd`)
## Usage
```docker
FROM myfreeweb/freebsd-cross:latest
RUN apk add --no-cache meson
RUN pkg -r /freebsd install -y libepoll-shim libudev-devd libevdev libwacom gtk3 libmtdev
ADD . /build
RUN cd /build && \
meson build --cross-file freebsd -Ddocumentation=false -Dtests=false -Depoll-dir=/freebsd/usr/local/ && \
ninja -Cbuild
```
## Contributing
Please feel free to submit pull requests!
By participating in this project you agree to follow the [Contributor Code of Conduct](https://www.contributor-covenant.org/version/1/4/).
[The list of contributors is available on GitHub](https://github.com/myfreeweb/docker-freebsd-cross/graphs/contributors).
## License
This is free and unencumbered software released into the public domain.
For more information, please refer to the `UNLICENSE` file or [unlicense.org](https://unlicense.org).