diff options
author | Andreas Oberritter <obi@opendreambox.org> | 2017-02-11 23:43:34 +0100 |
---|---|---|
committer | Andreas Oberritter <obi@opendreambox.org> | 2017-06-26 22:57:20 +0200 |
commit | 3637198c9dd9ce37ac1e5c635b3909cadfbb92e3 (patch) | |
tree | e267743832c05ee7903347eaca954117159b0644 /meta | |
parent | 33d2e0eaf3b2f60529f4b10b348034becfdce526 (diff) | |
download | openembedded-core-contrib-3637198c9dd9ce37ac1e5c635b3909cadfbb92e3.tar.gz |
ffmpeg: use static package list
Dynamic packaging isn't useful if every library needs to be
listed manually.
Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-multimedia/ffmpeg/ffmpeg_3.0.bb | 53 |
1 files changed, 19 insertions, 34 deletions
diff --git a/meta/recipes-multimedia/ffmpeg/ffmpeg_3.0.bb b/meta/recipes-multimedia/ffmpeg/ffmpeg_3.0.bb index 4517c3d5291..78f9c616fe7 100644 --- a/meta/recipes-multimedia/ffmpeg/ffmpeg_3.0.bb +++ b/meta/recipes-multimedia/ffmpeg/ffmpeg_3.0.bb @@ -94,7 +94,25 @@ do_configure() { ${S}/configure ${EXTRA_OECONF} } -PACKAGES_DYNAMIC += "^lib(av(codec|device|filter|format|util|resample)|swscale|swresample|postproc).*" +PACKAGES =+ "libavcodec \ + libavdevice \ + libavfilter \ + libavformat \ + libavresample \ + libavutil \ + libpostproc \ + libswresample \ + libswscale" + +FILES_libavcodec = "${libdir}/libavcodec${SOLIBS}" +FILES_libavdevice = "${libdir}/libavdevice${SOLIBS}" +FILES_libavfilter = "${libdir}/libavfilter${SOLIBS}" +FILES_libavformat = "${libdir}/libavformat${SOLIBS}" +FILES_libavresample = "${libdir}/libavresample${SOLIBS}" +FILES_libavutil = "${libdir}/libavutil${SOLIBS}" +FILES_libpostproc = "${libdir}/libpostproc${SOLIBS}" +FILES_libswresample = "${libdir}/libswresample${SOLIBS}" +FILES_libswscale = "${libdir}/libswscale${SOLIBS}" # ffmpeg disables PIC on some platforms (e.g. x86-32) INSANE_SKIP_${MLPREFIX}libavcodec = "textrel" @@ -106,36 +124,3 @@ INSANE_SKIP_${MLPREFIX}libavresample = "textrel" INSANE_SKIP_${MLPREFIX}libswscale = "textrel" INSANE_SKIP_${MLPREFIX}libswresample = "textrel" INSANE_SKIP_${MLPREFIX}libpostproc = "textrel" - -python populate_packages_prepend() { - av_libdir = d.expand('${libdir}') - av_pkgconfig = d.expand('${libdir}/pkgconfig') - - # Runtime package - do_split_packages(d, av_libdir, '^lib(.*)\.so\..*', - output_pattern='lib%s', - description='libav %s library', - extra_depends='', - prepend=True, - allow_links=True) - - # Development packages (-dev, -staticdev) - do_split_packages(d, av_libdir, '^lib(.*)\.so$', - output_pattern='lib%s-dev', - description='libav %s development package', - extra_depends='${PN}-dev', - prepend=True, - allow_links=True) - do_split_packages(d, av_pkgconfig, '^lib(.*)\.pc$', - output_pattern='lib%s-dev', - description='libav %s development package', - extra_depends='${PN}-dev', - prepend=True) - do_split_packages(d, av_libdir, '^lib(.*)\.a$', - output_pattern='lib%s-staticdev', - description='libav %s development package - static library', - extra_depends='${PN}-dev', - prepend=True, - allow_links=True) - -} |