summaryrefslogtreecommitdiff
path: root/office/texmaker/texmaker.SlackBuild
diff options
context:
space:
mode:
authorLarry Hajali <larryhaja@gmail.com>2014-01-05 09:38:33 +0700
committerErik Hanson <erik@slackbuilds.org>2014-01-07 11:14:00 -0600
commit4a4fb94799e6c99c4ada4717e3e8f436d80c548f (patch)
treedf70fb9eec5d2de025eea6718d0122ab3b6fc1ba /office/texmaker/texmaker.SlackBuild
parent5bf85cc0e027bb8d0456fe68c8bb14cd70f73362 (diff)
downloadslackbuilds-4a4fb94799e6c99c4ada4717e3e8f436d80c548f.tar.gz
office/texmaker: Updated for version 4.1.1.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'office/texmaker/texmaker.SlackBuild')
-rw-r--r--office/texmaker/texmaker.SlackBuild12
1 files changed, 9 insertions, 3 deletions
diff --git a/office/texmaker/texmaker.SlackBuild b/office/texmaker/texmaker.SlackBuild
index b455b9584b..46f4c0fb9b 100644
--- a/office/texmaker/texmaker.SlackBuild
+++ b/office/texmaker/texmaker.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=texmaker
-VERSION=${VERSION:-4.1}
+VERSION=${VERSION:-4.1.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -69,8 +69,14 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-qmake LIBS+="-L/usr/lib${LIBDIRSUFFIX}" QMAKE_CFLAGS+="$SLKCFLAGS" \
- QMAKE_CXXFLAGS+="$SLKCFLAGS" -o Makefile $PRGNAM.pro
+# Check for Qt5 or else drop back to Qt4.
+if [ "${QT5GUI:-no}" == "yes" ]; then
+ qmake-qt5 LIBS+="-L/usr/lib${LIBDIRSUFFIX}" QMAKE_CFLAGS+="$SLKCFLAGS" \
+ QMAKE_CXXFLAGS+="$SLKCFLAGS" -o Makefile $PRGNAM.pro
+else
+ qmake LIBS+="-L/usr/lib${LIBDIRSUFFIX}" QMAKE_CFLAGS+="$SLKCFLAGS" \
+ QMAKE_CXXFLAGS+="$SLKCFLAGS" -o Makefile $PRGNAM.pro
+fi
make
make install INSTALL_ROOT=$PKG