Hi,

while trying to get the new dependencies for the coccinella update to build on 
sparc, I found that schroedinger doesn't built there.

appended patch just shuffles the initialization of some variables around to 
make gcc 2.95 happy.

attached patch fixes the problem for me.

please test and OK?

cheers,
Sebastian
? schroedinger_sparc.patch
Index: Makefile
===================================================================
RCS file: /cvs/ports/multimedia/schroedinger/Makefile,v
retrieving revision 1.2
diff -u -r1.2 Makefile
--- Makefile	15 Jan 2010 09:07:27 -0000	1.2
+++ Makefile	20 May 2010 12:06:23 -0000
@@ -3,7 +3,7 @@
 COMMENT=	high-speed Dirac codec
 
 DISTNAME=	schroedinger-1.0.7
-PKGNAME=	${DISTNAME}p0
+PKGNAME=	${DISTNAME}p1
 CATEGORIES=	multimedia
 MASTER_SITES=	${HOMEPAGE}download/schroedinger/
 
Index: patches/patch-schroedinger_schroroughmotion_c
===================================================================
RCS file: patches/patch-schroedinger_schroroughmotion_c
diff -N patches/patch-schroedinger_schroroughmotion_c
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ patches/patch-schroedinger_schroroughmotion_c	20 May 2010 12:06:23 -0000
@@ -0,0 +1,35 @@
+$OpenBSD$
+--- schroedinger/schroroughmotion.c.orig	Thu May 20 12:35:33 2010
++++ schroedinger/schroroughmotion.c	Thu May 20 12:37:48 2010
+@@ -71,7 +71,6 @@ void
+ schro_rough_me_heirarchical_scan_nohint (SchroRoughME *rme, int shift,
+     int distance)
+ {
+-  SCHRO_ASSERT(rme && rme->encoder_frame && rme->ref_frame);
+ 
+   SchroMetricScan scan;
+   SchroMotionVector *mv;
+@@ -85,6 +84,7 @@ schro_rough_me_heirarchical_scan_nohint (SchroRoughME 
+    * that ref_frame != NULL */
+   int ref = rme->ref_frame == rme->encoder_frame->ref_frame[0] ? 0
+     : (rme->ref_frame == rme->encoder_frame->ref_frame[1] ? 1 : -1);
++  SCHRO_ASSERT(rme && rme->encoder_frame && rme->ref_frame);
+   SCHRO_ASSERT(ref != -1);
+ 
+   scan.frame = get_downsampled (rme->encoder_frame, shift);
+@@ -147,7 +147,6 @@ void
+ schro_rough_me_heirarchical_scan_hint (SchroRoughME *rme, int shift,
+     int distance)
+ {
+-  SCHRO_ASSERT (rme && rme->encoder_frame && rme->ref_frame);
+ 
+   SchroMetricScan scan;
+   SchroMotionVector *mv;
+@@ -164,6 +163,7 @@ schro_rough_me_heirarchical_scan_hint (SchroRoughME *r
+    * that ref_frame != NULL */
+   int ref = rme->ref_frame == rme->encoder_frame->ref_frame[0] ? 0
+     : (rme->ref_frame == rme->encoder_frame->ref_frame[1] ? 1 : -1);
++  SCHRO_ASSERT (rme && rme->encoder_frame && rme->ref_frame);
+   SCHRO_ASSERT(ref != -1);
+ 
+ 

Reply via email to