aboutsummaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2004-02-21 13:22:30 +0800
committerdinoex <dinoex@FreeBSD.org>2004-02-21 13:22:30 +0800
commitb7bc7fea8218a8df34522518b5511eb3bc4935fb (patch)
tree5165a4e66de1b2430f162d40be212d13993a24cc /graphics
parentd6c50dded60597d8bd34176f124ce60739b67f22 (diff)
downloadfreebsd-ports-gnome-b7bc7fea8218a8df34522518b5511eb3bc4935fb.tar.gz
freebsd-ports-gnome-b7bc7fea8218a8df34522518b5511eb3bc4935fb.tar.zst
freebsd-ports-gnome-b7bc7fea8218a8df34522518b5511eb3bc4935fb.zip
- Fix perl problem on stable with pmqunat
Submitted by: Thomas Kaehn
Diffstat (limited to 'graphics')
-rw-r--r--graphics/netpbm/Makefile2
-rw-r--r--graphics/netpbm/files/patch-editor-pnmquant39
2 files changed, 40 insertions, 1 deletions
diff --git a/graphics/netpbm/Makefile b/graphics/netpbm/Makefile
index d329351f31c0..779532f55383 100644
--- a/graphics/netpbm/Makefile
+++ b/graphics/netpbm/Makefile
@@ -7,7 +7,7 @@
PORTNAME= netpbm
PORTVERSION= 10.20
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
diff --git a/graphics/netpbm/files/patch-editor-pnmquant b/graphics/netpbm/files/patch-editor-pnmquant
new file mode 100644
index 000000000000..cb5b95577662
--- /dev/null
+++ b/graphics/netpbm/files/patch-editor-pnmquant
@@ -0,0 +1,39 @@
+--- editor/pnmquant Tue Dec 16 17:34:11 2003
++++ editor/pnmquant.new Fri Feb 20 14:31:03 2004
+@@ -13,7 +13,8 @@
+ use Getopt::Long;
+ use File::Temp "tempfile";
+ use File::Spec;
+-use Fcntl ":seek";
++use Fcntl;
++use POSIX qw(SEEK_SET SEEK_CUR SEEK_END);
+
+ my ($TRUE, $FALSE) = (1,0);
+
+@@ -52,7 +53,7 @@
+ my $infile;
+ my $ncolors = $ARGV[0];
+
+- if (!($ncolors =~ m{ ^[[:digit:]]+$ }x ) || $ncolors == 0) {
++ if (!($ncolors =~ m{ ^[\d]+$ }x ) || $ncolors == 0) {
+ print(STDERR
+ "Number of colors argument '$ncolors' is not a positive " .
+ "integer.\n");
+@@ -111,7 +112,7 @@
+ tell(INFH); # Avoids bogus "INFH is not referenced" warning
+ }
+ } else {
+- open(STDIN, "<", $infile)
++ open(STDIN, "<" . $infile)
+ or die("Unable to open input file '$infile'. Errno=$ERRNO");
+ }
+ }
+@@ -152,7 +153,7 @@
+ $spreadOpt = "-spreadbrightness";
+ }
+
+- open(STDOUT, ">", $mapfileSpec);
++ open(STDOUT, ">" . $mapfileSpec);
+
+ my $maprc = system("pnmcolormap", $ncolors, $averageOpt, $spreadOpt);
+