Skip to content

Commit

Permalink
opus: add custom pc file
Browse files Browse the repository at this point in the history
The pc file provided by cmake is broken so we add
our own one until we switch back to meson
  • Loading branch information
nacho committed Mar 18, 2024
1 parent 31d05b8 commit 30e88f0
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
16 changes: 16 additions & 0 deletions gvsbuild/patches/opus/pc-files/opus.pc
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Opus codec reference implementation pkg-config file

prefix=C:/gtk-build/gtk/x64/release
exec_prefix=${prefix}
libdir=${prefix}/lib
includedir=${prefix}/include

Name: Opus
Description: Opus IETF audio codec (floating-point build)
URL: https://opus-codec.org/
Version: 1.5.1
Requires:
Conflicts:
Libs: -L${libdir} -lopus
Libs.private:
Cflags: -I${includedir}/opus
3 changes: 3 additions & 0 deletions gvsbuild/projects/opus.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,6 @@ def build(self):
self, use_ninja=True, cmake_params="-DOPUS_BUILD_TESTING=OFF"
)
self.install(r"COPYING share\doc\opus")

# FIXME: remove once we switch back to meson
self.install_pc_files()

0 comments on commit 30e88f0

Please sign in to comment.