File tree Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Original file line number Diff line number Diff line change 26
26
27
27
if [[ $TARGET_OS == " GNU/Linux" ]] ; then
28
28
29
- git clone https://github.com/gentoo/eudev.git --depth 1 -b v3.0
29
+ git clone https://github.com/gentoo/eudev.git --depth 1
30
30
cd eudev
31
- # ./autogen.sh
32
- libtoolize --force
33
- aclocal
34
- autoheader
35
- automake --force-missing --add-missing
36
- autoconf
31
+ ./autogen.sh
37
32
./configure --enable-static --disable-gudev --disable-introspection --disable-shared --disable-blkid --disable-kmod --disable-manpages --prefix=$PREFIX $CONFARGS
38
33
make clean
39
34
make -j4
45
40
46
41
git clone https://github.com/signal11/hidapi.git --depth 1
47
42
48
- CFLAGS=" -I$PREFIX /include/ -L$PREFIX /lib/"
43
+ export CFLAGS=" -I$PREFIX /include -I$PREFIX /include/hidapi -I$PREFIX /include/libelf -I$PREFIX /include/ncurses -I$PREFIX /include/ncursesw -I$PREFIX /include/readline -I$PREFIX /include/libusb-1.0 $CFLAGS "
44
+ export LDFLAGS=" -L$PREFIX /lib $LDFLAGS "
49
45
50
46
cd hidapi
51
- CONFARGS=" --prefix=$PREFIX --enable-static --disable-shared "
47
+ CONFARGS=" --prefix=$PREFIX --enable-static --disable-shared"
52
48
53
- export PKG_CONFIG_DIR=
54
- export PKG_CONFIG_LIBDIR=$PREFIX /lib/pkgconfig:$STAGING /share/pkgconfig
55
- export PKG_CONFIG_SYSROOT_DIR=$PREFIX
49
+ export PKG_CONFIG_PATH=$PREFIX /lib/pkgconfig
56
50
57
51
if [[ $CROSS_COMPILE != " " ]] ; then
58
52
CONFARGS=" $CONFARGS --host=$CROSS_COMPILE_HOST "
You can’t perform that action at this time.
0 commit comments