aboutsummaryrefslogtreecommitdiffstats
path: root/lang/basic256/files/patch-BASIC256.pro
blob: d321e0c1f84e928483ce8791717e303871615572 (plain) (blame)
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
--- BASIC256.pro.orig   2014-06-20 21:01:15.000000000 +0200
+++ BASIC256.pro    2014-06-20 21:03:24.000000000 +0200
@@ -1,8 +1,4 @@
 
-lessThan(QT_MAJOR_VERSION, 5) {
-  message( FATAL_ERROR "BASIC-256 requires QT 5 or better." )
-}
-
 
 TEMPLATE                   =   app
 TARGET                     =   basic256
@@ -13,11 +9,6 @@
 OBJECTS_DIR                    =   tmp/obj
 MOC_DIR                        =   tmp/moc
 
-QT                     +=  webkit
-QT                     +=  gui
-QT                     +=  sql
-QT                     +=  widgets
-QT                     +=  printsupport
 
 RESOURCES                  +=  resources/resource.qrc
 RC_FILE                        =   resources/basic256.rc
@@ -84,7 +75,7 @@
 
    ## TTS Option 2 - use the espeak library
    DEFINES                 +=  ESPEAK
-   INCLUDEPATH             +=  /usr/include/espeak
+   INCLUDEPATH             +=  $$LOCALBASE/include/espeak
    LIBS                    +=  -lespeak
 
    LIBS                    +=  -lm
@@ -99,28 +90,28 @@
 
    # Sound - QT Mobility Multimedia AudioOut
    DEFINES                 +=  SOUND_QMOBILITY
-   QT                      +=  multimedia
-   INCLUDEPATH             +=  QtMultimediaKit
+   INCLUDEPATH             +=  $$LOCALBASE/include/qt5/QtMultimedia
    INCLUDEPATH             +=  QtMobility
+   LIBS                    +=  -L$$LOCALBASE/lib -lQt5Gui -lQt5Core -lQt5Widgets -lQt5Sql -lQt5Multimedia -lQt5PrintSupport
 
 
    ########
    # rules for make install
    ########
    exampleFiles.files      =   ./Examples
-   exampleFiles.path       =   /usr/share/basic256
+   exampleFiles.path       =   $$PREFIX/share/basic256
    INSTALLS                +=  exampleFiles
 
    helpHTMLFiles.files     =   ./wikihelp/help
-   helpHTMLFiles.path      =   /usr/share/basic256
+   helpHTMLFiles.path      =   $$PREFIX/share/basic256
    INSTALLS                +=  helpHTMLFiles
 
    transFiles.files        =   ./Translations/*.qm
-   transFiles.path         =   /usr/share/basic256
+   transFiles.path         =   $$PREFIX/share/basic256
    INSTALLS                +=  transFiles
 
    # main program executable
-   target.path             =   /usr/bin
+   target.path             =   $$PREFIX/bin
    INSTALLS                +=  target
 
 }