diff options
Diffstat (limited to 'office/texmaker/texmaker.SlackBuild')
-rw-r--r-- | office/texmaker/texmaker.SlackBuild | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/office/texmaker/texmaker.SlackBuild b/office/texmaker/texmaker.SlackBuild index b455b9584bf89..46f4c0fb9b5e5 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 |