ffmpeg: fix installations of x264-presets files
PATCH 1/1 ffmpeg: fix installations of x264-presets files
I would like to get an ack for the
attached patch.
Bye Henning
From 717332f424ba55673d76d5d881916752ab1b54f5 Mon Sep 17 00:00:00 2001
From: Henning Heinold <[email protected]>
Date: Sun, 23 Aug 2009 22:54:11 +0200
Subject: [PATCH] ffmpeg: fix installations of x264-presets files
* now x264-presets files are only installed when libx264 is available
* bump PR
Signed-off-by Henning Heinold <[email protected]>
--- recipes/ffmpeg/ffmpeg.inc | 5 +---- recipes/ffmpeg/ffmpeg_0.5.bb | 5 +++-- recipes/ffmpeg/ffmpeg_git.bb | 5 +++-- recipes/ffmpeg/files/x264-presets.patch | 28 ++++++++++++++++++++++++++++ 4 files changed, 35 insertions(+), 8 deletions(-) create mode 100644 recipes/ffmpeg/files/x264-presets.patch
recipes/ffmpeg/ffmpeg.inc +1 -4
@@ -80,16 +80,13 @@ FILES_${PN}-vhook = "${libdir}/vhook" FILES_${PN}-vhook-dbg += "${libdir}/vhook/.debug" -PACKAGES += "ffmpeg-x264-presets \ - libavcodec libavcodec-dev libavcodec-dbg \ +PACKAGES += "libavcodec libavcodec-dev libavcodec-dbg \ libavdevice libavdevice-dev libavdevice-dbg \ libavformat libavformat-dev libavformat-dbg \ libavutil libavutil-dev libavutil-dbg \ libpostproc libpostproc-dev libpostproc-dbg \ libswscale libswscale-dev libswscale-dbg" -FILES_ffmpeg-x264-presets = "${datadir}/*.ffpreset" - FILES_${PN}-dev = "${includedir}" FILES_libavcodec = "${libdir}/libavcodec*.so.*" FILES_libavcodec-dev = "${libdir}/libavcodec*.so ${libdir}/pkgconfig/libavcodec.pc ${libdir}/libavcodec*.a"
recipes/ffmpeg/ffmpeg_0.5.bb +3 -2
@@ -3,14 +3,15 @@ require ffmpeg.inc DEPENDS += "schroedinger libgsm" PE = "1" -PR = "r5" +PR = "r6" DEFAULT_PREFERENCE = "1" SRCREV_libswscale = "b2e1c8222eeef74b0ca8053b400957dd69e18e4d" SRC_URI = "http://ffmpeg.org/releases/ffmpeg-${PV}.tar.bz2 \ file://armv4.patch;patch=1 \ - file://ffmpeg-arm-update.diff;patch=1 \ + file://ffmpeg-arm-update.diff;patch=1 \ + file://x264-presets.patch;patch=1 \ " #S = "${WORKDIR}/git"
recipes/ffmpeg/ffmpeg_git.bb +3 -2
@@ -4,7 +4,7 @@ DEPENDS += "schroedinger libgsm" PE = "1" PV = "0.5.0+${PR}+gitr${SRCREV}" -PR = "r0" +PR = "r1" DEFAULT_PREFERENCE = "-1" DEFAULT_PREFERENCE_armv7a = "1"
@@ -17,7 +17,8 @@ SRCREV = "d886804643d7427debfa70d824de7e53ae8e3e83" SRCREV_arm = "d886804643d7427debfa70d824de7e53ae8e3e83" SRCREV_libswscale = "b2e1c8222eeef74b0ca8053b400957dd69e18e4d" SRC_URI = "git://git.mansr.com/ffmpeg.mru;protocol=git;branch=${FFBRANCH} \ -" + file://x264-presets.patch;patch=1 \ + " S = "${WORKDIR}/git" B = "${S}/build.${HOST_SYS}.${TARGET_SYS}"
recipes/ffmpeg/files/x264-presets.patch new file +28 -0
@@ -0,0 +1,28 @@ +Index: ffmpeg-0.5/Makefile +=================================================================== +--- ffmpeg-0.5.orig/Makefile 2009-02-21 19:41:52.000000000 +0100 ++++ ffmpeg-0.5/Makefile 2009-08-23 22:45:29.417512541 +0200 +@@ -24,7 +24,9 @@ + + FFLIBS := avdevice avformat avcodec avutil + +-DATA_FILES := $(wildcard $(SRC_DIR)/ffpresets/*.ffpreset) ++ifeq ($(CONFIG_LIBX264),yes) ++DATA_FILES := $(wildcard $(SRC_DIR)/ffpresets/libx264-*.ffpreset) ++endif + + include common.mak + +@@ -133,9 +135,12 @@ + install -d "$(BINDIR)" + install -c -m 755 $(PROGS) "$(BINDIR)" + ++ + install-data: $(DATA_FILES) ++ifneq ($(DATA_FILES),) + install -d "$(DATADIR)" + install -m 644 $(DATA_FILES) "$(DATADIR)" ++endif + + install-man: $(MANPAGES) + install -d "$(MANDIR)/man1"
Signature · 1 line
1.6.3.3