Index: head/net-im/ricochet/Makefile =================================================================== --- head/net-im/ricochet/Makefile (revision 455078) +++ head/net-im/ricochet/Makefile (revision 455079) @@ -1,45 +1,43 @@ # Created by: Yuri Victorovich # $FreeBSD$ PORTNAME= ricochet PORTVERSION= 1.1.4 DISTVERSIONPREFIX= v PORTREVISION= 9 CATEGORIES= net-im net-p2p MAINTAINER= yuri@FreeBSD.org COMMENT= Anonymous peer-to-peer instant messenger LICENSE= RICOCHET LICENSE_NAME= Ricochet LICENSE_FILE= ${WRKSRC}/LICENSE LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept LIB_DEPENDS= libprotobuf.so:devel/protobuf -OPTIONS_DEFINE= TOR -OPTIONS_DEFAULT= TOR -TOR_DESC= Install Tor: it is required for ${PORTNAME} to run - USES= compiler:c++11-lib gmake pkgconfig qmake ssl USE_GITHUB= yes GH_ACCOUNT= ricochet-im USE_QT5= core gui multimedia network qml quick quickcontrols widgets \ buildtools_build linguisttools_build USE_GL= gl QMAKE_ARGS+= DEFINES+=RICOCHET_NO_PORTABLE OPENSSLDIR=${OPENSSLBASE} +OPTIONS_DEFINE= TOR +OPTIONS_DEFAULT= TOR +TOR_DESC= Install Tor: it is required for ${PORTNAME} to run + +TOR_RUN_DEPENDS= tor:security/tor + PLIST_FILES= bin/ricochet \ share/applications/ricochet.desktop \ share/icons/hicolor/48x48/apps/ricochet.png \ share/icons/hicolor/scalable/apps/ricochet.svg -TOR_RUN_DEPENDS= tor:security/tor - -.include - post-patch: @${REINPLACE_CMD} -E 's| -fsanitize=[a-z-]+| |g' \ ${WRKSRC}/hardened.pri -.include +.include Index: head/net-im/ricochet/files/patch-ricochet.pro =================================================================== --- head/net-im/ricochet/files/patch-ricochet.pro (revision 455078) +++ head/net-im/ricochet/files/patch-ricochet.pro (revision 455079) @@ -1,26 +1,38 @@ ---- ricochet.pro.orig 2015-06-17 04:00:47 UTC +--- ricochet.pro.orig 2016-11-04 22:05:33 UTC +++ 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) { unix:!macx { - target.path = /usr/bin - shortcut.path = /usr/share/applications + target.path = $$PREFIX/bin + shortcut.path = $$PREFIX/share/applications shortcut.files = src/ricochet.desktop - icon.path = /usr/share/icons/hicolor/48x48/apps/ + icon.path = $$PREFIX/share/icons/hicolor/48x48/apps/ icon.files = icons/ricochet.png - scalable_icon.path = /usr/share/icons/hicolor/scalable/apps/ + scalable_icon.path = $$PREFIX/share/icons/hicolor/scalable/apps/ scalable_icon.files = icons/ricochet.svg INSTALLS += target shortcut icon scalable_icon exists(tor) { message(Adding bundled Tor to installations) - bundletor.path = /usr/lib/ricochet/tor/ + bundletor.path = $$PREFIX/lib/ricochet/tor/ bundletor.files = tor/* INSTALLS += bundletor 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