An open API service indexing awesome lists of open source software.

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!!

Awesome Lists containing this project

README

          

[![unlicense](https://img.shields.io/badge/un-license-green.svg?style=flat)](http://unlicense.org)
[
![docker stars](https://img.shields.io/docker/stars/myfreeweb/freebsd-cross.svg?style=flat)
![docker pulls](https://img.shields.io/docker/pulls/myfreeweb/freebsd-cross.svg?style=flat)
](https://hub.docker.com/r/myfreeweb/freebsd-cross/)
[![docker build status](https://img.shields.io/docker/build/myfreeweb/freebsd-cross.svg?style=flat)](https://hub.docker.com/r/myfreeweb/freebsd-cross/builds/)
[![docker image size](https://img.shields.io/microbadger/image-size/myfreeweb/freebsd-cross.svg?style=flat)](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).