mirror of
https://git.freebsd.org/ports.git
synced 2025-06-21 12:40:45 -04:00
Open source library for SPI/I2C control via FTDI chips Libmpsse is a library for interfacing with SPI/I2C devices via FTDI's FT-2232 family of USB chips. Based around the libftdi library. WWW: http://code.google.com/p/libmpsse/ PR: 188575 Submitted by: uffe@uffe.org
43 lines
1 KiB
Text
43 lines
1 KiB
Text
--- src/configure.ac.orig 2014-04-13 17:54:11.835943734 +0200
|
|
+++ src/configure.ac 2014-04-13 18:06:11.083132540 +0200
|
|
@@ -42,6 +42,31 @@
|
|
exit 1
|
|
fi
|
|
|
|
+ if ! test $PYEXE
|
|
+ then
|
|
+ PYEXE=$(which python2)
|
|
+ if ! test ${PYEXE}
|
|
+ then
|
|
+ PYEXE=$(which python)
|
|
+ fi
|
|
+ fi
|
|
+ echo $PYEXE
|
|
+
|
|
+ if ! test $PYDEV
|
|
+ then
|
|
+ for INCL in $(python2-config --includes)
|
|
+ do
|
|
+ echo $INCL
|
|
+ INCL=$(echo "${INCL}" | sed 's:^-I::g')
|
|
+ echo $INCL
|
|
+ if test -f "${INCL}/Python.h"
|
|
+ then
|
|
+ PYDEV="${INCL}"
|
|
+ break;
|
|
+ fi;
|
|
+ done
|
|
+ fi
|
|
+
|
|
if ! test $PYDEV
|
|
then
|
|
PYDEV="/usr/include/python$(python -V 2>&1 | awk '{print $2}' | cut -d'.' -f1,2)"
|
|
@@ -54,7 +79,7 @@
|
|
dnl This is a hack to get a valid python library path
|
|
echo "import sys" > pylib.py
|
|
echo "for path in sys.path: print path" >> pylib.py
|
|
- PYLIB="$(python pylib.py | grep -e '-packages$' | head -1)"
|
|
+ PYLIB="$(${PYEXE} pylib.py | grep -e '-packages$' | head -1)"
|
|
rm -f pylib.py
|
|
fi
|
|
|