datovka/datovka-fix-pro.patch
Tomáš Chvátal ea33b45b22 Accepting request 382842 from home:pluskalm:branches:network
- Update to 4.5.3
- Build with optflags
- Use macros for desktop file and icon handling

OBS-URL: https://build.opensuse.org/request/show/382842
OBS-URL: https://build.opensuse.org/package/show/network/datovka?expand=0&rev=11
2016-04-01 09:45:49 +00:00

66 lines
1.3 KiB
Diff

Index: datovka.pro
===================================================================
--- datovka.pro.orig
+++ datovka.pro
@@ -61,7 +61,6 @@ isEqual(QT_MAJOR_VERSION, $${REQUIRED_MA
#LIBISDS_PREFIX = "$$HOME/third_party/built"
DEFINES += \
- DEBUG=1 \
VERSION=\\\"$${VERSION}\\\"
unix:!macx {
@@ -110,12 +109,6 @@ unix:!macx {
localisation.files += locale/datovka_cs.qm \
locale/datovka_en.qm
- additional.path = "$${TEXT_FILES_INST_DIR}"
- additional.files = \
- AUTHORS \
- COPYING \
- README
-
DEFINES += DATADIR=\\\"$$DATADIR\\\" \
PKGDATADIR=\\\"$$PKGDATADIR\\\" \
LOCALE_INST_DIR="\"\\\"$${LOCALE_INST_DIR}\\\"\"" \
@@ -133,16 +126,19 @@ unix:!macx {
icon64 \
icon128 \
icon256 \
- localisation \
- additional
+ localisation
}
}
QMAKE_CXXFLAGS = \
- -g -O0 -std=c++11 \
+ -g -std=c++11 $$(CXXFLAGS) \
-Wall -Wextra -pedantic \
-Isrc/views
+QMAKE_CFLAGS += \
+ -g $$(CFLAGS) \
+ -Wall -Wextra -pedantic
+
INCLUDEPATH += \
src
@@ -211,15 +207,8 @@ macx {
locale/datovka_en.qm
localisation.files += locale/qtbase_cs.qm
- additional.path = "Contents/Resources"
- additional.files = \
- AUTHORS \
- COPYING \
- ChangeLog
-
QMAKE_BUNDLE_DATA +=\
- localisation \
- additional
+ localisation
}
win32 {