Description: Use synctex provided by libsynctex-dev
Author: Sebastian Ramacher <sramacher@debian.org>
Last-Update: 2014-07-05

--- texmaker-4.2.orig/pdfviewer.h
+++ texmaker-4.2/pdfviewer.h
@@ -39,7 +39,7 @@
 #include <QKeySequence>
 
 #include "documentview.h"
-#include "synctex_parser.h"
+#include <synctex_parser.h>
 #include "browser.h"
 
 
--- texmaker-4.2.orig/pdfviewerwidget.h
+++ texmaker-4.2/pdfviewerwidget.h
@@ -40,7 +40,7 @@
 #include <QSplitter>
 
 #include "documentview.h"
-#include "synctex_parser.h"
+#include <synctex_parser.h>
 #include "minisplitter.h"
 #include "browser.h"
 
--- texmaker-4.2.orig/texmaker.pro
+++ texmaker-4.2/texmaker.pro
@@ -19,11 +19,11 @@ DEFINES += HAVE_SPLASH
 unix:!macx {
 contains( QT_VERSION, "^5.*" ) {
 CONFIG		+= link_pkgconfig
-PKGCONFIG 	= poppler-qt5
+PKGCONFIG 	= poppler-qt5 synctex
 DEFINES += POPPLER24
 } else {
 CONFIG		+= link_pkgconfig
-PKGCONFIG 	= poppler-qt4
+PKGCONFIG 	= poppler-qt4 synctex
 DETECTEDPOPPLER=$$system(pkg-config --modversion poppler)
 contains( DETECTEDPOPPLER, "^0.18.*" ){
 DEFINES += OLDPOPPLER
@@ -88,8 +88,6 @@ HEADERS	+= texmaker.h \
 	textblockselection.h \
 	scandialog.h \
 	exportdialog.h \
-	synctex_parser.h \
-	synctex_parser_utils.h \
 	usertagslistwidget.h \
 	addtagdialog.h \
 	versiondialog.h \
@@ -198,8 +196,6 @@ SOURCES	+= main.cpp \
 	texdocdialog.cpp \
 	scandialog.cpp \
 	exportdialog.cpp \
-	synctex_parser.c \
-	synctex_parser_utils.c \
 	usertagslistwidget.cpp \
 	addtagdialog.cpp \
 	versiondialog.cpp \
