wget -c http://python.org/ftp/python/3.2.3/python-3.2.3.msi \
-O $PREFIX/python-3.2.3.msi
+# libserialport
+git clone git://sigrok.org/libserialport
+cd libserialport
+./autogen.sh
+PKG_CONFIG_PATH_i686_pc_mingw32=$P ./configure $C $L && make install
+cd ..
+
# libsigrok
git clone git://sigrok.org/libsigrok
cd libsigrok
cd sigrok-cli
./autogen.sh
PKG_CONFIG_PATH_i686_pc_mingw32=$P:$P2 ./configure $C && make install
-makensis contrib/sigrok-cli_cross.nsi
+makensis -DHOME=$HOME contrib/sigrok-cli_cross.nsi
cd ..
-## TODO: Doesn't fully work, yet.
-## # sigrok-qt
-## git clone git://sigrok.org/sigrok-qt
-## cd sigrok-qt
-## PKG_CONFIG_PATH_i686_pc_mingw32=$P:$P2 qmake -spec win32-g++
-## make
-## # TODO: make install
-## cd ..
-
-# # sigrok-gtk
-# git clone git://sigrok.org/sigrok-gtk
-# cd sigrok-gtk
-# ./autogen.sh
-# PKG_CONFIG_PATH_i686_pc_mingw32=$P:$P2 ./configure $C && make install
-# cd ..
-
# PulseView
git clone git://sigrok.org/pulseview
cd pulseview
# Temporary workaround: append (not prepend) "-llzma -llcms2" to the linker.
-sed -i '231a \\tlist(APPEND PULSEVIEW_LINK_LIBS "-llzma -llcms2") # Quick hack' CMakeLists.txt
+sed -i '247a \\tlist(APPEND PULSEVIEW_LINK_LIBS "-llzma -llcms2") # Quick hack' CMakeLists.txt
PKG_CONFIG_PATH_i686_pc_mingw32=$P:$P2 cmake $CM -DCMAKE_INSTALL_PREFIX:PATH=$PREFIX -DDISABLE_WERROR=y . && make install VERBOSE=1
-makensis contrib/pulseview_cross.nsi
+makensis -DHOME=$HOME contrib/pulseview_cross.nsi
cd ..