diff --git a/graphics/xfig/Makefile b/graphics/xfig/Makefile index 43a8b1e0befb..973051125c04 100644 --- a/graphics/xfig/Makefile +++ b/graphics/xfig/Makefile @@ -1,37 +1,36 @@ PORTNAME= xfig -PORTVERSION= 3.2.8a -PORTREVISION= 1 +PORTVERSION= 3.2.8b CATEGORIES= graphics MASTER_SITES= SF/mcj/ MAINTAINER= mjl@luckie.org.nz COMMENT= Drawing program for X11 WWW= https://www.xfig.org/ LICENSE= xfig LICENSE_NAME= xfig public license LICENSE_FILE= ${FILESDIR}/LICENSE LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept LIB_DEPENDS= libpng.so:graphics/png \ libtiff.so:graphics/tiff \ libXaw3d.so:x11-toolkits/Xaw3d RUN_DEPENDS= fig2dev:print/fig2dev USES= cpe desktop-file-utils gmake ghostscript:lib jpeg localbase:ldflags \ tar:xz xorg USE_CSTD= gnu89 USE_XORG= ice sm x11 xaw xext xi xmu xpm xt CPE_VENDOR= xfig_project GNU_CONFIGURE= yes CFLAGS+= -Wno-return-type CONFLICTS= xfig-3.1* xfig-3.2.[1234]* xfig-[12].* OPTIONS_DEFINE= DOCS post-patch: @${REINPLACE_CMD} -e 's|/usr/bin/||' ${WRKSRC}/xfig.desktop .include diff --git a/graphics/xfig/distinfo b/graphics/xfig/distinfo index b44464257c4c..2dc0a4753afb 100644 --- a/graphics/xfig/distinfo +++ b/graphics/xfig/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1622907276 -SHA256 (xfig-3.2.8a.tar.xz) = ba43c0ea85b230d3efa5a951a3239e206d0b033d044c590a56208f875f888578 -SIZE (xfig-3.2.8a.tar.xz) = 5380896 +TIMESTAMP = 1692000314 +SHA256 (xfig-3.2.8b.tar.xz) = b2cc8181cfb356f6b75cc28771970447f69aba1d728a2dac0e0bcf1aea7acd3a +SIZE (xfig-3.2.8b.tar.xz) = 5382524 diff --git a/graphics/xfig/files/patch-src_u__ghostscript.c b/graphics/xfig/files/patch-src_u__ghostscript.c new file mode 100644 index 000000000000..f58e18032e84 --- /dev/null +++ b/graphics/xfig/files/patch-src_u__ghostscript.c @@ -0,0 +1,17 @@ +--- src/u_ghostscript.c.orig 2021-05-22 08:58:32 UTC ++++ src/u_ghostscript.c +@@ -805,12 +805,12 @@ display_presize(void *handle, void *device, int width, + } + + static void * +-display_memalloc(void *handle, void *device, unsigned long size) ++display_memalloc(void *handle, void *device, size_t size) + { + (void) device; + struct calldata *data = (struct calldata *)handle; + +- data->img = malloc((size_t)size); ++ data->img = malloc(size); + + if (appres.DEBUG && data->img == NULL) + fputs("gslib_bitmap() - display_memalloc(): Out of memory.\n",