ports/net-p2p/retroshare/files/patch-libretroshare_src_libretroshare.pro
Tobias Kortkamp 56900eadb9 net-p2p/retroshare: Switch from devel/upnp to net/miniupnpc
RetroShare does not build with upnp >= 1.8.  Upstream does not have
a solution for this yet other than suggesting to switch to using
miniupnpc as a workaround.

PR:		237406
Submitted by:	tobik
Approved by:	peter@netkey.at (maintainer)
2019-04-22 08:26:59 +00:00

20 lines
768 B
INI

--- libretroshare/src/libretroshare.pro.orig 2018-03-13 19:25:38 UTC
+++ libretroshare/src/libretroshare.pro
@@ -341,13 +341,14 @@ mac {
freebsd-* {
INCLUDEPATH *= /usr/local/include/gpgme
- INCLUDEPATH *= /usr/local/include/glib-2.0
+ INCLUDEPATH += $$system(pkg-config --cflags glib-2.0 | sed -e "s/-I//g")
QMAKE_CXXFLAGS *= -Dfseeko64=fseeko -Dftello64=ftello -Dstat64=stat -Dstatvfs64=statvfs -Dfopen64=fopen
# linux/bsd can use either - libupnp is more complete and packaged.
- #CONFIG += upnp_miniupnpc
- CONFIG += upnp_libupnp
+ CONFIG += upnp_miniupnpc
+ DEFINES *= PLUGIN_DIR=\"\\\"$${PLUGIN_DIR}\\\"\"
+ DEFINES *= DATA_DIR=\"\\\"$${DATA_DIR}\\\"\"
}
################################# OpenBSD ##########################################