3 # cross compile vamp-aubio-plugins using mingw32 toolchain
6 VAMP_AUBIO_VERSION=$VAMP_AUBIO_MAJOR_VERSION.$VAMP_AUBIO_MINOR_VERSION.$VAMP_AUBIO_PATCH_VERSION$VAMP_AUBIO_VERSION_STATUS
17 #export CC="i586-mingw32msvc-gcc"
18 #export CXX="i586-mingw32msvc-g++"
19 export CC="i686-w64-mingw32-gcc"
20 export CXX="i686-w64-mingw32-g++"
21 export STRIP="i686-w64-mingw32-strip"
22 export WAFOPTS="--with-target-platform=win32 --disable-sndfile --disable-samplerate --disable-jack --disable-avcodec --notests"
28 ./scripts/get_deps_mingw32.sh
30 # fetch and build aubio
31 ./scripts/get_aubio.sh
33 # configure and build plugin
38 # system-wide installation
39 #./waf install --destdir=dist-win
43 DESTDIR=vamp-aubio-plugins-$VAMP_AUBIO_VERSION-win32
44 rm -rf $DESTDIR $DESTDIR.zip
46 cp -prv contrib/aubio*/README.md $DESTDIR/README.aubio.md
47 cp -prv README.md $DESTDIR
48 cp -prv build/vamp-aubio.dll $DESTDIR
49 $STRIP $DESTDIR/vamp-aubio.dll
50 cp -prv vamp-aubio.cat vamp-aubio.n3 $DESTDIR
51 zip -r $DESTDIR.zip $DESTDIR