Jelajahi Sumber

fix building under FreeBSD/amd64

Ralf S. Engelschall 19 tahun lalu
induk
melakukan
9556ffbdc3
2 mengubah file dengan 26 tambahan dan 5 penghapusan
  1. 25 4
      netpbm/netpbm.patch
  2. 1 1
      netpbm/netpbm.spec

+ 25 - 4
netpbm/netpbm.patch

@@ -1,6 +1,6 @@
 Index: converter/other/jpeg2000/jpeg2ktopam.c
---- converter/other/jpeg2000/jpeg2ktopam.c.orig	2005-03-06 21:27:28 +0100
-+++ converter/other/jpeg2000/jpeg2ktopam.c	2005-04-05 20:22:33 +0200
+--- converter/other/jpeg2000/jpeg2ktopam.c.orig	2005-05-19 17:29:47 +0200
++++ converter/other/jpeg2000/jpeg2ktopam.c	2006-10-24 08:07:49 +0200
 @@ -9,7 +9,6 @@
  *****************************************************************************/
  
@@ -11,7 +11,7 @@ Index: converter/other/jpeg2000/jpeg2ktopam.c
  #include "pam.h"
 Index: converter/other/jpeg2000/pamtojpeg2k.c
 --- converter/other/jpeg2000/pamtojpeg2k.c.orig	2005-02-21 04:56:41 +0100
-+++ converter/other/jpeg2000/pamtojpeg2k.c	2005-04-05 20:22:37 +0200
++++ converter/other/jpeg2000/pamtojpeg2k.c	2006-10-24 08:07:49 +0200
 @@ -9,7 +9,6 @@
  *****************************************************************************/
  
@@ -22,7 +22,7 @@ Index: converter/other/jpeg2000/pamtojpeg2k.c
  #include "pam.h"
 Index: lib/libpm.c
 --- lib/libpm.c.orig	2004-11-20 17:55:27 +0100
-+++ lib/libpm.c	2005-04-05 20:22:46 +0200
++++ lib/libpm.c	2006-10-24 08:07:49 +0200
 @@ -617,7 +617,7 @@
  pm_openr(const char * const name) {
      FILE* f;
@@ -41,3 +41,24 @@ Index: lib/libpm.c
          f = stdout;
      else {
  #ifndef VMS
+Index: lib/pm_gamma.h
+--- lib/pm_gamma.h.orig	2004-06-13 00:53:25 +0200
++++ lib/pm_gamma.h	2006-10-24 08:18:26 +0200
+@@ -5,7 +5,7 @@
+ 
+ #include <math.h>
+ 
+-static __inline__ float
++static float
+ pm_gamma709(float const intensity) {
+ 
+     /* Here are parameters of the gamma transfer function
+@@ -34,7 +34,7 @@
+ 
+ 
+ 
+-static __inline__ float
++static float
+ pm_ungamma709(float const brightness) {
+ 
+     /* These are the same parameters as in pm_gamma, above */

+ 1 - 1
netpbm/netpbm.spec

@@ -33,7 +33,7 @@ Class:        BASE
 Group:        Graphics
 License:      MIT-style
 Version:      10.26.32
-Release:      20061019
+Release:      20061024
 
 #   list of sources
 Source0:      http://switch.dl.sourceforge.net/sourceforge/netpbm/netpbm-%{version}.tgz