shithub: opus-tools

Download patch

ref: ec08f7bd88bf6598ad8b666b7c4d2c1162487838
parent: 4a6dd6971b2ca0f4a7aa5caf8f7611c67c6a1455
author: Tristan Matthews <tmatth@videolan.org>
date: Wed Apr 19 08:35:30 EDT 2023

CI: use packaged libopusenc

Suggested by Mark Harris.

Signed-off-by: Mark Harris <mark.hsj@gmail.com>

--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,24 +1,14 @@
 default:
   tags:
   - docker
-  # Image from https://hub.docker.com/_/gcc/ based on Debian
-  image: gcc:9
+  image: debian:bookworm
 
 autoconf:
   stage: build
   before_script:
   - apt-get update &&
-    apt-get install -y libogg-dev libopus-dev libopusfile-dev libflac-dev libpcap-dev zip
+    apt-get install -y autoconf gcc libtool make libogg-dev libopus-dev libopusenc-dev libopusfile-dev libflac-dev libpcap-dev xz-utils zip
   script:
-  # build libopusenc
-  - git clone "https://gitlab.xiph.org/xiph/libopusenc.git"
-  - cd libopusenc
-  - ./autogen.sh
-  - ./configure --prefix="$(pwd)/_inst" || cat config.log
-  - make check
-  - make install
-  - export PKG_CONFIG_PATH="$(pwd)/_inst/lib/pkgconfig"
-  - cd ..
   # build opus-tools
   - ./autogen.sh
   - ./configure || cat config.log