media-libs/libpng:0
media-libs/libsdl2[X,opengl,video]
net-libs/enet:1.3
- net-libs/miniupnpc
+ net-libs/miniupnpc:=
net-misc/curl
sys-libs/zlib
virtual/jpeg:62
src_prepare() {
epatch "${FILESDIR}"/${P}-gentoo.patch
+ epatch "${FILESDIR}"/${P}-miniupnpc14.patch
}
src_configure() {
--- /dev/null
+Index: ps/trunk/source/network/NetServer.cpp\r
+===================================================================\r
+--- ps/trunk/source/network/NetServer.cpp (revision 17090)\r
++++ ps/trunk/source/network/NetServer.cpp (revision 17091)\r
+@@ -237,5 +237,9 @@\r
+ }\r
+ // No cached URL, or it did not respond. Try getting a valid UPnP device for 10 seconds.\r
++#if defined(MINIUPNPC_API_VERSION) && MINIUPNPC_API_VERSION >= 14\r
++ else if ((devlist = upnpDiscover(10000, 0, 0, 0, 0, 2, 0)) != NULL)\r
++#else\r
+ else if ((devlist = upnpDiscover(10000, 0, 0, 0, 0, 0)) != NULL)\r
++#endif\r
+ {\r
+ ret = UPNP_GetValidIGD(devlist, &urls, &data, internalIPAddress, sizeof(internalIPAddress));\r