Created
January 28, 2015 22:16
-
-
Save ant32/fcf986581285320174d1 to your computer and use it in GitHub Desktop.
mingw-w64-gst-plugins-good 1.4.5-1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pkgname=mingw-w64-gst-plugins-good | |
pkgver=1.4.5 | |
pkgrel=1 | |
pkgdesc="GStreamer Multimedia Framework Good Plugins (mingw-w64)" | |
arch=(any) | |
license=('LGPL') | |
url="http://gstreamer.freedesktop.org/" | |
options=('!strip' '!buildflags' 'staticlibs') | |
depends=(mingw-w64-gstreamer mingw-w64-gst-plugins-base mingw-w64-wavpack) | |
makedepends=(mingw-w64-configure python gstreamer) | |
source=(${url}/src/gst-plugins-good/gst-plugins-good-${pkgver}.tar.xz) | |
md5sums=('eaf1a6daf73749bc423feac301d60038') | |
_architectures="i686-w64-mingw32 x86_64-w64-mingw32" | |
build() { | |
cd ${srcdir}/gst-plugins-good-${pkgver} | |
export CFLAGS="-O2 -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4" | |
export CXXFLAGS="$CFLAGS" | |
unset LDFLAGS | |
for _arch in ${_architectures}; do | |
mkdir -p build-${_arch} && pushd build-${_arch} | |
${_arch}-configure \ | |
--disable-examples \ | |
--disable-oss --disable-oss4 --disable-sunaudio \ | |
--disable-osx_audio --disable-osx_video --disable-gst_v4l2 \ | |
--disable-x --disable-xshm --disable-xvideo --disable-pulse | |
make | |
popd | |
done | |
} | |
package() { | |
for _arch in ${_architectures}; do | |
cd ${srcdir}/gst-plugins-good-${pkgver}/build-${_arch} | |
make DESTDIR="${pkgdir}" install | |
rm $pkgdir/usr/$_arch/lib/gstreamer-1.0/*.a | |
rm $pkgdir/usr/$_arch/lib/gstreamer-1.0/*.la | |
find "$pkgdir" -name '*.dll' -exec ${_arch}-strip --strip-unneeded {} \; | |
find "$pkgdir" -name '*.dll' -o -name '*.a' -exec ${_arch}-strip -g {} \; | |
done | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment