Windows build environment

With mingw-get install the mingw32-pthreads-w32 dev package.

cd ${LOCALSOURCEDIR} && \
wget -c http://kokkinizita.linuxaudio.org/linuxaudio/downloads/zita-resampler-1.3.0.tar.bz2 && \
cd ${LOCALBUILDDIR} && \
tar xjf ${LOCALSOURCEDIR}/zita-resampler-1.3.0.tar.bz2

WARNING: Ugly hack ahead: At this point, edit the Makefile. Add “/mingw/lib/libpthread.a” to the list of ZITA-RESAMPLER_O = … Also, change PREFIX to the empty string. Now procede with the compilation:

cd zita-resampler-1.3.0/libs && \
DESTDIR=${LOCALDESTDIR} make && \
DESTDIR=${LOCALDESTDIR} make install
cd ${LOCALSOURCEDIR} && \
wget -c http://www.mega-nerd.com/libsndfile/files/libsndfile-1.0.25.tar.gz && \
cd ${LOCALBUILDDIR} && \
tar xzf ${LOCALSOURCEDIR}/libsndfile-1.0.25.tar.gz && \
cd libsndfile-1.0.25 && \
./configure --prefix=${LOCALDESTDIR} --disable-external-libs && \
make && \
make install
prefix=/local32
exec_prefix=${prefix}
libdir=/local32/lib
sharedlibdir=${libdir}
includedir=${prefix}/include

Name: zlib
Description: zlib compression library
Version: 1.2.8

Requires:
Libs: -L${libdir} -L${sharedlibdir} -lz
Cflags: -I${includedir}
EXPAT_CFLAGS="-I/local32/include" EXPAT_LDFLAGS="-L/local32/lib" ./configure ...