aboutsummaryrefslogtreecommitdiff
path: root/office/texstudio/texstudio.SlackBuild
diff options
context:
space:
mode:
authorLarry Hajali <larryhaja@gmail.com>2014-03-20 11:56:40 +0700
committerErik Hanson <erik@slackbuilds.org>2014-03-21 13:01:21 -0500
commite6a7c32e796ae0eba754181178eb1ee2c90d5a90 (patch)
tree4e91686330c25409e584a464f5210ce41c7a7ff1 /office/texstudio/texstudio.SlackBuild
parent8d6ef5fb30898e53d6a32b239b848920dc362802 (diff)
office/texstudio: Updated for version 2.7.0.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'office/texstudio/texstudio.SlackBuild')
-rw-r--r--office/texstudio/texstudio.SlackBuild18
1 files changed, 11 insertions, 7 deletions
diff --git a/office/texstudio/texstudio.SlackBuild b/office/texstudio/texstudio.SlackBuild
index 223039861ab3..cc7be84837e6 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