@@ -22,28 +22,17 @@ make install
22
22
23
23
export PKG_CONFIG_PATH=$PREFIX /lib/pkgconfig
24
24
25
- if [[ $CROSS_COMPILE == " i686-w64-mingw32" ]] ; then
26
- # libusb-compat is a mess to compile for win32
27
- # use a precompiled version from libusb-win32 project
28
- 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
29
- unzip libusb-win32-bin-1.2.6.0.zip
30
- # mkdir -p $PREFIX/bin/
31
- # cp libusb-win32-bin-1.2.6.0/bin/x86/libusb0_x86.dll $PREFIX/bin/libusb0.dll
32
- cp libusb-win32-bin-1.2.6.0/include/lusb0_usb.h $PREFIX /include
33
- cp libusb-win32-bin-1.2.6.0/lib/gcc/libusb.a $PREFIX /lib
34
- else
35
- if [[ $CROSS_COMPILE == " x86_64-apple-darwin13" ]]; then
36
- export LIBUSB_1_0_CFLAGS=-I${PREFIX} /include/libusb-1.0
37
- export LIBUSB_1_0_LIBS=" -L${PREFIX} /lib -lusb-1.0"
38
- fi
39
- cd /opt/lib/libusb-compat-0.1.7
40
- export LIBUSB0_DIR=` pwd`
41
- PKG_CONFIG_PATH=" $PREFIX /lib/pkgconfig" ./configure --prefix=${PREFIX} --enable-static --disable-shared --host=${CROSS_COMPILE}
42
- make distclean
43
- PKG_CONFIG_PATH=" $PREFIX /lib/pkgconfig" ./configure --prefix=${PREFIX} --enable-static --disable-shared --host=${CROSS_COMPILE}
44
- make -j$( nproc)
45
- make install
25
+ if [[ $CROSS_COMPILE == " x86_64-apple-darwin13" ]]; then
26
+ export LIBUSB_1_0_CFLAGS=-I${PREFIX} /include/libusb-1.0
27
+ export LIBUSB_1_0_LIBS=" -L${PREFIX} /lib -lusb-1.0"
46
28
fi
29
+ cd /opt/lib/libusb-compat-0.1.7
30
+ export LIBUSB0_DIR=` pwd`
31
+ PKG_CONFIG_PATH=" $PREFIX /lib/pkgconfig" ./configure --prefix=${PREFIX} --enable-static --disable-shared --host=${CROSS_COMPILE}
32
+ make distclean
33
+ PKG_CONFIG_PATH=" $PREFIX /lib/pkgconfig" ./configure --prefix=${PREFIX} --enable-static --disable-shared --host=${CROSS_COMPILE}
34
+ make -j$( nproc)
35
+ make install
47
36
48
37
cd /opt/lib/libftdi1-1.4
49
38
rm -rf build && mkdir build && cd build
@@ -76,12 +65,12 @@ echo "*****************"
76
65
77
66
export CPPFLAGS=" -P"
78
67
79
- cd /opt/lib/ncurses-5.9
68
+ cd /opt/lib/ncurses-6.3
80
69
export NCURSES_DIR=` pwd`
81
70
82
- ./configure $EXTRAFLAGS --disable-shared --without-debug --without-ada --with-termlib --enable-termcap --without-manpages --without-progs --without-tests --host=$CROSS_COMPILE --prefix=${PREFIX}
71
+ ./configure $EXTRAFLAGS --target= $CROSS_COMPILE --without-pthread --enable-database --enable-sp-funcs --enable-term-driver -- without-shared --without-debug --without-ada --enable-termcap --without-manpages --without-progs --without-tests --host=$CROSS_COMPILE --prefix=${PREFIX}
83
72
make distclean
84
- ./configure $EXTRAFLAGS --disable-shared --without-debug --without-ada --with-termlib --enable-termcap --without-manpages --without-progs --without-tests --host=$CROSS_COMPILE --prefix=${PREFIX}
73
+ ./configure $EXTRAFLAGS --target= $CROSS_COMPILE --without-pthread --enable-database --enable-sp-funcs --enable-term-driver -- without-shared --without-debug --without-ada --enable-termcap --without-manpages --without-progs --without-tests --host=$CROSS_COMPILE --prefix=${PREFIX}
85
74
make -j$( nproc)
86
75
make install.libs
87
76
0 commit comments