@@ -6,23 +6,30 @@ if [ x$CROSS_COMPILER == x ]; then
6
6
CROSS_COMPILER=${CROSS_COMPILE} -gcc
7
7
else
8
8
export CC=$CROSS_COMPILER
9
+ export CXX=$CROSS_COMPILER ++
9
10
fi
10
11
cd /opt/lib/libusb-1.0.20
11
12
export LIBUSB_DIR=` pwd`
12
13
./configure --prefix=${PREFIX} --disable-udev --enable-static --disable-shared --host=${CROSS_COMPILE}
13
14
make
14
15
make install
15
16
17
+ export PKG_CONFIG_PATH=$PREFIX /lib/pkgconfig
18
+
16
19
if [[ $CROSS_COMPILE == " i686-w64-mingw32" ]] ; then
17
20
# libusb-compat is a mess to compile for win32
18
21
# use a precompiled version from libusb-win32 project
19
- wget http://download.sourceforge.net/project/libusb-win32/libusb-win32-releases/1.2.6.0/libusb-win32-bin-1.2.6.0.zip
22
+ curl http://download.sourceforge.net/project/libusb-win32/libusb-win32-releases/1.2.6.0/libusb-win32-bin-1.2.6.0.zip -o libusb-win32-bin-1.2.6.0.zip -L
20
23
unzip libusb-win32-bin-1.2.6.0.zip
21
24
# mkdir -p $PREFIX/bin/
22
25
# cp libusb-win32-bin-1.2.6.0/bin/x86/libusb0_x86.dll $PREFIX/bin/libusb0.dll
23
26
cp libusb-win32-bin-1.2.6.0/include/lusb0_usb.h $PREFIX /include
24
27
cp libusb-win32-bin-1.2.6.0/lib/gcc/libusb.a $PREFIX /lib
25
28
else
29
+ if [[ $CROSS_COMPILE == " x86_64-apple-darwin13" ]]; then
30
+ export LIBUSB_1_0_CFLAGS=-I${PREFIX} /include/libusb-1.0
31
+ export LIBUSB_1_0_LIBS=" -L${PREFIX} /lib -lusb-1.0"
32
+ fi
26
33
cd /opt/lib/libusb-compat-0.1.5
27
34
export LIBUSB0_DIR=` pwd`
28
35
PKG_CONFIG_PATH=" $PREFIX /lib/pkgconfig" ./configure --prefix=${PREFIX} --enable-static --disable-shared --host=${CROSS_COMPILE}
@@ -49,11 +56,16 @@ export LIBELF_DIR=`pwd`
49
56
make
50
57
make install
51
58
59
+ echo " *****************"
60
+ file ${PREFIX} /lib/*
61
+ echo " *****************"
62
+
52
63
export CPPFLAGS=" -P"
53
64
54
65
cd /opt/lib/ncurses-5.9
55
66
export NCURSES_DIR=` pwd`
56
- ./configure --disable-shared --without-debug --without-ada --with-termlib --enable-termcap --host=$CROSS_COMPILE --prefix=${PREFIX}
67
+
68
+ ./configure $EXTRAFLAGS --disable-shared --without-debug --without-ada --with-termlib --enable-termcap --without-manpages --without-progs --without-tests --host=$CROSS_COMPILE --prefix=${PREFIX}
57
69
make
58
70
make install.libs
59
71
@@ -64,11 +76,13 @@ autoconf
64
76
make
65
77
make install-static
66
78
79
+ if [[ $CROSS_COMPILE != " i686-w64-mingw32" && $CROSS_COMPILE != " x86_64-apple-darwin13" ]] ; then
67
80
cd /opt/lib/eudev-3.2.10
68
81
./autogen.sh
69
82
./configure --enable-static --disable-gudev --disable-introspection --disable-shared --disable-blkid --disable-kmod --disable-manpages --prefix=$PREFIX --host=${CROSS_COMPILE}
70
83
make
71
84
make install
85
+ fi
72
86
73
87
cd /opt/lib/hidapi
74
88
export PKG_CONFIG_PATH=$PREFIX /lib/pkgconfig
0 commit comments