diff options
Diffstat (limited to 'source/n/obexftp/obexftp.SlackBuild')
-rwxr-xr-x | source/n/obexftp/obexftp.SlackBuild | 25 |
1 files changed, 5 insertions, 20 deletions
diff --git a/source/n/obexftp/obexftp.SlackBuild b/source/n/obexftp/obexftp.SlackBuild index 900850df8..2e68f31f9 100755 --- a/source/n/obexftp/obexftp.SlackBuild +++ b/source/n/obexftp/obexftp.SlackBuild @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright 2006, 2007, 2008, 2009, 2010, 2011, 2015, 2017, 2018 Patrick J. Volkerding, Sebeka, MN, USA +# Copyright 2006, 2007, 2008, 2009, 2010, 2011, 2015, 2017, 2018, 2024 Patrick J. Volkerding, Sebeka, MN, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,7 +23,7 @@ cd $(dirname $0) ; CWD=$(pwd) PKGNAM=obexftp VERSION=${VERSION:-$(echo $PKGNAM-*-Source.tar.?z* | rev | cut -f 3- -d . | cut -f 2 -d - | rev)} -BUILD=${BUILD:-10} +BUILD=${BUILD:-12} NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "} @@ -62,7 +62,9 @@ else LIBDIRSUFFIX="" fi -PYTHONLIB=$( python -c 'from distutils.sysconfig import get_python_lib; print(get_python_lib())' ) +# GCC 14 "fix": +export CC="gcc -Wno-error=int-conversion -Wno-error=implicit-function-declaration" + PYTHON3LIB=$( python3 -c 'from distutils.sysconfig import get_python_lib; print(get_python_lib())' ) rm -rf $PKG @@ -98,21 +100,6 @@ cd build make install DESTDIR=$PKG || exit 1 cd .. -mkdir -p build-python2 -cd build-python2 - cmake \ - -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ - -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DLIB_SUFFIX=${LIBDIRSUFFIX} \ - -DCMAKE_INSTALL_DOCDIR=/usr/doc/$PKGNAM-$VERSION \ - -DCMAKE_BUILD_TYPE=Release \ - -DPython_ADDITIONAL_VERSIONS=2.7 .. - cd swig/python - make $NUMJOBS || make || exit 1 - make install DESTDIR=$PKG || exit 1 -cd ../../../ - # Relocate man pages: mv $PKG/usr/share/man $PKG/usr rmdir $PKG/usr/share 2> /dev/null @@ -133,8 +120,6 @@ fi ) # Generate .pyc files -python -m compileall "${PKG}$PYTHONLIB" -python -O -m compileall "${PKG}$PYTHONLIB" python3 -m compileall "${PKG}$PYTHON3LIB" python3 -O -m compileall "${PKG}$PYTHON3LIB" |