USE_CURL is never set by the Makefile when building on FreeBSD. Have a look at [the patched or unpatched] file ioUrbanTerrorClientSource/Makefile within the distfile ioUrbanTerrorSource_2007_12_20.zip. For the FreeBSD build in that file, USE_CURL is never set as a build variable. It _is_ set for Linux and other OS's.
When installing the iourbanterror port, one is presented with a config menu when beginning the build of the port. Two of the options in that build config menu are "Enable curl support" and "Enable dynamic loading of curl". However because of the Makefile mentioned above these settings never have any effect on the build.
I have a couple of patches that honor the "Enable curl support" config option. I am able to build UrbanTerror with curl support, and the auto-download now works flawlessly. However, I was not able to get the "Enable dynamic loading of curl" to work, and so I've set this to be disabled by default, and I've added a text "(broken?)" as a description to this option. I'm not familiar enough with build processes to fix this problem. Perhaps this option might be taken out of the config options altogether.
P.S. This is a really great game and I recommend it to everyone. Large player base.
Fix: I'm attaching patches to two revised files:
I don't take diffs often, so if I made a mistake in the diff I can try again. Contact me. I also have the modified files "Makefile" and "patch-Makefile"
Patch attached with submission follows:
How-To-Repeat: Build and install games/iourbanterror. Choose whatever build options (won't make a difference). Go to a server with a map that does not exist in the default install. (An example of a map that does not exist in the default install is ut4_uberjumps_beta3.) Attempt the auto-download of this map. It will fail with the message "Unknown error in auto-download". If one examines the source code in cl_main.c, one sees that the USE_CURL preprocessor variable was probably not set. USE_CURL is NEVER set because of the Makefile problem.
Over to maintainer (via the GNATS Auto Assign Tool)
Ask more information to the submitter.
Could you please provide more information about the problem with
CURL_DLOPEN, so it can be fixed too?
Thanks and Best Regards,
alepulver 2008-01-29 04:10:56 UTC
FreeBSD ports repository
- Bump PORTREVISION.
- Fix CURL option (flag wasn't passed to the build).
- Fix CURL_DLOPEN option (was trying to open the wrong file, so remove version:
libcurl.so.4 -> libcurl.so).
The original PR was for games/iourbanterror, but also applies to
Submitted by: "Nerius Landys" <firstname.lastname@example.org>
Revision Changes Path
1.14 +6 -1 ports/games/iourbanterror/Makefile
1.8 +36 -17 ports/games/iourbanterror/files/patch-Makefile
1.3 +8 -1 ports/games/worldofpadman/Makefile
1.2 +37 -15 ports/games/worldofpadman/files/patch-Makefile
email@example.com mailing list
To unsubscribe, send any mail to "firstname.lastname@example.org"
Committed, with minor changes. Thanks!