ffmpeg: Fix pkgconfig files to be more cross compile friendly
authorRosen Penev <redacted>
Sun, 29 Sep 2019 00:11:27 +0000 (17:11 -0700)
committerRosen Penev <redacted>
Sun, 29 Sep 2019 00:14:44 +0000 (17:14 -0700)
Before:

prefix=/usr
exec_prefix=${prefix}
libdir=/usr/lib
includedir=/usr/include

After:

prefix=/usr
exec_prefix=/usr
libdir=${exec_prefix}/lib
includedir=${prefix}/include

Numbered the other patch file.

Signed-off-by: Rosen Penev <redacted>
multimedia/ffmpeg/Makefile
multimedia/ffmpeg/patches/010-pkgconfig.patch [new file with mode: 0644]
multimedia/ffmpeg/patches/020-ffmpeg-fix-build-with-fdk-aac-2.0.patch [moved from multimedia/ffmpeg/patches/ffmpeg-fix-build-with-fdk-aac-2.0.patch with 100% similarity]

index 5d60a50ed8d6201f82860b8440f612d29aa577dc..5a18edf1a69d613746aec011d879d47b753901e3 100644 (file)
@@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=ffmpeg
 PKG_VERSION:=3.4.6
-PKG_RELEASE:=3
+PKG_RELEASE:=4
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=https://ffmpeg.org/releases/
diff --git a/multimedia/ffmpeg/patches/010-pkgconfig.patch b/multimedia/ffmpeg/patches/010-pkgconfig.patch
new file mode 100644 (file)
index 0000000..48635e1
--- /dev/null
@@ -0,0 +1,15 @@
+--- a/ffbuild/pkgconfig_generate.sh
++++ b/ffbuild/pkgconfig_generate.sh
+@@ -28,9 +28,9 @@ version=$(grep ${name}_VERSION= $name/${name}.version | cut -d= -f2)
+ cat <<EOF > $name/$fullname.pc
+ prefix=$prefix
+-exec_prefix=\${prefix}
+-libdir=$libdir
+-includedir=$incdir
++exec_prefix=${prefix}
++libdir=\${exec_prefix}/lib
++includedir=\${prefix}/include
+ Name: $fullname
+ Description: $comment
git clone https://git.99rst.org/PROJECT