From ea935b06edc47d9eb9b09ce586fc5330883f38ed Mon Sep 17 00:00:00 2001 From: sthen Date: Fri, 17 Jul 2009 18:19:52 +0000 Subject: [PATCH] comment-out function having no effect; drops RAM use by 30x. from upstream svn r3895 --- graphics/autopano-sift-c/Makefile | 6 +++--- .../patches/patch-APSCpp_APSCpp_c | 16 ++++++++++++++++ 2 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 graphics/autopano-sift-c/patches/patch-APSCpp_APSCpp_c diff --git a/graphics/autopano-sift-c/Makefile b/graphics/autopano-sift-c/Makefile index 0039d5327e0..3f24117b0a5 100644 --- a/graphics/autopano-sift-c/Makefile +++ b/graphics/autopano-sift-c/Makefile @@ -1,9 +1,9 @@ -# $OpenBSD: Makefile,v 1.3 2009/05/27 12:59:45 sthen Exp $ +# $OpenBSD: Makefile,v 1.4 2009/07/17 18:19:52 sthen Exp $ COMMENT = identify control points from groups of overlapping images DISTNAME = autopano-sift-C-2.5.0 -PKGNAME = ${DISTNAME:S/C/c/}p1 +PKGNAME = ${DISTNAME:S/C/c/}p2 CATEGORIES = graphics @@ -34,7 +34,7 @@ NO_REGRESS = Yes # dos line-endings in file needing patch post-extract: - @perl -i -pe 's/\r$$//' ${WRKSRC}/CMakeLists.txt + @cd ${WRKSRC}; perl -i -pe 's/\r$$//' CMakeLists.txt APSCpp/APSCpp.c pre-configure: ${SUBST_CMD} ${WRKSRC}/CMakeModules/FindPNG.cmake diff --git a/graphics/autopano-sift-c/patches/patch-APSCpp_APSCpp_c b/graphics/autopano-sift-c/patches/patch-APSCpp_APSCpp_c new file mode 100644 index 00000000000..ee40e723953 --- /dev/null +++ b/graphics/autopano-sift-c/patches/patch-APSCpp_APSCpp_c @@ -0,0 +1,16 @@ +$OpenBSD: patch-APSCpp_APSCpp_c,v 1.1 2009/07/17 18:19:52 sthen Exp $ + +comment-out function having no effect; drops RAM use by 30x. +from upstream svn r3895 + +--- APSCpp/APSCpp.c.orig Wed Jul 23 23:16:59 2008 ++++ APSCpp/APSCpp.c Fri Jul 17 19:11:52 2009 +@@ -327,7 +327,7 @@ KeypointXMLList * GenerateKeyspp( char * imgname, int + // create result map + pn = ImageMap_new( dwid, dhgt ); + // smooth the source +- ImageMap_GaussianConvolution( picMap, 0.75 * Scale ); ++ //ImageMap_GaussianConvolution( picMap, 0.75 * Scale ); // NO EFFECT. + LoweFeatureDetector_SetPreprocSigma( 0 ); + // set up coordinate mapping + if( pdi ){ // ++ mode