diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-multimedia/ffmpeg/ffmpeg_3.2.4.bb | 53 |
1 files changed, 19 insertions, 34 deletions
diff --git a/meta/recipes-multimedia/ffmpeg/ffmpeg_3.2.4.bb b/meta/recipes-multimedia/ffmpeg/ffmpeg_3.2.4.bb index 22895a75a2..3216f8eb00 100644 --- a/meta/recipes-multimedia/ffmpeg/ffmpeg_3.2.4.bb +++ b/meta/recipes-multimedia/ffmpeg/ffmpeg_3.2.4.bb | |||
@@ -115,7 +115,25 @@ do_configure() { | |||
115 | ${S}/configure ${EXTRA_OECONF} | 115 | ${S}/configure ${EXTRA_OECONF} |
116 | } | 116 | } |
117 | 117 | ||
118 | PACKAGES_DYNAMIC += "^lib(av(codec|device|filter|format|util|resample)|swscale|swresample|postproc).*" | 118 | PACKAGES =+ "libavcodec \ |
119 | libavdevice \ | ||
120 | libavfilter \ | ||
121 | libavformat \ | ||
122 | libavresample \ | ||
123 | libavutil \ | ||
124 | libpostproc \ | ||
125 | libswresample \ | ||
126 | libswscale" | ||
127 | |||
128 | FILES_libavcodec = "${libdir}/libavcodec${SOLIBS}" | ||
129 | FILES_libavdevice = "${libdir}/libavdevice${SOLIBS}" | ||
130 | FILES_libavfilter = "${libdir}/libavfilter${SOLIBS}" | ||
131 | FILES_libavformat = "${libdir}/libavformat${SOLIBS}" | ||
132 | FILES_libavresample = "${libdir}/libavresample${SOLIBS}" | ||
133 | FILES_libavutil = "${libdir}/libavutil${SOLIBS}" | ||
134 | FILES_libpostproc = "${libdir}/libpostproc${SOLIBS}" | ||
135 | FILES_libswresample = "${libdir}/libswresample${SOLIBS}" | ||
136 | FILES_libswscale = "${libdir}/libswscale${SOLIBS}" | ||
119 | 137 | ||
120 | # ffmpeg disables PIC on some platforms (e.g. x86-32) | 138 | # ffmpeg disables PIC on some platforms (e.g. x86-32) |
121 | INSANE_SKIP_${MLPREFIX}libavcodec = "textrel" | 139 | INSANE_SKIP_${MLPREFIX}libavcodec = "textrel" |
@@ -127,36 +145,3 @@ INSANE_SKIP_${MLPREFIX}libavresample = "textrel" | |||
127 | INSANE_SKIP_${MLPREFIX}libswscale = "textrel" | 145 | INSANE_SKIP_${MLPREFIX}libswscale = "textrel" |
128 | INSANE_SKIP_${MLPREFIX}libswresample = "textrel" | 146 | INSANE_SKIP_${MLPREFIX}libswresample = "textrel" |
129 | INSANE_SKIP_${MLPREFIX}libpostproc = "textrel" | 147 | INSANE_SKIP_${MLPREFIX}libpostproc = "textrel" |
130 | |||
131 | python populate_packages_prepend() { | ||
132 | av_libdir = d.expand('${libdir}') | ||
133 | av_pkgconfig = d.expand('${libdir}/pkgconfig') | ||
134 | |||
135 | # Runtime package | ||
136 | do_split_packages(d, av_libdir, '^lib(.*)\.so\..*', | ||
137 | output_pattern='lib%s', | ||
138 | description='libav %s library', | ||
139 | extra_depends='', | ||
140 | prepend=True, | ||
141 | allow_links=True) | ||
142 | |||
143 | # Development packages (-dev, -staticdev) | ||
144 | do_split_packages(d, av_libdir, '^lib(.*)\.so$', | ||
145 | output_pattern='lib%s-dev', | ||
146 | description='libav %s development package', | ||
147 | extra_depends='${PN}-dev', | ||
148 | prepend=True, | ||
149 | allow_links=True) | ||
150 | do_split_packages(d, av_pkgconfig, '^lib(.*)\.pc$', | ||
151 | output_pattern='lib%s-dev', | ||
152 | description='libav %s development package', | ||
153 | extra_depends='${PN}-dev', | ||
154 | prepend=True) | ||
155 | do_split_packages(d, av_libdir, '^lib(.*)\.a$', | ||
156 | output_pattern='lib%s-staticdev', | ||
157 | description='libav %s development package - static library', | ||
158 | extra_depends='${PN}-dev', | ||
159 | prepend=True, | ||
160 | allow_links=True) | ||
161 | |||
162 | } | ||