From kcwu@kcwu.dyndns.org  Sun Dec 22 12:25:10 2002
Return-Path: <kcwu@kcwu.dyndns.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id EC2B737B401
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 22 Dec 2002 12:25:09 -0800 (PST)
Received: from mail2in.giga.net.tw (mail2in.giga.net.tw [203.133.1.16])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 2F05943EDA
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 22 Dec 2002 12:25:09 -0800 (PST)
	(envelope-from kcwu@kcwu.dyndns.org)
Received: from kcwu.homeip.net (u142-187.u61-70.giga.net.tw [61.70.142.187])
	by mail2in.giga.net.tw (Postfix) with ESMTP id AD04553536
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 23 Dec 2002 04:25:07 +0800 (CST)
Received: from kcwu.dyndns.org (m722 [192.168.0.234])
	by kcwu.homeip.net (8.12.5/8.12.5) with ESMTP id gBMKP5QD036090
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 23 Dec 2002 04:25:05 +0800 (CST)
	(envelope-from kcwu@kcwu.dyndns.org)
Received: (from kcwu@localhost)
	by kcwu.dyndns.org (8.12.6/8.12.6/Submit) id gBMKP6Wi044846;
	Mon, 23 Dec 2002 04:25:06 +0800 (CST)
Message-Id: <200212222025.gBMKP6Wi044846@kcwu.dyndns.org>
Date: Mon, 23 Dec 2002 04:25:06 +0800 (CST)
From: Kuang-che Wu <kcwu@kcwu.homeip.net>
Reply-To: Kuang-che Wu <kcwu@kcwu.homeip.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Fix build on -current for graphics/kdc2tiff
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         46476
>Category:       ports
>Synopsis:       Fix build on -current for graphics/kdc2tiff
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Dec 22 12:30:02 PST 2002
>Closed-Date:    Mon Dec 23 00:12:39 PST 2002
>Last-Modified:  Mon Dec 23 00:12:39 PST 2002
>Originator:     Kuang-che Wu
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD m722 5.0-CURRENT FreeBSD 5.0-CURRENT #0: Tue Nov 26 18:00:18 CST 2002 root@m722:/usr/obj/usr/src/sys/M722 i386


	
>Description:
	Fix build on -current for graphics/kdc2tiff
	
>How-To-Repeat:
	
>Fix:
diff -urN kdc2tiff/files/patch-GFilter.cpp kdc2tiff.new/files/patch-GFilter.cpp
--- kdc2tiff/files/patch-GFilter.cpp	Thu Jan  1 08:00:00 1970
+++ kdc2tiff.new/files/patch-GFilter.cpp	Mon Dec 23 04:23:34 2002
@@ -0,0 +1,11 @@
+--- GFilter.cpp.orig	Mon Dec 23 04:20:42 2002
++++ GFilter.cpp	Mon Dec 23 04:21:00 2002
+@@ -26,7 +26,7 @@
+   green = *(short*)(((char*)table)+(green&0xFFFE));
+   blue = *(short*)(((char*)table)+(blue&0xFFFE));
+ }
+-void GFilter_GammaCorrection::setGammaCorrection(float gamma=1) {
++void GFilter_GammaCorrection::setGammaCorrection(float gamma) {
+   // create table
+   if (table)
+     delete[] table;
diff -urN kdc2tiff/files/patch-GICBayer.cpp kdc2tiff.new/files/patch-GICBayer.cpp
--- kdc2tiff/files/patch-GICBayer.cpp	Thu Jan  1 08:00:00 1970
+++ kdc2tiff.new/files/patch-GICBayer.cpp	Mon Dec 23 04:23:34 2002
@@ -0,0 +1,29 @@
+--- GICBayer.cpp.orig	Mon Dec 23 04:19:54 2002
++++ GICBayer.cpp	Mon Dec 23 04:20:21 2002
+@@ -236,7 +236,7 @@
+ 
+ GICBayer_Green::GICBayer_Green(const unsigned char* imagedata, 
+ 			       int width, int height, 
+-			       float maxerr=0)
++			       float maxerr)
+   : GImageComponent(width,height,maxerr) {
+ 
+   /* initialize arrays
+@@ -428,7 +428,7 @@
+ GICBayer_Red::GICBayer_Red(const unsigned char* imagedata, 
+ 				   int width, int height, 
+ 				   GImageComponent& green,
+-				   float maxerr=0)
++				   float maxerr)
+   : GImageComponent(width,height,maxerr) {
+ 
+   if ((green.getWidth()!=w)||(green.getHeight()!=h)) {
+@@ -617,7 +617,7 @@
+ GICBayer_Blue::GICBayer_Blue(const unsigned char* imagedata, 
+ 			     int width, int height, 
+ 			     GImageComponent& green,
+-			     float maxerr=0)
++			     float maxerr)
+   : GImageComponent(width,height,maxerr) {
+ 
+   if ((green.getWidth()!=w)||(green.getHeight()!=h)) {
diff -urN kdc2tiff/files/patch-GImageComponent.cpp kdc2tiff.new/files/patch-GImageComponent.cpp
--- kdc2tiff/files/patch-GImageComponent.cpp	Thu Jan  1 08:00:00 1970
+++ kdc2tiff.new/files/patch-GImageComponent.cpp	Mon Dec 23 04:23:34 2002
@@ -0,0 +1,11 @@
+--- GImageComponent.cpp.orig	Mon Dec 23 04:19:27 2002
++++ GImageComponent.cpp	Mon Dec 23 04:19:39 2002
+@@ -283,7 +283,7 @@
+ 
+ GImageComponent0::GImageComponent0(const unsigned char* imagedata, 
+ 				   int width, int height, 
+-				   float maxerr=0)
++				   float maxerr)
+   : GImageComponent(width,height,maxerr) {
+ 
+   int itter;

	


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: ijliao 
State-Changed-When: Mon Dec 23 00:12:25 PST 2002 
State-Changed-Why:  
committed, thanks 

http://www.freebsd.org/cgi/query-pr.cgi?pr=46476 
>Unformatted:
