mirror of
https://git.freebsd.org/ports.git
synced 2025-05-21 03:23:10 -04:00
- Optionize building demos - Fix depends (only depend on GL for demos, fix configure dependency detection by using USES=localbase and pkgconfig) - Fix build of demo code (use older compatible C++ standard and patch some bits) - Use native OPTIONS feature to make options mutually exclusive PR: 254898 Approved by: acm (maintainer)
11 lines
568 B
C++
11 lines
568 B
C++
--- ode/demo/demo_jointPU.cpp.orig 2013-12-06 21:52:14 UTC
|
|
+++ ode/demo/demo_jointPU.cpp
|
|
@@ -579,7 +579,7 @@ int main (int argc, char **argv)
|
|
if (0 == strcmp ("-t", argv[i]) || 0 == strcmp ("--texture-path", argv[i]) ) {
|
|
int j = i+1;
|
|
if ( j+1 > argc || // Check if we have enough arguments
|
|
- argv[j] == '\0' || // We should have a path here
|
|
+ argv[j][0] == '\0' || // We should have a path here
|
|
argv[j][0] == '-' ) // We should have a path not a command line
|
|
Help (argv);
|
|
else
|