linssid: unbundle QWT

This commit is contained in:
Thomas Tuegel 2015-09-19 11:12:50 -05:00
parent af62eb3347
commit a074852aa6
2 changed files with 50 additions and 3 deletions

View File

@ -0,0 +1,43 @@
From e57f22a5089f194013534c9a9bbc42ee639297f1 Mon Sep 17 00:00:00 2001
From: Thomas Tuegel <ttuegel@gmail.com>
Date: Sat, 19 Sep 2015 11:10:32 -0500
Subject: [PATCH] unbundled qwt
---
linssid-app/linssid-app.pro | 4 +---
linssid.pro | 4 +---
2 files changed, 2 insertions(+), 6 deletions(-)
diff --git a/linssid-app/linssid-app.pro b/linssid-app/linssid-app.pro
index 26f61e7..7b80b60 100644
--- a/linssid-app/linssid-app.pro
+++ b/linssid-app/linssid-app.pro
@@ -19,13 +19,11 @@ QMAKE_CC = gcc
QMAKE_CXX = g++
DEFINES +=
INCLUDEPATH += /usr/include/qt5
-# /usr/local/qwt-6.1.0/include
-INCLUDEPATH += ../qwt-lib/src
# LIBS += /usr/lib/x86_64-linux-gnu/libboost_regex.a
# LIBS += -lboost_regex
LIBS += -l:libboost_regex.a
# /usr/local/qwt-6.1.0/lib/libqwt.a
-LIBS += ../qwt-lib/lib/libqwt.a
+LIBS += -lqwt
QMAKE_CXXFLAGS += -std=c++11
#
TARGET = linssid
diff --git a/linssid.pro b/linssid.pro
index 42dc277..26d1a2c 100644
--- a/linssid.pro
+++ b/linssid.pro
@@ -1,5 +1,3 @@
TEMPLATE = subdirs
CONFIG += ordered
-SUBDIRS = qwt-lib \
- linssid-app
-linssid-app.depends = qwt-lib
+SUBDIRS = linssid-app
--
2.5.2

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, qt5, pkgconfig, boost, wirelesstools, iw }:
{ stdenv, fetchurl, qt5, pkgconfig, boost, wirelesstools, iw, qwt6 }:
stdenv.mkDerivation rec {
name = "linssid-${version}";
@ -9,7 +9,9 @@ stdenv.mkDerivation rec {
sha256 = "13d35rlcjncd8lx3khkgn9x8is2xjd5fp6ns5xsn3w6l4xj9b4gl";
};
buildInputs = [ qt5.base qt5.svg pkgconfig boost ];
buildInputs = [ qt5.base qt5.svg pkgconfig boost qwt6 ];
patches = [ ./0001-unbundled-qwt.patch ];
postPatch = ''
sed -e "s|/usr/include/|/nonexistent/|g" -i linssid-app/*.pro
@ -20,6 +22,9 @@ stdenv.mkDerivation rec {
sed -e "s|iwlist|${wirelesstools}/sbin/iwlist|g" -i linssid-app/Getter.cpp
sed -e "s|iw dev|${iw}/sbin/iw dev|g" -i linssid-app/MainForm.cpp
# Remove bundled qwt
rm -fr qwt-lib
'';
configurePhase = "qmake linssid.pro";
@ -30,6 +35,5 @@ stdenv.mkDerivation rec {
license = licenses.gpl3;
platforms = platforms.linux;
maintainers = [ maintainers.bjornfor ];
broken = true;
};
}