mirror of
https://github.com/mpv-player/mpv
synced 2024-12-21 22:30:22 +00:00
CI: add FreeBSD job
This commit is contained in:
parent
bf6afbc299
commit
7c9543577a
37
.travis.yml
37
.travis.yml
@ -24,6 +24,8 @@ matrix:
|
|||||||
osx_image: xcode10.1
|
osx_image: xcode10.1
|
||||||
- <<: *macOld
|
- <<: *macOld
|
||||||
osx_image: xcode9.2
|
osx_image: xcode9.2
|
||||||
|
- os: freebsd
|
||||||
|
compiler: clang
|
||||||
- os: linux
|
- os: linux
|
||||||
compiler: gcc
|
compiler: gcc
|
||||||
env: CONTAINER=registry.cirno.systems/kiwi/containers/mpv-ci:stable-deps CI_SCRIPT=ci/build-tumbleweed.sh
|
env: CONTAINER=registry.cirno.systems/kiwi/containers/mpv-ci:stable-deps CI_SCRIPT=ci/build-tumbleweed.sh
|
||||||
@ -61,6 +63,40 @@ before_install:
|
|||||||
- if [ "$TRAVIS_COMPILER" = "clang" ]; then export CXX="clang++"; fi
|
- if [ "$TRAVIS_COMPILER" = "clang" ]; then export CXX="clang++"; fi
|
||||||
- if [ "$TRAVIS_COMPILER" = "gcc" ]; then export CXX="g++"; fi
|
- if [ "$TRAVIS_COMPILER" = "gcc" ]; then export CXX="g++"; fi
|
||||||
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then docker pull $CONTAINER; fi
|
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then docker pull $CONTAINER; fi
|
||||||
|
- |
|
||||||
|
if [ "$TRAVIS_OS_NAME" = "freebsd" ]; then
|
||||||
|
# Requested in ci/build-freebsd.sh
|
||||||
|
sudo pkg install -y \
|
||||||
|
evdev-proto \
|
||||||
|
ffmpeg \
|
||||||
|
libplacebo \
|
||||||
|
libxkbcommon \
|
||||||
|
luajit \
|
||||||
|
openal-soft \
|
||||||
|
pkgconf \
|
||||||
|
python3 \
|
||||||
|
sdl2 \
|
||||||
|
vulkan-headers \
|
||||||
|
wayland-protocols \
|
||||||
|
$NULL
|
||||||
|
# Optionally auto-enabled
|
||||||
|
sudo pkg install -y \
|
||||||
|
alsa-lib \
|
||||||
|
jackit \
|
||||||
|
libXv \
|
||||||
|
libarchive \
|
||||||
|
libbluray \
|
||||||
|
libcaca \
|
||||||
|
libcdio-paranoia \
|
||||||
|
libdvdnav \
|
||||||
|
mujs \
|
||||||
|
pulseaudio \
|
||||||
|
rubberband \
|
||||||
|
sekrit-twc-zimg \
|
||||||
|
uchardet \
|
||||||
|
v4l_compat \
|
||||||
|
$NULL
|
||||||
|
fi
|
||||||
- |
|
- |
|
||||||
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
||||||
if [[ "$TRAVIS_OSX_IMAGE" == "xcode9.2" ]]; then
|
if [[ "$TRAVIS_OSX_IMAGE" == "xcode9.2" ]]; then
|
||||||
@ -95,6 +131,7 @@ script:
|
|||||||
- ./bootstrap.py
|
- ./bootstrap.py
|
||||||
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then docker run --env CC --env TARGET -v $TRAVIS_BUILD_DIR:/build $CONTAINER /bin/sh -c "cd /build && $CI_SCRIPT"; fi
|
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then docker run --env CC --env TARGET -v $TRAVIS_BUILD_DIR:/build $CONTAINER /bin/sh -c "cd /build && $CI_SCRIPT"; fi
|
||||||
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then ./ci/build-macos.sh; fi
|
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then ./ci/build-macos.sh; fi
|
||||||
|
- if [ "$TRAVIS_OS_NAME" = "freebsd" ]; then ./ci/build-freebsd.sh; fi
|
||||||
after_failure: cat ./build/config.log
|
after_failure: cat ./build/config.log
|
||||||
after_script: TOOLS/travis-rebuild-website
|
after_script: TOOLS/travis-rebuild-website
|
||||||
|
|
||||||
|
26
ci/build-freebsd.sh
Executable file
26
ci/build-freebsd.sh
Executable file
@ -0,0 +1,26 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
set -e
|
||||||
|
|
||||||
|
export CFLAGS="$CFLAGS -isystem/usr/local/include"
|
||||||
|
export CXXFLAGS="$CXXFLAGS -isystem/usr/local/include"
|
||||||
|
export LDFLAGS="$LDFLAGS -L/usr/local/lib"
|
||||||
|
|
||||||
|
if [ ! -e "./waf" ] ; then
|
||||||
|
python3 ./bootstrap.py
|
||||||
|
fi
|
||||||
|
|
||||||
|
python3 ./waf configure \
|
||||||
|
--enable-libmpv-shared \
|
||||||
|
--enable-lua \
|
||||||
|
--enable-egl-drm \
|
||||||
|
--enable-openal \
|
||||||
|
--enable-sdl2 \
|
||||||
|
--enable-vaapi-wayland \
|
||||||
|
--enable-vdpau \
|
||||||
|
--enable-vulkan \
|
||||||
|
$(pkg info -q v4l_compat && echo --enable-dvbin) \
|
||||||
|
$(pkg info -q libdvdnav && echo --enable-dvdnav) \
|
||||||
|
$(pkg info -q libcdio-paranoia && echo --enable-cdda) \
|
||||||
|
$NULL
|
||||||
|
|
||||||
|
python3 ./waf build
|
Loading…
Reference in New Issue
Block a user