1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-20 08:27:15 +00:00

- Update to version 1.1.9

PR:		187968
Submitted by:	Ports Fury
This commit is contained in:
Martin Wilke 2014-04-26 02:28:18 +00:00
parent 8919b0ebad
commit 49d03f5ff3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=352211
5 changed files with 20 additions and 173 deletions

View File

@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= XmHTML
PORTVERSION= 1.1.8
PORTVERSION= 1.1.9
CATEGORIES= x11-toolkits www
MASTER_SITES= SF/${PORTNAME:L}
EXTRACT_SUFX= .tgz
@ -27,10 +27,14 @@ do-install:
(cd ${WRKSRC}/include/XmHTML && ${INSTALL_DATA} *.h \
${STAGEDIR}${PREFIX}/include/XmHTML)
@${MKDIR} ${STAGEDIR}${DOCSDIR}
@(cd ${WRKSRC}/html && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
@(cd ${WRKSRC}/html && ${FIND} . ! -name "*Makefile*" | \
${CPIO} --quiet -dump -R ${SHAREOWN}:${SHAREGRP} \
${STAGEDIR}${DOCSDIR})
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
.for i in book contrib examples
@(cd ${WRKSRC} && ${COPYTREE_SHARE} ${i} ${STAGEDIR}${EXAMPLESDIR})
@(cd ${WRKSRC} && ${FIND} ${i} ! -name "*Makefile*" | \
${CPIO} --quiet -dump -R ${SHAREOWN}:${SHAREGRP} \
${STAGEDIR}${EXAMPLESDIR})
.endfor
.include <bsd.port.mk>

View File

@ -1,2 +1,2 @@
SHA256 (XmHTML-1.1.8.tgz) = 5cce9b961c15bd5eac030a8edab55b62298367b2f33b5c5bdc3a1dbbf06efcd5
SIZE (XmHTML-1.1.8.tgz) = 1327485
SHA256 (XmHTML-1.1.9.tgz) = 264da26421a612e4cb05a75d874785b843afe2ce7598260ec19cedeb32628da2
SIZE (XmHTML-1.1.9.tgz) = 1349743

View File

@ -1,6 +1,6 @@
--- Makefile.orig
+++ Makefile
@@ -43,7 +43,7 @@
@@ -46,7 +46,7 @@
# remove the examples directory from this line.
# If you want to build the XmHTML tutorial examples, add the book directory.
@ -9,7 +9,7 @@
# some common definitions
#
@@ -58,7 +58,7 @@
@@ -61,7 +61,7 @@
RANLIB= ranlib
SHELL = /bin/sh
@ -18,20 +18,20 @@
# change this to makedepend if your system doesn't have gcc
MAKEDEPEND= gccmakedep
@@ -67,9 +67,9 @@
@@ -70,9 +70,9 @@
# Compiler Settings #
# #
#####################
-CC = gcc
-CFLAGS = -g -funroll-loops -Wall -pipe -ansi
-CFLAGS = -g -funroll-loops -Wall -pipe -ansi $(EXTRA_CFLAGS)
-LDFLAGS =
+#CC = gcc
+#CFLAGS = -g -funroll-loops -Wall -pipe -ansi
+#LDFLAGS =
+#CFLAGS = -g -funroll-loops -Wall -pipe -ansi $(EXTRA_CFLAGS)
+#LDFLAGS =
# The following flags are *very* usefull if you are getting unresolved
# references to functions in libraries that you *know* to exist.
@@ -122,7 +122,7 @@
@@ -125,7 +125,7 @@
# HAVE_LIBZ => zlib.h
ZLIBINC =
@ -40,7 +40,7 @@
# Image libraries
# No need to add -lXpm if you need to include it with LIBS below
@@ -133,7 +133,7 @@
@@ -136,7 +136,7 @@
# HAVE_LIBZ => libz (and possibly libm)
ZLIBLIB = -lz -lm
@ -49,7 +49,7 @@
# It might be troublesome to know what the correct defines are for your
# system. A possible set of defines for some OS's is given below. Pick
@@ -173,7 +173,7 @@
@@ -176,7 +176,7 @@
# Add -DDEBUG to enable selective debug output (see the file DEBUGGING for more
# info).
#
@ -58,7 +58,7 @@
$(EXTRA_CPPFLAGS) \
$(IMAGEDEFINES) \
$(XFT_DEFINES)
@@ -183,7 +183,7 @@
@@ -186,7 +186,7 @@
# Platform specific includes
ifeq ($(PLATFORM),Motif)
@ -67,7 +67,7 @@
else
ifeq ($(PLATFORM),gtk)
PLATFORMINC=\
@@ -206,7 +206,7 @@
@@ -209,7 +209,7 @@
# Motif version (default)
ifeq ($(PLATFORM),Motif)

View File

@ -1,149 +0,0 @@
--- lib/common/readPNG.c.orig 1998-11-16 23:56:19.000000000 +0100
+++ lib/common/readPNG.c 2012-05-26 14:16:45.000000000 +0200
@@ -184,9 +184,11 @@
int i, idx, npass;
int width, height, color_type;
int ncolors, max_colors;
- float gamma, fg_gamma;
+ float gamma;
+ double fg_gamma;
Boolean has_alpha = False, has_cmap = False, do_gamma = True;
png_bytep *row_ptrs;
+ png_colorp palette;
char msg[128];
static XmHTMLRawImageData *img_data;
@@ -265,17 +267,18 @@
ResetRawImage(img_data);
/* save width & height */
- width = img_data->width = info_ptr->width;
- height = img_data->height = info_ptr->height;
+ width = img_data->width = png_get_image_width(png_ptr, info_ptr);
+ height = img_data->height = png_get_image_height(png_ptr, info_ptr);
/* image depth */
- ib->depth = info_ptr->bit_depth;
+ ib->depth = png_get_bit_depth(png_ptr, info_ptr);
/* no of colors */
- ncolors = img_data->cmapsize = info_ptr->num_palette;
+ png_get_PLTE(png_ptr, info_ptr, &palette, &ncolors);
+ img_data->cmapsize = ncolors;
/* type of image */
- color_type = info_ptr->color_type;
+ color_type = png_get_color_type(png_ptr, info_ptr);
/*
* The fun stuff. This is based on readPNG by Greg Roelofs as found
@@ -306,7 +309,7 @@
* Actual image creation is postponed until the image is
* needed.
*/
- if(info_ptr->valid & PNG_INFO_tRNS)
+ if(png_get_valid(png_ptr, info_ptr, PNG_INFO_tRNS))
{
_XmHTMLDebug(15, ("readPNG.c: tRNS chunk present\n"));
png_set_expand(png_ptr);
@@ -319,9 +322,9 @@
AllocRawImageCmap(img_data, ncolors);
for(i = 0; i < ncolors; i++)
{
- GETR(img_data->cmap[i]) = info_ptr->palette[i].red;
- GETG(img_data->cmap[i]) = info_ptr->palette[i].green;
- GETB(img_data->cmap[i]) = info_ptr->palette[i].blue;
+ GETR(img_data->cmap[i]) = palette[i].red;
+ GETG(img_data->cmap[i]) = palette[i].green;
+ GETB(img_data->cmap[i]) = palette[i].blue;
}
has_cmap = True;
data = (Byte*)malloc(width*height*sizeof(Byte));
@@ -355,7 +358,7 @@
* grayscale with transparency is expanded to RGB with alpha
* channel.
*/
- if(info_ptr->valid & PNG_INFO_tRNS)
+ if(png_get_valid(png_ptr, info_ptr, PNG_INFO_tRNS))
{
_XmHTMLDebug(15, ("readPNG.c: tRNS chunk present\n"));
png_set_gray_to_rgb(png_ptr);
@@ -434,7 +437,7 @@
break;
default:
sprintf(msg, "bad PNG image: unknown color type (%d)",
- info_ptr->color_type);
+ png_get_color_type(png_ptr, info_ptr));
my_png_error(png_ptr, msg);
break;
}
@@ -444,16 +447,18 @@
* Doing that for alpha channel images would change the colortype of the
* current image, leading to weird results.
*/
- if(!has_alpha && info_ptr->valid & PNG_INFO_bKGD)
+ if(!has_alpha && png_get_valid(png_ptr, info_ptr, PNG_INFO_bKGD))
{
- png_set_background(png_ptr, &(info_ptr->background),
+ png_color_16p background;
+ png_get_bKGD(png_ptr, info_ptr, &background);
+ png_set_background(png_ptr, background,
PNG_BACKGROUND_GAMMA_FILE, 1, 1.0);
- img_data->bg = info_ptr->background.index;
+ img_data->bg = background->index;
}
/* handle gamma correction */
- if(info_ptr->valid & PNG_INFO_gAMA)
- fg_gamma = info_ptr->gamma;
+ if(png_get_valid(png_ptr, info_ptr, PNG_INFO_gAMA))
+ png_get_gAMA(png_ptr, info_ptr, &fg_gamma);
else
fg_gamma = 0.45;
@@ -464,20 +469,20 @@
/* dithering gets handled by caller */
/* one byte per pixel */
- if(info_ptr->bit_depth < 8)
+ if(png_get_bit_depth(png_ptr, info_ptr) < 8)
png_set_packing(png_ptr);
/* no tRNS chunk handling, we've expanded it to an alpha channel. */
/* handle interlacing */
- if(info_ptr->interlace_type)
+ if(png_get_interlace_type(png_ptr, info_ptr))
npass = png_set_interlace_handling(png_ptr);
/* and now update everything */
png_read_update_info(png_ptr, info_ptr);
/* has possibly changed if we have promoted GrayScale or tRNS chunks */
- color_type = info_ptr->color_type;
+ color_type = png_get_color_type(png_ptr, info_ptr);
/* new color_type? */
if(color_type == PNG_COLOR_TYPE_RGB_ALPHA)
@@ -497,10 +502,10 @@
* will call doAlphaChannel to do the actual image creation.
*/
row_ptrs = (png_bytep*)malloc(height*sizeof(png_bytep));
- png_data = (png_bytep)malloc(height*info_ptr->rowbytes);
+ png_data = (png_bytep)malloc(height*png_get_rowbytes(png_ptr, info_ptr));
for(i = 0; i < height; i++)
- row_ptrs[i] = (png_bytep)png_data + i*info_ptr->rowbytes;
+ row_ptrs[i] = (png_bytep)png_data + i*png_get_rowbytes(png_ptr, info_ptr);
/* read it */
png_read_image(png_ptr, row_ptrs);
@@ -529,7 +534,7 @@
row_ptrs = (png_bytep*)malloc(height*sizeof(png_bytep));
for(i = 0; i < height; ++i)
- row_ptrs[i] = (png_bytep)data + i*info_ptr->rowbytes;
+ row_ptrs[i] = (png_bytep)data + i*png_get_rowbytes(png_ptr, info_ptr);
/* read it */
png_read_image(png_ptr, row_ptrs);

View File

@ -83,9 +83,6 @@ lib/libXmHTML.so.1
%%PORTDOCS%%%%DOCSDIR%%/structures.html
%%PORTDOCS%%%%DOCSDIR%%/xmhtml_prog.html
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/book/Imakefile
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/book/Makefile
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/book/Makefile.org
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/book/Makefile.orig
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/book/autosize_html.c
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/book/forced_html.c
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/book/html.c
@ -93,8 +90,6 @@ lib/libXmHTML.so.1
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/book/simple_html.c
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/book/simple_html2.c
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/book/work_window.c
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/contrib/Makefile
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/contrib/Makefile.org
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/contrib/README
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/contrib/VUEorDT.c
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/contrib/drawBttn.c
@ -106,9 +101,6 @@ lib/libXmHTML.so.1
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/contrib/swallow2.c
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/examples/HTMLDemos.ad
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/examples/Imakefile
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/examples/Makefile
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/examples/Makefile.org
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/examples/Makefile.orig
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/examples/README
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/examples/cache.c
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/examples/cache.h