aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2001-08-12 11:48:46 +0800
committerache <ache@FreeBSD.org>2001-08-12 11:48:46 +0800
commit323182798d011304474a0fb7dd972b53b71d2b34 (patch)
tree14d8a310a12c8be50d9db0a2890148c380f007ec
parentc51c8165e863b1cec6ee0a3fab99436186fad275 (diff)
downloadfreebsd-ports-gnome-323182798d011304474a0fb7dd972b53b71d2b34.tar.gz
freebsd-ports-gnome-323182798d011304474a0fb7dd972b53b71d2b34.tar.zst
freebsd-ports-gnome-323182798d011304474a0fb7dd972b53b71d2b34.zip
Fix escapeurl() not expanded and png linking
-rw-r--r--www/WebMagick/Makefile1
-rw-r--r--www/WebMagick/files/patch-aa27
2 files changed, 28 insertions, 0 deletions
diff --git a/www/WebMagick/Makefile b/www/WebMagick/Makefile
index aace9fd1489c..4daede50244a 100644
--- a/www/WebMagick/Makefile
+++ b/www/WebMagick/Makefile
@@ -7,6 +7,7 @@
PORTNAME= WebMagick
PORTVERSION= 2.01
+PORTREVISION= 1
CATEGORIES= www graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= webmagick
diff --git a/www/WebMagick/files/patch-aa b/www/WebMagick/files/patch-aa
new file mode 100644
index 000000000000..36627144dbe8
--- /dev/null
+++ b/www/WebMagick/files/patch-aa
@@ -0,0 +1,27 @@
+--- webmagick.in.bak Thu Aug 9 09:59:52 2001
++++ webmagick.in Sun Aug 12 07:31:59 2001
+@@ -1828,9 +1828,9 @@
+ #
+ my $helphtml = '';
+ if( $haveReadme ) {
+- $helphtml = "<A HREF=\"escapeurl(${opt_readme})\" TARGET=\"$frameTargets{'readmeview'}\">
++ $helphtml = "<A HREF=\"" . escapeurl(${opt_readme}) . "\" TARGET=\"$frameTargets{'readmeview'}\">
+ <IMG SRC=\"$iconImageUrls{'help'}\" $iconImageSizes{'help'} ALT=\"?\" BORDER=0></A>
+- <A HREF=\"escapeurl(${opt_readme})\" TARGET=\"$frameTargets{'readmeview'}\">ReadMe</A><BR>";
++ <A HREF=\"" . escapeurl(${opt_readme}) . "\" TARGET=\"$frameTargets{'readmeview'}\">ReadMe</A><BR>";
+ }
+
+ #
+@@ -2265,10 +2265,10 @@
+ }
+ print( PICHTML ">\n\n" );
+ print( PICHTML "$opt_pichtmltop") if $opt_pichtmltop;
+- if ( $pic =~ /\.(jpg|jpeg?|gif|xbm)$/i ) {
++ if ( $pic =~ /\.(jpg|jpeg?|gif|xbm|png)$/i ) {
+ print( PICHTML "<IMG SRC=\"$pic\">" );
+ } else {
+- print( PICHTML "<A HREF=\"escapeurl($pic)\"><BIG><B>$pic</B></A> ", fsize($pic), "</BIG>" );
++ print( PICHTML "<A HREF=\"", escapeurl($pic), "\"><BIG><B>$pic</B></A> ", fsize($pic), "</BIG>" );
+ }
+ print( PICHTML "$opt_pichtmlbottom\n") if $opt_pichtmlbottom;
+ print( PICHTML "</BODY>\n" );