Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
libwmf is a library for UNIX-like machines that can convert wmf
(Windows Meta Files) files into other formats. Currently it supports
a gd binding to convert to png, and an X one to draw direct to an X
window or pixmap. It also comes with a program to display wmfs: wmf2x.
Without a TrueType font server and the standard MS Windows fonts, the X
binding might render text in a different font than would appear under
MS Windows natively (this is a runtime issue for the wmf2x program).
+12
View File
@@ -0,0 +1,12 @@
===========================================================================
$NetBSD: MESSAGE,v 1.3 2005/09/28 14:15:49 rillig Exp $
For getting the most out of libwmf, consider installing TrueType
fonts, such as the fonts/ms-ttf, fonts/vera-ttf, and fonts/dbz-ttf
packages.
And if using an older X11 system (like XFree86 before version 4),
consider installing a TrueType font server for X11, such as the
x11/xfstt package.
===========================================================================
+31
View File
@@ -0,0 +1,31 @@
# $NetBSD: Makefile,v 1.75 2013/06/04 22:16:23 tron Exp $
DISTNAME= libwmf-0.2.8.4
PKGREVISION= 15
CATEGORIES= graphics devel
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=wvware/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://wvware.sourceforge.net/libwmf.html
COMMENT= Library for reading and converting WMF (Windows Meta Files)
LICENSE= gnu-gpl-v2
PKG_INSTALLATION_TYPES= overwrite pkgviews
USE_LIBTOOL= yes
USE_TOOLS+= pkg-config
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --disable-gd
CONFIGURE_ARGS+= --with-docdir=${PREFIX}/share/doc/${PKGNAME_NOREV}
post-install:
${RMDIR} ${DESTDIR}${PREFIX}/include/libwmf/gd
.include "options.mk"
.include "../../graphics/freetype2/buildlink3.mk"
.include "../../mk/jpeg.buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../textproc/expat/buildlink3.mk"
.include "../../textproc/libxml2/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
+292
View File
@@ -0,0 +1,292 @@
@comment $NetBSD: PLIST,v 1.13 2010/11/11 11:38:36 adam Exp $
bin/libwmf-config
bin/libwmf-fontmap
bin/wmf2eps
bin/wmf2fig
bin/wmf2svg
${PLIST.x11}bin/wmf2x
include/libwmf/api.h
include/libwmf/canvas.h
include/libwmf/color.h
include/libwmf/defs.h
include/libwmf/eps.h
include/libwmf/fig.h
include/libwmf/font.h
include/libwmf/foreign.h
include/libwmf/fund.h
include/libwmf/gd.h
include/libwmf/ipa.h
include/libwmf/macro.h
include/libwmf/svg.h
include/libwmf/types.h
include/libwmf/x.h
lib/libwmf.la
lib/libwmflite.la
share/doc/${PKGNAME}/caolan/2.html
share/doc/${PKGNAME}/caolan/Arc.html
share/doc/${PKGNAME}/caolan/BitBlt.html
share/doc/${PKGNAME}/caolan/Bmpfrmat.html
share/doc/${PKGNAME}/caolan/Chord.html
share/doc/${PKGNAME}/caolan/CreateBrushIndirect.html
share/doc/${PKGNAME}/caolan/CreatePenIndirect.html
share/doc/${PKGNAME}/caolan/CreateRegion.html
share/doc/${PKGNAME}/caolan/DeleteObject.html
share/doc/${PKGNAME}/caolan/DibBitBlt.html
share/doc/${PKGNAME}/caolan/DibCreatePatternBrush.html
share/doc/${PKGNAME}/caolan/DibStretchBlt.html
share/doc/${PKGNAME}/caolan/Ellipse.html
share/doc/${PKGNAME}/caolan/ExcludeClipRect.html
share/doc/${PKGNAME}/caolan/ExtFloodFill.html
share/doc/${PKGNAME}/caolan/ExtTextOut.html
share/doc/${PKGNAME}/caolan/FillRgn.html
share/doc/${PKGNAME}/caolan/FloodFill.html
share/doc/${PKGNAME}/caolan/FrameRgn.html
share/doc/${PKGNAME}/caolan/IntersectClipRect.html
share/doc/${PKGNAME}/caolan/InvertRgn.html
share/doc/${PKGNAME}/caolan/LineTo.html
share/doc/${PKGNAME}/caolan/MoveTo.html
share/doc/${PKGNAME}/caolan/OffsetClipRgn.html
share/doc/${PKGNAME}/caolan/OffsetViewportOrg.html
share/doc/${PKGNAME}/caolan/OffsetWindowOrg.html
share/doc/${PKGNAME}/caolan/PaintRgn.html
share/doc/${PKGNAME}/caolan/PatBlt.html
share/doc/${PKGNAME}/caolan/Pie.html
share/doc/${PKGNAME}/caolan/PolyPolygon.html
share/doc/${PKGNAME}/caolan/Polygon.html
share/doc/${PKGNAME}/caolan/Polyline.html
share/doc/${PKGNAME}/caolan/Rectangle.html
share/doc/${PKGNAME}/caolan/RestoreDC.html
share/doc/${PKGNAME}/caolan/RoundRect.html
share/doc/${PKGNAME}/caolan/SaveDC.html
share/doc/${PKGNAME}/caolan/ScaleViewportExt.html
share/doc/${PKGNAME}/caolan/ScaleWindowExt.html
share/doc/${PKGNAME}/caolan/SelectClipRgn.html
share/doc/${PKGNAME}/caolan/SelectObject.html
share/doc/${PKGNAME}/caolan/SetBkColor.html
share/doc/${PKGNAME}/caolan/SetBkMode.html
share/doc/${PKGNAME}/caolan/SetDIBitsToDevice.html
share/doc/${PKGNAME}/caolan/SetMapMode.html
share/doc/${PKGNAME}/caolan/SetMapperFlags.html
share/doc/${PKGNAME}/caolan/SetPixel.html
share/doc/${PKGNAME}/caolan/SetPolyFillMode.html
share/doc/${PKGNAME}/caolan/SetROP2.html
share/doc/${PKGNAME}/caolan/SetStretchBltMode.html
share/doc/${PKGNAME}/caolan/SetTextAlign.html
share/doc/${PKGNAME}/caolan/SetTextCharacterExtra.html
share/doc/${PKGNAME}/caolan/SetTextColor.html
share/doc/${PKGNAME}/caolan/SetTextJustification.html
share/doc/${PKGNAME}/caolan/SetViewportExt.html
share/doc/${PKGNAME}/caolan/SetViewportOrg.html
share/doc/${PKGNAME}/caolan/SetWindowExt.html
share/doc/${PKGNAME}/caolan/SetWindowOrg.html
share/doc/${PKGNAME}/caolan/StretchDib.html
share/doc/${PKGNAME}/caolan/TextOut.html
share/doc/${PKGNAME}/caolan/dibs.html
share/doc/${PKGNAME}/caolan/esc.html
share/doc/${PKGNAME}/caolan/index.html
share/doc/${PKGNAME}/caolan/mapmode.html
share/doc/${PKGNAME}/caolan/msmeta01.gif
share/doc/${PKGNAME}/caolan/msmeta02.gif
share/doc/${PKGNAME}/caolan/msmeta03.gif
share/doc/${PKGNAME}/caolan/msmeta04.gif
share/doc/${PKGNAME}/caolan/ora-clp.html
share/doc/${PKGNAME}/caolan/ora-wmf.html
share/doc/${PKGNAME}/caolan/pics/weave.jpg
share/doc/${PKGNAME}/caolan/rop.html
share/doc/${PKGNAME}/caolan/support.html
share/doc/${PKGNAME}/caolan/support2.html
share/doc/${PKGNAME}/caolan/template.html
share/doc/${PKGNAME}/caolan/unknown.html
share/doc/${PKGNAME}/dlayer.html
share/doc/${PKGNAME}/gd.html
share/doc/${PKGNAME}/html/annotated.html
share/doc/${PKGNAME}/html/api_8c.html
share/doc/${PKGNAME}/html/api_8h.html
share/doc/${PKGNAME}/html/bbuf_8c.html
share/doc/${PKGNAME}/html/canvas_8h.html
share/doc/${PKGNAME}/html/classes.html
share/doc/${PKGNAME}/html/clip_8h.html
share/doc/${PKGNAME}/html/coord_8h.html
share/doc/${PKGNAME}/html/dc_8h.html
share/doc/${PKGNAME}/html/defaults_8h.html
share/doc/${PKGNAME}/html/defs_8h.html
share/doc/${PKGNAME}/html/doxygen.css
share/doc/${PKGNAME}/html/doxygen.gif
share/doc/${PKGNAME}/html/doxygen.png
share/doc/${PKGNAME}/html/eps_2bmp_8h.html
share/doc/${PKGNAME}/html/eps_2device_8h.html
share/doc/${PKGNAME}/html/eps_2draw_8h.html
share/doc/${PKGNAME}/html/eps_8c.html
share/doc/${PKGNAME}/html/eps_8h.html
share/doc/${PKGNAME}/html/fig_2bmp_8h.html
share/doc/${PKGNAME}/html/fig_2device_8h.html
share/doc/${PKGNAME}/html/fig_2draw_8h.html
share/doc/${PKGNAME}/html/fig_8c.html
share/doc/${PKGNAME}/html/fig_8h.html
share/doc/${PKGNAME}/html/files.html
share/doc/${PKGNAME}/html/font_8c.html
share/doc/${PKGNAME}/html/foreign_8c.html
share/doc/${PKGNAME}/html/foreign_8h.html
share/doc/${PKGNAME}/html/functions.html
share/doc/${PKGNAME}/html/fund_8h.html
share/doc/${PKGNAME}/html/gd_8h.html
share/doc/${PKGNAME}/html/globals.html
share/doc/${PKGNAME}/html/include_2libwmf_2color_8h.html
share/doc/${PKGNAME}/html/include_2libwmf_2font_8h.html
share/doc/${PKGNAME}/html/index.html
share/doc/${PKGNAME}/html/io-wmf_8c.html
share/doc/${PKGNAME}/html/ipa_2bmp_8h.html
share/doc/${PKGNAME}/html/ipa_2eps_2region_8h.html
share/doc/${PKGNAME}/html/ipa_2fig_2region_8h.html
share/doc/${PKGNAME}/html/ipa_2magick_2region_8h.html
share/doc/${PKGNAME}/html/ipa_2plot_2region_8h.html
share/doc/${PKGNAME}/html/ipa_2svg_2region_8h.html
share/doc/${PKGNAME}/html/ipa_2x_2region_8h.html
share/doc/${PKGNAME}/html/ipa_2xgd_2region_8h.html
share/doc/${PKGNAME}/html/ipa_8c.html
share/doc/${PKGNAME}/html/ipa_8h.html
share/doc/${PKGNAME}/html/macro_8h.html
share/doc/${PKGNAME}/html/magick_2bmp_8h.html
share/doc/${PKGNAME}/html/magick_2device_8h.html
share/doc/${PKGNAME}/html/magick_2draw_8h.html
share/doc/${PKGNAME}/html/magick_8c.html
share/doc/${PKGNAME}/html/magick_8h.html
share/doc/${PKGNAME}/html/meta_8c.html
share/doc/${PKGNAME}/html/meta_8h.html
share/doc/${PKGNAME}/html/metadefs_8h.html
share/doc/${PKGNAME}/html/player_2region_8h.html
share/doc/${PKGNAME}/html/player_8c.html
share/doc/${PKGNAME}/html/plot_2bmp_8h.html
share/doc/${PKGNAME}/html/plot_2device_8h.html
share/doc/${PKGNAME}/html/plot_2draw_8h.html
share/doc/${PKGNAME}/html/plot_8c.html
share/doc/${PKGNAME}/html/plot_8h.html
share/doc/${PKGNAME}/html/record_8h.html
share/doc/${PKGNAME}/html/recorder_8c.html
share/doc/${PKGNAME}/html/recorder_8h.html
share/doc/${PKGNAME}/html/src_2font_8h.html
share/doc/${PKGNAME}/html/src_2ipa_2fig_2color_8h.html
share/doc/${PKGNAME}/html/src_2ipa_2fig_2font_8h.html
share/doc/${PKGNAME}/html/src_2ipa_2ipa_2color_8h.html
share/doc/${PKGNAME}/html/src_2ipa_2ipa_2font_8h.html
share/doc/${PKGNAME}/html/src_2ipa_2x_2color_8h.html
share/doc/${PKGNAME}/html/src_2ipa_2x_2font_8h.html
share/doc/${PKGNAME}/html/src_2ipa_2xgd_2font_8h.html
share/doc/${PKGNAME}/html/src_2player_2color_8h.html
share/doc/${PKGNAME}/html/stream_8c.html
share/doc/${PKGNAME}/html/structWmfContext.html
share/doc/${PKGNAME}/html/struct__wmfAPI.html
share/doc/${PKGNAME}/html/struct__wmfAPI__Options.html
share/doc/${PKGNAME}/html/struct__wmfAttributeStore.html
share/doc/${PKGNAME}/html/struct__wmfAttributes.html
share/doc/${PKGNAME}/html/struct__wmfBMP.html
share/doc/${PKGNAME}/html/struct__wmfBMP__Draw__t.html
share/doc/${PKGNAME}/html/struct__wmfBMP__Read__t.html
share/doc/${PKGNAME}/html/struct__wmfBrush.html
share/doc/${PKGNAME}/html/struct__wmfCanvasBrush.html
share/doc/${PKGNAME}/html/struct__wmfCanvasFont.html
share/doc/${PKGNAME}/html/struct__wmfCanvasPen.html
share/doc/${PKGNAME}/html/struct__wmfColorData.html
share/doc/${PKGNAME}/html/struct__wmfConstruct.html
share/doc/${PKGNAME}/html/struct__wmfDC.html
share/doc/${PKGNAME}/html/struct__wmfD__Coord.html
share/doc/${PKGNAME}/html/struct__wmfD__Rect.html
share/doc/${PKGNAME}/html/struct__wmfDrawArc__t.html
share/doc/${PKGNAME}/html/struct__wmfDrawLine__t.html
share/doc/${PKGNAME}/html/struct__wmfDrawPixel__t.html
share/doc/${PKGNAME}/html/struct__wmfDrawRectangle__t.html
share/doc/${PKGNAME}/html/struct__wmfDrawText__t.html
share/doc/${PKGNAME}/html/struct__wmfFT__CacheEntry.html
share/doc/${PKGNAME}/html/struct__wmfFT__Mapping.html
share/doc/${PKGNAME}/html/struct__wmfFlood__t.html
share/doc/${PKGNAME}/html/struct__wmfFont.html
share/doc/${PKGNAME}/html/struct__wmfFontData.html
share/doc/${PKGNAME}/html/struct__wmfFontMap.html
share/doc/${PKGNAME}/html/struct__wmfFontmapData.html
share/doc/${PKGNAME}/html/struct__wmfFunctionReference.html
share/doc/${PKGNAME}/html/struct__wmfGS__FontData.html
share/doc/${PKGNAME}/html/struct__wmfGS__FontInfo.html
share/doc/${PKGNAME}/html/struct__wmfHead.html
share/doc/${PKGNAME}/html/struct__wmfIPAFont.html
share/doc/${PKGNAME}/html/struct__wmfImage.html
share/doc/${PKGNAME}/html/struct__wmfMapping.html
share/doc/${PKGNAME}/html/struct__wmfMetaHeader.html
share/doc/${PKGNAME}/html/struct__wmfPen.html
share/doc/${PKGNAME}/html/struct__wmfPlaceableMetaHeader.html
share/doc/${PKGNAME}/html/struct__wmfPolyLine__t.html
share/doc/${PKGNAME}/html/struct__wmfPolyPoly__t.html
share/doc/${PKGNAME}/html/struct__wmfPolyRectangle__t.html
share/doc/${PKGNAME}/html/struct__wmfRGB.html
share/doc/${PKGNAME}/html/struct__wmfROP__Draw__t.html
share/doc/${PKGNAME}/html/struct__wmfRecordBox.html
share/doc/${PKGNAME}/html/struct__wmfStream.html
share/doc/${PKGNAME}/html/struct__wmfUserData__t.html
share/doc/${PKGNAME}/html/struct__wmfWriteFileInfo.html
share/doc/${PKGNAME}/html/struct__wmfXML__FontData.html
share/doc/${PKGNAME}/html/struct__wmfXML__FontInfo.html
share/doc/${PKGNAME}/html/struct__wmfXML__InputData.html
share/doc/${PKGNAME}/html/struct__wmf__eps__t.html
share/doc/${PKGNAME}/html/struct__wmf__fig__t.html
share/doc/${PKGNAME}/html/struct__wmf__fig__t_1_1__wmf__fig__image.html
share/doc/${PKGNAME}/html/struct__wmf__foreign__t.html
share/doc/${PKGNAME}/html/struct__wmf__gd__t.html
share/doc/${PKGNAME}/html/struct__wmf__gd__t_1_1__wmf__gd__sink.html
share/doc/${PKGNAME}/html/struct__wmf__magick__t.html
share/doc/${PKGNAME}/html/struct__wmf__magick__t_1_1__wmf__magick__image.html
share/doc/${PKGNAME}/html/struct__wmf__plot__t.html
share/doc/${PKGNAME}/html/struct__wmf__svg__t.html
share/doc/${PKGNAME}/html/struct__wmf__svg__t_1_1__wmf__svg__image.html
share/doc/${PKGNAME}/html/struct__wmf__template__t.html
share/doc/${PKGNAME}/html/struct__wmf__x__t.html
share/doc/${PKGNAME}/html/svg_2bmp_8h.html
share/doc/${PKGNAME}/html/svg_2device_8h.html
share/doc/${PKGNAME}/html/svg_2draw_8h.html
share/doc/${PKGNAME}/html/svg_8c.html
share/doc/${PKGNAME}/html/svg_8h.html
share/doc/${PKGNAME}/html/template_8c.html
share/doc/${PKGNAME}/html/template_8h.html
share/doc/${PKGNAME}/html/types_8h.html
share/doc/${PKGNAME}/html/wmf_8c.html
share/doc/${PKGNAME}/html/x_2bmp_8h.html
share/doc/${PKGNAME}/html/x_2device_8h.html
share/doc/${PKGNAME}/html/x_2draw_8h.html
share/doc/${PKGNAME}/html/x_8c.html
share/doc/${PKGNAME}/html/x_8h.html
share/doc/${PKGNAME}/html/xgd_2bmp_8h.html
share/doc/${PKGNAME}/html/xgd_2device_8h.html
share/doc/${PKGNAME}/html/xgd_2draw_8h.html
share/doc/${PKGNAME}/html/xgd_8c.html
share/doc/${PKGNAME}/html/xml_8c.html
share/doc/${PKGNAME}/html/xml_8h.html
share/doc/${PKGNAME}/index.html
share/doc/${PKGNAME}/smlogo2.gif
share/doc/${PKGNAME}/tutapi.html
share/doc/${PKGNAME}/tutipa.html
share/doc/${PKGNAME}/wmfpic.png
share/libwmf/fonts/fontmap
share/libwmf/fonts/n019003l.afm
share/libwmf/fonts/n019003l.pfb
share/libwmf/fonts/n019004l.afm
share/libwmf/fonts/n019004l.pfb
share/libwmf/fonts/n019023l.afm
share/libwmf/fonts/n019023l.pfb
share/libwmf/fonts/n019024l.afm
share/libwmf/fonts/n019024l.pfb
share/libwmf/fonts/n021003l.afm
share/libwmf/fonts/n021003l.pfb
share/libwmf/fonts/n021004l.afm
share/libwmf/fonts/n021004l.pfb
share/libwmf/fonts/n021023l.afm
share/libwmf/fonts/n021023l.pfb
share/libwmf/fonts/n021024l.afm
share/libwmf/fonts/n021024l.pfb
share/libwmf/fonts/n022003l.afm
share/libwmf/fonts/n022003l.pfb
share/libwmf/fonts/n022004l.afm
share/libwmf/fonts/n022004l.pfb
share/libwmf/fonts/n022023l.afm
share/libwmf/fonts/n022023l.pfb
share/libwmf/fonts/n022024l.afm
share/libwmf/fonts/n022024l.pfb
share/libwmf/fonts/s050000l.afm
share/libwmf/fonts/s050000l.pfb
+25
View File
@@ -0,0 +1,25 @@
# $NetBSD: buildlink3.mk,v 1.27 2013/06/04 22:16:23 tron Exp $
BUILDLINK_TREE+= libwmf
.if !defined(LIBWMF_BUILDLINK3_MK)
LIBWMF_BUILDLINK3_MK:=
BUILDLINK_API_DEPENDS.libwmf+= libwmf>=0.2.8nb2
BUILDLINK_ABI_DEPENDS.libwmf+= libwmf>=0.2.8.4nb15
BUILDLINK_PKGSRCDIR.libwmf?= ../../graphics/libwmf
pkgbase:= libwmf
.include "../../mk/pkg-build-options.mk"
.if !empty(PKG_BUILD_OPTIONS.libwmf:Mx11)
.include "../../x11/libX11/buildlink3.mk"
.endif
.include "../../graphics/freetype2/buildlink3.mk"
.include "../../mk/jpeg.buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../textproc/expat/buildlink3.mk"
.include "../../textproc/libxml2/buildlink3.mk"
.endif # LIBWMF_BUILDLINK3_MK
BUILDLINK_TREE+= -libwmf
+8
View File
@@ -0,0 +1,8 @@
$NetBSD: distinfo,v 1.19 2011/01/24 13:55:18 wiz Exp $
SHA1 (libwmf-0.2.8.4.tar.gz) = 822ab3bd0f5e8f39ad732f2774a8e9f18fc91e89
RMD160 (libwmf-0.2.8.4.tar.gz) = 98cd631adb5bb332d9224d04bc8a265c105435f2
Size (libwmf-0.2.8.4.tar.gz) = 2169375 bytes
SHA1 (patch-aa) = ba51d096404b6234f52032f0acc337226d823411
SHA1 (patch-ad) = b74be16c5da490394b86403009f5f35d80ba4bfa
SHA1 (patch-ae) = f5cbb60757261aaf6084e9fcf16f9074b3013538
+17
View File
@@ -0,0 +1,17 @@
# $NetBSD: hacks.mk,v 1.2 2007/10/16 23:48:59 tnn Exp $
.if !defined(LIBEXIF_HACKS_MK)
LIBEXIF_HACKS_MK= # defined
### [Fri Dec 30 21:00:59 CET 2005 : schwarz]
### make sys/types.h not conflict with inttypes.h
### (issue is specific to IRIX 5.3)
###
.if !empty(MACHINE_PLATFORM:MIRIX-5.3-*)
PKG_HACKS+= sys_types_h-inttypes_h-conflict
post-wrapper:
${MKDIR} ${BUILDLINK_DIR}/include/sys && ${GREP} -v '^typedef.*[^u_]int[12368]*_t;' /usr/include/sys/types.h > ${BUILDLINK_DIR}/include/sys/types.h
# should match int8_t, int16_t, and int32_t (only)
.endif
.endif
+15
View File
@@ -0,0 +1,15 @@
# $NetBSD: options.mk,v 1.1 2010/11/11 11:38:36 adam Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.libwmf
PKG_SUPPORTED_OPTIONS= x11
PKG_SUGGESTED_OPTIONS= x11
.include "../../mk/bsd.options.mk"
PLIST_VARS+= x11
.if !empty(PKG_OPTIONS:Mx11)
PLIST.x11= yes
.include "../../x11/libX11/buildlink3.mk"
.include "../../x11/libXt/buildlink3.mk"
.endif
+16
View File
@@ -0,0 +1,16 @@
$NetBSD: patch-aa,v 1.7 2011/01/24 13:55:18 wiz Exp $
Fix build with png-1.5.
https://sourceforge.net/tracker/?func=detail&aid=3164737&group_id=10501&atid=110501
--- src/ipa/ipa/bmp.h.orig 2001-10-23 11:24:12.000000000 +0000
+++ src/ipa/ipa/bmp.h
@@ -66,7 +66,7 @@ static void ldr_bmp_png (wmfAPI* API,wmf
return;
}
- if (setjmp (png_ptr->jmpbuf))
+ if (setjmp (png_jmpbuf(png_ptr)))
{ WMF_DEBUG (API,"Failed to write bitmap as PNG! (setjmp failed)");
png_destroy_write_struct (&png_ptr,&info_ptr);
wmf_free (API,buffer);
+22
View File
@@ -0,0 +1,22 @@
$NetBSD: patch-ad,v 1.5 2006/01/18 22:04:58 adam Exp $
--- configure.orig 2005-07-27 23:47:12.000000000 +0200
+++ configure
@@ -21916,7 +21916,7 @@ else
# It would also be nice to do this for all -L options, not just this one.
if test -n "$x_libraries"; then
- X_LIBS="$X_LIBS -L$x_libraries"
+ X_LIBS="$X_LIBS -L$x_libraries -Wl,-R$x_libraries"
# For Solaris; some versions of Sun CC require a space after -R and
# others require no space. Words are not sufficient . . . .
case `(uname -sr) 2>/dev/null` in
@@ -26007,7 +26007,7 @@ echo "${ECHO_T}$GDK_PIXBUF_LIBS" >&6
GTK_VERSION=`$PKG_CONFIG --variable=gtk_binary_version gtk+-2.0`
GDK_PIXBUF_DIR="gtk-2.0/$GTK_VERSION/loaders"
- wmf_gdk_pixbuf=yes
+ wmf_gdk_pixbuf=no
else
wmf_gdk_pixbuf=no
+38
View File
@@ -0,0 +1,38 @@
$NetBSD: patch-ae,v 1.3 2007/09/21 12:00:11 abs Exp $
--- src/player.c.orig Tue Dec 10 19:30:26 2002
+++ src/player.c
@@ -43,6 +43,16 @@
#include "player/record.h" /* Provides: parameter mechanism */
#include "player/meta.h" /* Provides: record interpreters */
+#ifdef HAVE_STDINT_H
+#include <stdint.h>
+#endif
+#ifndef UINT32_MAX
+#include <limits.h>
+#endif
+#ifndef UINT32_MAX
+#define UINT32_MAX UINT_MAX
+#endif
+
/**
* @internal
*/
@@ -132,8 +142,14 @@ wmf_error_t wmf_scan (wmfAPI* API,unsign
}
}
-/* P->Parameters = (unsigned char*) wmf_malloc (API,(MAX_REC_SIZE(API)-3) * 2 * sizeof (unsigned char));
- */ P->Parameters = (unsigned char*) wmf_malloc (API,(MAX_REC_SIZE(API) ) * 2 * sizeof (unsigned char));
+ if (MAX_REC_SIZE(API) > UINT32_MAX/ 2)
+ {
+ API->err = wmf_E_InsMem;
+ WMF_DEBUG (API,"bailing...");
+ return (API->err);
+ }
+
+ P->Parameters = (unsigned char*) wmf_malloc (API,(MAX_REC_SIZE(API) ) * 2 * sizeof (unsigned char));
if (ERR (API))
{ WMF_DEBUG (API,"bailing...");