aboutsummaryrefslogtreecommitdiff
path: root/graphics/hugin
diff options
context:
space:
mode:
authorRaphael Kubo da Costa <rakuco@FreeBSD.org>2015-12-04 14:03:30 +0000
committerRaphael Kubo da Costa <rakuco@FreeBSD.org>2015-12-04 14:03:30 +0000
commitfe8a500407ed54670ec8e7e2e23c83a54f3d2478 (patch)
treea1ac2be825bef10f39396fe2165087927766456a /graphics/hugin
parentb3ea4221c6887d7b27aaaecd174493f533a8b811 (diff)
downloadports-fe8a500407ed54670ec8e7e2e23c83a54f3d2478.tar.gz
ports-fe8a500407ed54670ec8e7e2e23c83a54f3d2478.zip
Fix the build on 9.x.
Add a missing include so that the port builds on 9.3-{amd64,i386}: /wrkdirs/usr/ports/graphics/hugin/work/hugin-2015.0.0/src/hugin_cpfind/localfeatures/RansacFiltering.cpp: In function 'int genint(int)': /wrkdirs/usr/ports/graphics/hugin/work/hugin-2015.0.0/src/hugin_cpfind/localfeatures/RansacFiltering.cpp:28:31: error: 'rand' was not declared in this scope return (int)((double)rand()*x/(double)RAND_MAX); ^ /wrkdirs/usr/ports/graphics/hugin/work/hugin-2015.0.0/src/hugin_cpfind/localfeatures/RansacFiltering.cpp:28:43: error: 'RAND_MAX' was not declared in this scope return (int)((double)rand()*x/(double)RAND_MAX); ^ The quarterly branch is not affected, it still contains hugin 2013.0.0. Approved by: portmgr blanket approval (trivial and tested build fix)
Notes
Notes: svn path=/head/; revision=402987
Diffstat (limited to 'graphics/hugin')
-rw-r--r--graphics/hugin/files/patch-src_hugin__cpfind_localfeatures_RansacFiltering.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/graphics/hugin/files/patch-src_hugin__cpfind_localfeatures_RansacFiltering.cpp b/graphics/hugin/files/patch-src_hugin__cpfind_localfeatures_RansacFiltering.cpp
new file mode 100644
index 000000000000..10b9b1e92fcf
--- /dev/null
+++ b/graphics/hugin/files/patch-src_hugin__cpfind_localfeatures_RansacFiltering.cpp
@@ -0,0 +1,19 @@
+Fixes the build on 9.x:
+
+/wrkdirs/usr/ports/graphics/hugin/work/hugin-2015.0.0/src/hugin_cpfind/localfeatures/RansacFiltering.cpp: In function 'int genint(int)':
+/wrkdirs/usr/ports/graphics/hugin/work/hugin-2015.0.0/src/hugin_cpfind/localfeatures/RansacFiltering.cpp:28:31: error: 'rand' was not declared in this scope
+ return (int)((double)rand()*x/(double)RAND_MAX);
+ ^
+/wrkdirs/usr/ports/graphics/hugin/work/hugin-2015.0.0/src/hugin_cpfind/localfeatures/RansacFiltering.cpp:28:43: error: 'RAND_MAX' was not declared in this scope
+ return (int)((double)rand()*x/(double)RAND_MAX);
+ ^
+--- src/hugin_cpfind/localfeatures/RansacFiltering.cpp.orig 2015-12-04 12:57:44 UTC
++++ src/hugin_cpfind/localfeatures/RansacFiltering.cpp
+@@ -20,6 +20,7 @@
+
+ #include "RansacFiltering.h"
+ #include "Homography.h"
++#include <stdlib.h>
+
+ using namespace std;
+