diff options
Diffstat (limited to 'office/texstudio/texstudio.SlackBuild')
-rw-r--r-- | office/texstudio/texstudio.SlackBuild | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/office/texstudio/texstudio.SlackBuild b/office/texstudio/texstudio.SlackBuild index 223039861a..cc7be84837 100644 --- a/office/texstudio/texstudio.SlackBuild +++ b/office/texstudio/texstudio.SlackBuild @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=texstudio -VERSION=${VERSION:-2.6.4} +VERSION=${VERSION:-2.7.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -71,13 +71,17 @@ find -L . \ # Fix .desktop item. sed -i -e '/^Encoding/d' -e "/^Icon/s|=.*|=$PRGNAM|" utilities/texstudio.desktop -# Fix PHONON compile issue. -patch -p1 < $CWD/texstudio-2.6.4-phonon-build-fix.patch - -qmake LIBS+="-L/usr/lib${LIBDIRSUFFIX}" QMAKE_CFLAGS+="$SLKCFLAGS" \ - PHONON=true INCLUDEPATH+="/usr/include/KDE" QMAKE_CXXFLAGS+="$SLKCFLAGS"\ - CONFIG-=debug -o Makefile $PRGNAM.pro +# Use Qt5 if QT5GUI is yes, otherwise, default to Qt4. +if [ "${QT5GUI:-no}" == "yes" ]; then + qmake-qt5 LIBS+="-L/usr/lib${LIBDIRSUFFIX}" QMAKE_CFLAGS+="$SLKCFLAGS" \ + INCLUDEPATH+="/usr/include/KDE /usr/include/poppler/qt5" QMAKE_CXXFLAGS+="$SLKCFLAGS"\ + CONFIG-=debug -o Makefile $PRGNAM.pro +else + qmake LIBS+="-L/usr/lib${LIBDIRSUFFIX}" QMAKE_CFLAGS+="$SLKCFLAGS" \ + PHONON=true INCLUDEPATH+="/usr/include/KDE" QMAKE_CXXFLAGS+="$SLKCFLAGS"\ + CONFIG-=debug -o Makefile $PRGNAM.pro +fi make make install INSTALL_ROOT=$PKG |