1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
Description: Use pkg-config to link against rtmidi
This fixes the FTBFS with new versions of RtMidi where the include directory
has moved and a -I flag is now needed.
Author: James Cowgill <jcowgill@debian.org>
Forwarded: Devin Anderson <surfacepatterns@gmail.com>
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/src/src.pro
+++ b/src/src.pro
@@ -63,7 +63,7 @@ isEmpty(DATADIR) {
MIDISNOOP_DATA_INSTALL_PATH = $${DATADIR}
}
-CONFIG += console warn_on
+CONFIG += console link_pkgconfig warn_on
DEFINES += MIDISNOOP_MAJOR_VERSION=$${MAJOR_VERSION} \
MIDISNOOP_MINOR_VERSION=$${MINOR_VERSION} \
MIDISNOOP_REVISION=$${REVISION}
@@ -83,7 +83,7 @@ HEADERS += aboutview.h \
messageview.h \
util.h \
view.h
-LIBS += -lrtmidi
+PKGCONFIG += rtmidi
MOC_DIR = $${MAKEDIR}
OBJECTS_DIR = $${MAKEDIR}
QT += core gui uitools widgets
|