games-fps/urbanterror: fix building when USE=-curl is specified (bug #572074)

Package-Manager: portage-2.2.26
This commit is contained in:
Michael Sterrett
2016-04-02 14:52:04 -04:00
parent 2f8e9c8cf9
commit 427bb38ba9
2 changed files with 19 additions and 1 deletions

View File

@@ -0,0 +1,16 @@
fix building when USE=-curl is specified (bug #572074)
--- ./code/client/cl_main.c.orig
+++ ./code/client/cl_main.c
@@ -1872,7 +1872,11 @@
}
qboolean CL_IsDownloading(void) {
+#if USE_CURL
return clc.cURLUsed;
+#else
+ return qfalse;
+#endif
}
/*

View File

@@ -81,7 +81,9 @@ src_unpack() {
}
src_prepare() {
epatch "${FILESDIR}"/${PN}-${ENGINE_PV}-build.patch
epatch \
"${FILESDIR}"/${PN}-${ENGINE_PV}-build.patch \
"${FILESDIR}"/${PN}-${ENGINE_PV}-nocurl.patch
}
src_compile() {