diff options
Diffstat (limited to 'libraries/libffado/libffado.SlackBuild')
-rw-r--r-- | libraries/libffado/libffado.SlackBuild | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/libraries/libffado/libffado.SlackBuild b/libraries/libffado/libffado.SlackBuild index f0bc67fb3be75..9e962d2b509d7 100644 --- a/libraries/libffado/libffado.SlackBuild +++ b/libraries/libffado/libffado.SlackBuild @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=libffado -VERSION=${VERSION:-2.2.1} +VERSION=${VERSION:-2.4.4} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -54,6 +54,8 @@ elif [ "$ARCH" = "x86_64" ]; then TARGET="x86_64" fi +PYTHON_VERSION=$(python3 -c 'import sys; print("%d.%d" % sys.version_info[:2])') + set -e rm -rf $PKG @@ -69,17 +71,17 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -# Use our CFLAGS -sed -i "s/-O2 -DNDEBUG/$SLKCFLAGS -DNDEBUG/" SConstruct - -patch -p1 < $CWD/libffado-mixer.patch - +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS -std=gnu++11 -Wno-deprecated-declarations" \ scons \ PREFIX=/usr \ LIBDIR=/usr/lib${LIBDIRSUFFIX} \ DIST_TARGET="$TARGET" \ - COMPILE_FLAGS="$CFLAGS -std=gnu++11" \ - DEBUG="False" + PYTHON_INTERPRETER='/usr/bin/python3' \ + PYPKGDIR="/usr/lib$LIBDIRSUFFIX/python${PYTHON_VERSION}/site-packages" \ + CUSTOM_ENV="True" \ + DEBUG="False" \ + UDEVDIR='/lib/udev/rules.d' scons \ --implicit-deps-unchanged \ |