diff options
-rw-r--r-- | recipes/ffmpeg.recipe | 4 | ||||
-rw-r--r-- | recipes/ffmpeg/0001-pkgconfig-fix-generation-to-use-prefix.patch | 27 |
2 files changed, 30 insertions, 1 deletions
diff --git a/recipes/ffmpeg.recipe b/recipes/ffmpeg.recipe index ed44d5f5..693ade2f 100644 --- a/recipes/ffmpeg.recipe +++ b/recipes/ffmpeg.recipe @@ -8,7 +8,9 @@ class Recipe(recipe.Recipe): stype = SourceType.TARBALL url = 'https://ffmpeg.org/releases/%(name)s-%(version)s.tar.xz' tarball_checksum = '06b10a183ce5371f915c6bb15b7b1fffbe046e8275099c96affc29e17645d909' - patches = [] + patches = [ + name + '/0001-pkgconfig-fix-generation-to-use-prefix.patch', + ] btype = BuildType.MAKEFILE configure_tpl = './configure --prefix=%(prefix)s --libdir=%(libdir)s \ diff --git a/recipes/ffmpeg/0001-pkgconfig-fix-generation-to-use-prefix.patch b/recipes/ffmpeg/0001-pkgconfig-fix-generation-to-use-prefix.patch new file mode 100644 index 00000000..c7d670fb --- /dev/null +++ b/recipes/ffmpeg/0001-pkgconfig-fix-generation-to-use-prefix.patch @@ -0,0 +1,27 @@ +From 8f5d2c0283c4cbc430ac30a6efef999c33bdb2c9 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?St=C3=A9phane=20Cerveau?= <scerveau@igalia.com> +Date: Fri, 4 Nov 2022 12:20:25 +0100 +Subject: [PATCH] pkgconfig: fix generation to use prefix + +--- + ffbuild/pkgconfig_generate.sh | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/ffbuild/pkgconfig_generate.sh b/ffbuild/pkgconfig_generate.sh +index e5de671..679413e 100755 +--- a/ffbuild/pkgconfig_generate.sh ++++ b/ffbuild/pkgconfig_generate.sh +@@ -29,8 +29,8 @@ version=$(grep ${name}_VERSION= $name/${name}.version | cut -d= -f2) + cat <<EOF > $name/$fullname.pc + prefix=$prefix + exec_prefix=\${prefix} +-libdir=$libdir +-includedir=$incdir ++libdir=\${prefix}/lib ++includedir=\${prefix}/include + + Name: $fullname + Description: $comment +-- +2.34.1 + |