File tree Expand file tree Collapse file tree 2 files changed +19
-3
lines changed
Expand file tree Collapse file tree 2 files changed +19
-3
lines changed Original file line number Diff line number Diff line change 3838COMMON_FLAGS=" "
3939
4040if [[ $CROSS_COMPILE == " mingw" ]] ; then
41- CFLAGS=" -DHAVE_LIBHIDAPI $CFLAGS -lhidapi -lsetupapi "
41+ CFLAGS=" -DHAVE_LIBHIDAPI $CFLAGS "
4242LIBS=" -lhidapi -lsetupapi"
4343fi
4444
45+ if [[ $OS == " Darwin" ]] ; then
46+ CFLAGS=" -DHAVE_LIBHIDAPI $CFLAGS "
47+ LIBS=" -lhidapi"
48+ fi
49+
50+
4551CONFARGS=" --prefix=$PREFIX --enable-linuxgpio"
4652if [[ $CROSS_COMPILE != " " ]] ; then
4753 CONFARGS=" $CONFARGS --host=$CROSS_COMPILE_HOST "
Original file line number Diff line number Diff line change @@ -28,8 +28,13 @@ if [[ $TARGET_OS == "GNU/Linux" ]] ; then
2828
2929git clone https://github.com/gentoo/eudev.git --depth 1
3030cd eudev
31- ./autogen.sh
32- ./configure --enable-static --disable-shared --disable-blkid --disable-kmod --disable-manpages --prefix=$PREFIX $CONFARGS
31+ # ./autogen.sh
32+ libtoolize --force
33+ aclocal
34+ autoheader
35+ automake --force-missing --add-missing
36+ autoconf
37+ ./configure --enable-static --disable-gudev --disable-introspection --disable-shared --disable-blkid --disable-kmod --disable-manpages --prefix=$PREFIX $CONFARGS
3338make clean
3439make -j4
3540make install
@@ -44,6 +49,11 @@ CFLAGS="-I$PREFIX/include/ -L$PREFIX/lib/"
4449
4550cd hidapi
4651CONFARGS=" --prefix=$PREFIX --enable-static --disable-shared "
52+
53+ PKG_CONFIG_DIR=
54+ PKG_CONFIG_LIBDIR=$PREFIX /lib/pkgconfig:$STAGING /share/pkgconfig
55+ PKG_CONFIG_SYSROOT_DIR=$PREFIX
56+
4757if [[ $CROSS_COMPILE != " " ]] ; then
4858 CONFARGS=" $CONFARGS --host=$CROSS_COMPILE_HOST "
4959 # solve bug with --host not being effective on second level directory
You can’t perform that action at this time.
0 commit comments