gst-plugins-bad: split gst-plugin-opencv
This commit is contained in:
@@ -4,9 +4,11 @@
|
||||
|
||||
_realname=gst-plugins-bad
|
||||
pkgbase=mingw-w64-${_realname}
|
||||
pkgname=("${MINGW_PACKAGE_PREFIX}-gst-plugins-bad-libs" "${MINGW_PACKAGE_PREFIX}-gst-plugins-bad")
|
||||
pkgname=("${MINGW_PACKAGE_PREFIX}-gst-plugins-bad-libs"
|
||||
"${MINGW_PACKAGE_PREFIX}-gst-plugins-bad"
|
||||
"${MINGW_PACKAGE_PREFIX}-gst-plugin-opencv")
|
||||
pkgver=1.22.2
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc="GStreamer Multimedia Framework Bad Plugins (mingw-w64)"
|
||||
arch=('any')
|
||||
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64')
|
||||
@@ -179,12 +181,18 @@ package_gst-plugins-bad-libs() {
|
||||
|
||||
rm -f ${pkgdir}${MINGW_PREFIX}/lib/gstreamer*/*.a
|
||||
|
||||
# for gst-plugin-opencv
|
||||
mkdir -p plugin-opencv/bin/
|
||||
mkdir -p plugin-opencv/include/gstreamer-1.0/gst/
|
||||
mkdir -p plugin-opencv/lib/gstreamer-1.0/
|
||||
mv "${pkgdir}${MINGW_PREFIX}/bin/libgstopencv-1.0-0.dll" plugin-opencv/bin/
|
||||
mv "${pkgdir}${MINGW_PREFIX}/include/gstreamer-1.0/gst/opencv" plugin-opencv/include/gstreamer-1.0/gst/
|
||||
mv "${pkgdir}${MINGW_PREFIX}/lib/libgstopencv-1.0.dll.a" plugin-opencv/lib/
|
||||
mv "${pkgdir}${MINGW_PREFIX}/lib/gstreamer-1.0/libgstopencv.dll" plugin-opencv/lib/gstreamer-1.0/
|
||||
|
||||
# things moved to the plugins package later
|
||||
mkdir -p _plugins/lib
|
||||
mkdir -p _plugins/bin
|
||||
mv "${pkgdir}${MINGW_PREFIX}/lib/gstreamer-1.0" _plugins/lib
|
||||
|
||||
mv "${pkgdir}${MINGW_PREFIX}/bin/libgstopencv-1.0-0.dll" _plugins/bin
|
||||
}
|
||||
|
||||
package_gst-plugins-bad() {
|
||||
@@ -238,7 +246,6 @@ package_gst-plugins-bad() {
|
||||
"${MINGW_PACKAGE_PREFIX}-webrtc-audio-processing"
|
||||
"${MINGW_PACKAGE_PREFIX}-x265"
|
||||
"${MINGW_PACKAGE_PREFIX}-zbar"
|
||||
"${MINGW_PACKAGE_PREFIX}-opencv"
|
||||
)
|
||||
cd "${srcdir}/build-${MSYSTEM}"
|
||||
|
||||
@@ -246,6 +253,18 @@ package_gst-plugins-bad() {
|
||||
mv _plugins/* "${pkgdir}${MINGW_PREFIX}"
|
||||
}
|
||||
|
||||
package_gst-plugin-opencv() {
|
||||
pkgdesc+=" (opencv plugin)"
|
||||
depends=(
|
||||
"${MINGW_PACKAGE_PREFIX}-gst-plugins-base"
|
||||
"${MINGW_PACKAGE_PREFIX}-opencv"
|
||||
)
|
||||
|
||||
cd "${srcdir}/build-${MSYSTEM}"
|
||||
mkdir -p "${pkgdir}${MINGW_PREFIX}"
|
||||
mv plugin-opencv/* "${pkgdir}${MINGW_PREFIX}"
|
||||
}
|
||||
|
||||
# template start; name=mingw-w64-splitpkg-wrappers; version=1.0;
|
||||
# vim: set ft=bash :
|
||||
|
||||
|
||||
Reference in New Issue
Block a user