Changeset View
Changeset View
Standalone View
Standalone View
head/net-im/ricochet/files/patch-ricochet.pro
--- ricochet.pro.orig 2015-06-17 04:00:47 UTC | --- ricochet.pro.orig 2016-11-04 22:05:33 UTC | ||||
+++ ricochet.pro | +++ ricochet.pro | ||||
@@ -46,18 +46,18 @@ CONFIG(release,debug|release):DEFINES += | @@ -52,18 +52,18 @@ CONFIG(release,debug|release):DEFINES += | ||||
contains(DEFINES, RICOCHET_NO_PORTABLE) { | contains(DEFINES, RICOCHET_NO_PORTABLE) { | ||||
unix:!macx { | unix:!macx { | ||||
- target.path = /usr/bin | - target.path = /usr/bin | ||||
- shortcut.path = /usr/share/applications | - shortcut.path = /usr/share/applications | ||||
+ target.path = $$PREFIX/bin | + target.path = $$PREFIX/bin | ||||
+ shortcut.path = $$PREFIX/share/applications | + shortcut.path = $$PREFIX/share/applications | ||||
shortcut.files = src/ricochet.desktop | shortcut.files = src/ricochet.desktop | ||||
- icon.path = /usr/share/icons/hicolor/48x48/apps/ | - icon.path = /usr/share/icons/hicolor/48x48/apps/ | ||||
+ icon.path = $$PREFIX/share/icons/hicolor/48x48/apps/ | + icon.path = $$PREFIX/share/icons/hicolor/48x48/apps/ | ||||
icon.files = icons/ricochet.png | icon.files = icons/ricochet.png | ||||
- scalable_icon.path = /usr/share/icons/hicolor/scalable/apps/ | - scalable_icon.path = /usr/share/icons/hicolor/scalable/apps/ | ||||
+ scalable_icon.path = $$PREFIX/share/icons/hicolor/scalable/apps/ | + scalable_icon.path = $$PREFIX/share/icons/hicolor/scalable/apps/ | ||||
scalable_icon.files = icons/ricochet.svg | scalable_icon.files = icons/ricochet.svg | ||||
INSTALLS += target shortcut icon scalable_icon | INSTALLS += target shortcut icon scalable_icon | ||||
exists(tor) { | exists(tor) { | ||||
message(Adding bundled Tor to installations) | message(Adding bundled Tor to installations) | ||||
- bundletor.path = /usr/lib/ricochet/tor/ | - bundletor.path = /usr/lib/ricochet/tor/ | ||||
+ bundletor.path = $$PREFIX/lib/ricochet/tor/ | + bundletor.path = $$PREFIX/lib/ricochet/tor/ | ||||
bundletor.files = tor/* | bundletor.files = tor/* | ||||
INSTALLS += bundletor | INSTALLS += bundletor | ||||
DEFINES += BUNDLED_TOR_PATH=\\\"/usr/lib/ricochet/tor/\\\" | DEFINES += BUNDLED_TOR_PATH=\\\"/usr/lib/ricochet/tor/\\\" | ||||
@@ -108,7 +108,10 @@ INCLUDEPATH += src | |||||
unix { | |||||
!isEmpty(OPENSSLDIR) { | |||||
- INCLUDEPATH += $${OPENSSLDIR}/include | |||||
+ !equals(OPENSSLDIR, "/usr") { | |||||
+ # adding /usr/include to INCLUDEPATH breaks STL's include logic | |||||
+ INCLUDEPATH += $${OPENSSLDIR}/include | |||||
+ } | |||||
LIBS += -L$${OPENSSLDIR}/lib -lcrypto | |||||
} else:macx:!packagesExist(libcrypto) { | |||||
# Fall back to the OS-provided 0.9.8 if no other libcrypto is present |