Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Oct 2012 15:01:55 +0000 (UTC)
From:      Steve Wills <swills@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r305206 - in head/graphics/panomatic: . files
Message-ID:  <201210031501.q93F1usK047126@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: swills
Date: Wed Oct  3 15:01:55 2012
New Revision: 305206
URL: http://svn.freebsd.org/changeset/ports/305206

Log:
  - Fix build with clang
  - Switch to SF mirror
  - Add USE_DOS2UNIX
  
  PR:		ports/171859
  Approved by:	Iouri Ivliev <ii@any.com.ru> (maintainer)

Added:
  head/graphics/panomatic/files/patch-libpng-include-png.h   (contents, props changed)
  head/graphics/panomatic/files/patch-libpng-src-pngset.c   (contents, props changed)
  head/graphics/panomatic/files/patch-vigra-include-vigra-diff2d.hxx   (contents, props changed)
  head/graphics/panomatic/files/patch-vigra-include-vigra-rational.hxx   (contents, props changed)
  head/graphics/panomatic/files/patch-zthread-include-zthread-Guard.h   (contents, props changed)
  head/graphics/panomatic/files/patch-zthread-src-ThreadQueue.cxx   (contents, props changed)
  head/graphics/panomatic/files/patch-zthread-src-posix-ThreadOps.cxx   (contents, props changed)
Modified:
  head/graphics/panomatic/Makefile   (contents, props changed)
  head/graphics/panomatic/files/patch-panomatic-PanoDetector.cpp   (contents, props changed)
  head/graphics/panomatic/files/patch-panomatic-PanoDetector.h   (contents, props changed)
  head/graphics/panomatic/files/patch-panomatic-TestCode.h   (contents, props changed)
  head/graphics/panomatic/files/patch-panomatic-main.cpp   (contents, props changed)

Modified: head/graphics/panomatic/Makefile
==============================================================================
--- head/graphics/panomatic/Makefile	Wed Oct  3 14:45:45 2012	(r305205)
+++ head/graphics/panomatic/Makefile	Wed Oct  3 15:01:55 2012	(r305206)
@@ -7,7 +7,7 @@
 PORTNAME=	panomatic
 PORTVERSION=	0.9.4
 CATEGORIES=	graphics
-MASTER_SITES=	http://people.esterdev.com/yury/bicycles/
+MASTER_SITES=	SF
 DISTNAME=	${PORTNAME}-${PORTVERSION}-src
 
 MAINTAINER=	ii@any.com.ru
@@ -17,8 +17,10 @@ BUILD_DEPENDS=	bjam:${PORTSDIR}/devel/bo
 		${LOCALBASE}/include/boost/format.hpp:${PORTSDIR}/devel/boost-libs
 
 GNU_CONFIGURE=	yes
+CONFIGURE_ARGS=	--with-boost=${LOCALBASE}/include
 USE_BZIP2=	yes
 USE_GMAKE=	yes
+USE_DOS2UNIX=	yes
 
 WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
 

Added: head/graphics/panomatic/files/patch-libpng-include-png.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/panomatic/files/patch-libpng-include-png.h	Wed Oct  3 15:01:55 2012	(r305206)
@@ -0,0 +1,11 @@
+--- libpng/include/png.h.orig	2008-02-14 23:14:15.000000000 +0000
++++ libpng/include/png.h	2012-09-24 12:02:46.519169872 +0000
+@@ -2302,7 +2302,7 @@
+ 
+ #if defined(PNG_iCCP_SUPPORTED)
+ extern PNG_EXPORT(void,png_set_iCCP) PNGARG((png_structp png_ptr,
+-   png_infop info_ptr, png_charp name, int compression_type,
++   png_infop info_ptr, png_const_charp name, int compression_type,
+    png_charp profile, png_uint_32 proflen));
+    /* Note to maintainer: profile should be png_bytep */
+ #endif

Added: head/graphics/panomatic/files/patch-libpng-src-pngset.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/panomatic/files/patch-libpng-src-pngset.c	Wed Oct  3 15:01:55 2012	(r305206)
@@ -0,0 +1,11 @@
+--- libpng/src/pngset.c.orig	2008-02-14 23:14:15.000000000 +0000
++++ libpng/src/pngset.c	2012-09-24 12:02:46.529117189 +0000
+@@ -672,7 +672,7 @@
+ #if defined(PNG_iCCP_SUPPORTED)
+ void PNGAPI
+ png_set_iCCP(png_structp png_ptr, png_infop info_ptr,
+-             png_charp name, int compression_type,
++             png_const_charp name, int compression_type,
+              png_charp profile, png_uint_32 proflen)
+ {
+    png_charp new_iccp_name;

Modified: head/graphics/panomatic/files/patch-panomatic-PanoDetector.cpp
==============================================================================
--- head/graphics/panomatic/files/patch-panomatic-PanoDetector.cpp	Wed Oct  3 14:45:45 2012	(r305205)
+++ head/graphics/panomatic/files/patch-panomatic-PanoDetector.cpp	Wed Oct  3 15:01:55 2012	(r305206)
@@ -1,22 +1,20 @@
---- panomatic/PanoDetector.cpp.orig	2008-03-10 21:17:33.000000000 +0100
-+++ panomatic/PanoDetector.cpp	2008-04-26 20:15:44.000000000 +0200
+--- panomatic/PanoDetector.cpp.orig	2008-03-10 20:17:33.000000000 +0000
++++ panomatic/PanoDetector.cpp	2012-09-24 12:02:46.529117189 +0000
 @@ -26,7 +26,7 @@
- 	_sieve1Width(10), _sieve1Height(10), _sieve1Size(10),
- 	_kdTreeSearchSteps(40), _kdTreeSecondDistance(0.15), _sieve2Width(5), _sieve2Height(5),
- 	_sieve2Size(1), _test(false), _cores(utils::getCPUCount()), _ransacIters(1000), _ransacDistanceThres(25),
--	_minimumMatches(4), _linearMatch(false), _linearMatchLen(1), _downscale(true)
-+	_minimumMatches(4), _linearMatch(false), _linearMatchLen(1), _scale(0.5)
- {
- 	
- }
-@@ -67,8 +67,8 @@
- 	cout << "Output file       : " << _outputFile << endl;
- 	cout << "Number of CPU     : " << _cores << endl << endl;
- 	cout << "Input image options" << endl;
--    cout << "  Downscale to half-size : " << (_downscale?"yes":"no") << endl;
--    cout << "SURF Options" << endl;
-+	cout << "  Scale factor : " << _scale << endl;
-+        cout << "SURF Options" << endl;
- 	cout << "  Extended : " << (_extendedSurf?"yes":"no") << endl;
- 	cout << "  Score threshold : " << _surfScoreThreshold << endl;
- 	cout << "Sieve 1 Options" << endl;
+ 	_sieve1Width(10), _sieve1Height(10), _sieve1Size(10),
+ 	_kdTreeSearchSteps(40), _kdTreeSecondDistance(0.15), _sieve2Width(5), _sieve2Height(5),
+ 	_sieve2Size(1), _test(false), _cores(utils::getCPUCount()), _ransacIters(1000), _ransacDistanceThres(25),
+-	_minimumMatches(4), _linearMatch(false), _linearMatchLen(1), _downscale(true)
++	_minimumMatches(4), _linearMatch(false), _linearMatchLen(1), _scale(0.5)
+ {
+ 	
+ }
+@@ -67,7 +67,7 @@
+ 	cout << "Output file       : " << _outputFile << endl;
+ 	cout << "Number of CPU     : " << _cores << endl << endl;
+ 	cout << "Input image options" << endl;
+-    cout << "  Downscale to half-size : " << (_downscale?"yes":"no") << endl;
++    cout << "  Scale factor : " << _scale << endl;
+     cout << "SURF Options" << endl;
+ 	cout << "  Extended : " << (_extendedSurf?"yes":"no") << endl;
+ 	cout << "  Score threshold : " << _surfScoreThreshold << endl;

Modified: head/graphics/panomatic/files/patch-panomatic-PanoDetector.h
==============================================================================
--- head/graphics/panomatic/files/patch-panomatic-PanoDetector.h	Wed Oct  3 14:45:45 2012	(r305205)
+++ head/graphics/panomatic/files/patch-panomatic-PanoDetector.h	Wed Oct  3 15:01:55 2012	(r305206)
@@ -1,22 +1,22 @@
---- panomatic/PanoDetector.h.orig	2008-03-10 21:17:33.000000000 +0100
-+++ panomatic/PanoDetector.h	2008-04-26 20:20:01.000000000 +0200
+--- panomatic/PanoDetector.h.orig	2008-03-10 20:17:33.000000000 +0000
++++ panomatic/PanoDetector.h	2012-09-24 12:02:46.529117189 +0000
 @@ -84,8 +84,8 @@
- 	inline bool getLinearMatch() const { return _linearMatch; }
- 	inline int  getLinearMatchLen() const { return _linearMatchLen; }
- 
--	inline bool	getDownscale() const { return _downscale; }
--    inline void setDownscale(bool iDown) { _downscale = iDown; }
-+	inline float    getScale() const { return _scale; }
-+    inline void setScale(float iScale) { _scale = iScale; }
- 
- 	
- 	inline void addFile(const std::string& iFile) { _files.push_back(iFile); }
+ 	inline bool getLinearMatch() const { return _linearMatch; }
+ 	inline int  getLinearMatchLen() const { return _linearMatchLen; }
+ 
+-	inline bool	getDownscale() const { return _downscale; }
+-    inline void setDownscale(bool iDown) { _downscale = iDown; }
++	inline float	getScale() const { return _scale; }
++    inline void setScale(float iScale) { _scale = iScale; }
+ 
+ 	
+ 	inline void addFile(const std::string& iFile) { _files.push_back(iFile); }
 @@ -126,7 +126,7 @@
- 
- 	bool					_test;
- 	int						_cores;
--    bool                    _downscale;
-+    float                    _scale;
- 	
- 	// list of files
- 	FileNameList_t			_files;
+ 
+ 	bool					_test;
+ 	int						_cores;
+-    bool                    _downscale;
++    float                    _scale;
+ 	
+ 	// list of files
+ 	FileNameList_t			_files;

Modified: head/graphics/panomatic/files/patch-panomatic-TestCode.h
==============================================================================
--- head/graphics/panomatic/files/patch-panomatic-TestCode.h	Wed Oct  3 14:45:45 2012	(r305205)
+++ head/graphics/panomatic/files/patch-panomatic-TestCode.h	Wed Oct  3 15:01:55 2012	(r305206)
@@ -2,8 +2,8 @@
 +++ panomatic/TestCode.h	2008-04-26 20:21:56.000000000 +0200
 @@ -29,7 +29,7 @@
  {
- public:
- 	static void drawRansacMatches(std::string& i1, std::string& i2, 
+ public:
+ 	static void drawRansacMatches(std::string& i1, std::string& i2, 
 -						PointMatchVector_t& iOK, PointMatchVector_t& iNOK, Ransac& iRansac, bool iHalf);
 +						PointMatchVector_t& iOK, PointMatchVector_t& iNOK, Ransac& iRansac, float iScale);
  

Modified: head/graphics/panomatic/files/patch-panomatic-main.cpp
==============================================================================
--- head/graphics/panomatic/files/patch-panomatic-main.cpp	Wed Oct  3 14:45:45 2012	(r305205)
+++ head/graphics/panomatic/files/patch-panomatic-main.cpp	Wed Oct  3 15:01:55 2012	(r305206)
@@ -1,22 +1,28 @@
---- panomatic/main.cpp.orig	2008-03-10 21:19:09.000000000 +0100
-+++ panomatic/main.cpp	2008-04-26 20:26:30.000000000 +0200
+--- panomatic/main.cpp.orig	2008-03-10 20:19:09.000000000 +0000
++++ panomatic/main.cpp	2012-09-24 12:02:46.529117189 +0000
 @@ -92,6 +92,7 @@
- 		MyOutput my;
- 		cmd.setOutput(&my);
- 		
+ 		MyOutput my;
+ 		cmd.setOutput(&my);
+ 		
 +		ValueArg<float> aArgScale("","scale", "Scale image with factor to detect keypoints    (default:0.5)\n", false, 0.5, "float");
- 		SwitchArg aArgFullScale("","fullscale", "Uses full scale image to detect keypoints    (default:false)\n", false);
- 		SwitchArg aArgSurfExtended("","surf128", "Uses extended SURF (128 descriptors)    (default:true)", true);
- 		ValueArg<int> aArgSurfScoreThreshold("","surfscore", "SURF Detection score threshold    (default : 1000)\n", false, 1000, "int");
-@@ -175,8 +176,9 @@
- 		if (aArgSieve2Size.isSet())			ioPanoDetector.setSieve2Size(aArgSieve2Size.getValue());
- 		if (aArgLinearMatch.isSet())		ioPanoDetector.setLinearMatch(aArgLinearMatch.getValue());
- 		if (aArgLinearMatchLen.isSet())		ioPanoDetector.setLinearMatchLen(aArgLinearMatchLen.getValue());
--        if (aArgFullScale.isSet())          ioPanoDetector.setDownscale(false);
--            
-+        if (aArgFullScale.isSet())          ioPanoDetector.setScale(1.);
-+            if (aArgScale.isSet())          ioPanoDetector.setScale(aArgScale.getValue());
-+
- 		if (aArgTest.isSet())				ioPanoDetector.setTest(aArgTest.getValue());
- 		if (aArgCores.isSet())				ioPanoDetector.setCores(aArgCores.getValue());
- 
+ 		SwitchArg aArgFullScale("","fullscale", "Uses full scale image to detect keypoints    (default:false)\n", false);
+ 		SwitchArg aArgSurfExtended("","surf128", "Uses extended SURF (128 descriptors)    (default:true)", true);
+ 		ValueArg<int> aArgSurfScoreThreshold("","surfscore", "SURF Detection score threshold    (default : 1000)\n", false, 1000, "int");
+@@ -130,6 +131,7 @@
+ 		cmd.add(aArgSurfScoreThreshold);		
+ 		cmd.add(aArgSurfExtended);
+ 		cmd.add(aArgFullScale);
++		cmd.add(aArgScale);
+ 		
+ 		//cmd.add( aArgSurfExtended );
+ 
+@@ -175,7 +177,8 @@
+ 		if (aArgSieve2Size.isSet())			ioPanoDetector.setSieve2Size(aArgSieve2Size.getValue());
+ 		if (aArgLinearMatch.isSet())		ioPanoDetector.setLinearMatch(aArgLinearMatch.getValue());
+ 		if (aArgLinearMatchLen.isSet())		ioPanoDetector.setLinearMatchLen(aArgLinearMatchLen.getValue());
+-        if (aArgFullScale.isSet())          ioPanoDetector.setDownscale(false);
++        if (aArgFullScale.isSet())          ioPanoDetector.setScale(1.);
++        if (aArgScale.isSet())          ioPanoDetector.setScale(aArgScale.getValue());
+             
+ 		if (aArgTest.isSet())				ioPanoDetector.setTest(aArgTest.getValue());
+ 		if (aArgCores.isSet())				ioPanoDetector.setCores(aArgCores.getValue());

Added: head/graphics/panomatic/files/patch-vigra-include-vigra-diff2d.hxx
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/panomatic/files/patch-vigra-include-vigra-diff2d.hxx	Wed Oct  3 15:01:55 2012	(r305206)
@@ -0,0 +1,11 @@
+--- vigra/include/vigra/diff2d.hxx.orig	2008-02-14 23:14:15.000000000 +0000
++++ vigra/include/vigra/diff2d.hxx	2012-09-24 12:02:46.539117586 +0000
+@@ -1131,7 +1131,7 @@
+     bool contains(Rect2D const &r) const
+     {
+         return r.isEmpty() ||
+-            contains(r.upperLeft()) && contains(r.lowerRight()-Diff2D(1,1));
++            (contains(r.upperLeft()) && contains(r.lowerRight()-Diff2D(1,1)));
+     }
+ 
+         /** Return whether this rectangle overlaps with the given

Added: head/graphics/panomatic/files/patch-vigra-include-vigra-rational.hxx
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/panomatic/files/patch-vigra-include-vigra-rational.hxx	Wed Oct  3 15:01:55 2012	(r305206)
@@ -0,0 +1,18 @@
+--- vigra/include/vigra/rational.hxx.orig	2008-02-14 23:14:15.000000000 +0000
++++ vigra/include/vigra/rational.hxx	2012-09-24 12:02:46.539117586 +0000
+@@ -1015,6 +1015,7 @@
+     // Handle the easy cases. Take advantage of the fact
+     // that the denominator is never negative.
+     if(l.denominator() == zero)
++    {
+         if(r.denominator() == zero)
+             // -inf < inf, !(-inf < -inf), !(inf < -inf), !(inf < inf)
+             return l.numerator() < r.numerator();
+@@ -1022,6 +1023,7 @@
+             // -inf < -1, -inf < 0, -inf < 1
+             // !(inf < -1), !(inf < 0), !(inf < 1)
+             return l.numerator() < zero;
++    }
+     if(r.denominator() == zero)
+         // -1 < inf, 0 < inf, 1 < inf
+         // !(-1 < -inf), !(0 < -inf), !(1 < -inf)

Added: head/graphics/panomatic/files/patch-zthread-include-zthread-Guard.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/panomatic/files/patch-zthread-include-zthread-Guard.h	Wed Oct  3 15:01:55 2012	(r305206)
@@ -0,0 +1,43 @@
+--- zthread/include/zthread/Guard.h.orig	2008-02-28 23:15:33.000000000 +0000
++++ zthread/include/zthread/Guard.h	2012-09-24 12:02:46.539117586 +0000
+@@ -58,7 +58,7 @@
+  public:
+ 
+   template <class T>
+-  LockHolder(T& t) : _lock(extract(t)._lock), _enabled(true) { }
++  LockHolder(T& t) : _lock(this->extract(t)._lock), _enabled(true) { }
+   
+   LockHolder(LockHolder& holder) : _lock(holder._lock), _enabled(true) { }
+ 
+@@ -114,11 +114,11 @@
+       if(!Scope2::createScope(l, ms)) {
+ 
+         Scope1::destroyScope(l);
+-        return false;
++        return;
+ 
+       }
+        
+-    return true;
++    return;
+ 
+   }
+ 
+@@ -428,7 +428,7 @@
+   template <class U, class V>
+   Guard(Guard<U, V>& g) : LockHolder<LockType>(g) {
+ 
+-    LockingPolicy::shareScope(*this, extract(g));
++    LockingPolicy::shareScope(*this, this->extract(g));
+     
+   }
+ 
+@@ -458,7 +458,7 @@
+   template <class U, class V>
+   Guard(Guard<U, V>& g, LockType& lock) : LockHolder<LockType>(lock) {
+ 
+-    LockingPolicy::transferScope(*this, extract(g));
++    LockingPolicy::transferScope(*this, this->extract(g));
+ 
+   }
+ 

Added: head/graphics/panomatic/files/patch-zthread-src-ThreadQueue.cxx
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/panomatic/files/patch-zthread-src-ThreadQueue.cxx	Wed Oct  3 15:01:55 2012	(r305206)
@@ -0,0 +1,19 @@
+--- zthread/src/ThreadQueue.cxx.orig	2008-02-28 22:51:46.000000000 +0000
++++ zthread/src/ThreadQueue.cxx	2012-09-24 12:02:46.539117586 +0000
+@@ -139,11 +139,13 @@
+     
+     // Wake the main thread,if its waiting, when the last pending-thread becomes available;
+     // Otherwise, take note that no wait for pending threads to finish is needed
+-    if(_userThreads.empty())
+-      if(_waiter && _waiter != (ThreadImpl*)1)
++    if(_userThreads.empty()) {
++      if(_waiter && _waiter != (ThreadImpl*)1) {
+         _waiter->getMonitor().notify();
+-      else
++      } else {
+         _waiter = (ThreadImpl*)!_waiter;
++      }
++    }
+ 
+     ZTDEBUG("1 pending-thread added.\n");
+ 

Added: head/graphics/panomatic/files/patch-zthread-src-posix-ThreadOps.cxx
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/panomatic/files/patch-zthread-src-posix-ThreadOps.cxx	Wed Oct  3 15:01:55 2012	(r305206)
@@ -0,0 +1,11 @@
+--- zthread/src/posix/ThreadOps.cxx.orig	2008-02-28 22:51:46.000000000 +0000
++++ zthread/src/posix/ThreadOps.cxx	2012-09-24 12:02:46.539117586 +0000
+@@ -103,7 +103,7 @@
+   struct sched_param param;
+   int policy = SCHED_OTHER;
+   
+-  if(result = (pthread_getschedparam(impl->_tid, &policy, &param) == 0)) {
++  if((result = (pthread_getschedparam(impl->_tid, &policy, &param) == 0))) {
+     
+     // Convert to one of the PRIORITY values
+     if(param.sched_priority < 10)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201210031501.q93F1usK047126>