]> sigrok.org Git - sigrok-util.git/commitdiff
sigrok-cross-mingw: Build libusbx.
authorMartin Ling <redacted>
Sun, 22 Dec 2013 20:46:35 +0000 (20:46 +0000)
committerMartin Ling <redacted>
Sun, 22 Dec 2013 20:46:35 +0000 (20:46 +0000)
cross-compile/mingw/sigrok-cross-mingw

index c2cf88baafbc04638a8da6ef4abc654d06b0b1bf..e3fd6f41871354416f605632399f938ca84172d1 100755 (executable)
@@ -32,6 +32,12 @@ BUILDDIR=./sr_mingw_build
 
 # -----------------------------------------------------------------------------
 
+SF_MIRROR=switch.dl.sourceforge.net
+
+VER_LIBUSBX=1.0.17
+
+# -----------------------------------------------------------------------------
+
 # We need to find tools in the toolchain and in the install directory.
 export PATH=$PREFIX/bin:$MXE/usr/bin:$PATH
 
@@ -79,6 +85,13 @@ chmod 755 $PREFIX/bin/python3-config
 wget -c http://python.org/ftp/python/3.2.3/python-3.2.3.msi \
      -O $PREFIX/python-3.2.3.msi
 
+# libusbx
+wget http://$SF_MIRROR/project/libusbx/releases/$VER_LIBUSBX/source/libusbx-$VER_LIBUSBX.tar.bz2
+tar xfj libusbx-$VER_LIBUSBX.tar.bz2
+cd libusbx-$VER_LIBUSBX
+PKG_CONFIG_PATH_i686_pc_mingw32=$P ./configure $C $L && make install
+cd ..
+
 # libserialport
 git clone git://sigrok.org/libserialport
 cd libserialport