graphics/xfig: update to upstream version 3.2.8a

The port update to version 3.2.8 has been provided in PR 252092 by
mjl@luckie.org.nz. This PR will not be closed by this commit, since
it did also contain a port update for the print/fig2dev port.

I have adjusted the update to build patch level "a" of version 3.2.8
and have added missing dependencies and applied a few style changes
to the Makefile as suggested by portlint and portclippy.
This commit is contained in:
MJL 2021-06-05 18:19:29 +02:00 committed by Stefan Eßer
parent 2bf7e2b484
commit 6bb539c8f9
5 changed files with 1125 additions and 1045 deletions

View File

@ -1,28 +1,33 @@
# Created by: roberto
PORTNAME= xfig
PORTVERSION= 3.2.7a
PORTREVISION= 1
PORTVERSION= 3.2.8a
CATEGORIES= graphics
MASTER_SITES= SF/mcj/
MAINTAINER= mjl@luckie.org.nz
COMMENT= Drawing program for X11
LIB_DEPENDS= libpng.so:graphics/png \
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= libgs.so:print/ghostscript9-agpl-base \
libpng.so:graphics/png \
libtiff.so:graphics/tiff \
libXaw3d.so:x11-toolkits/Xaw3d
RUN_DEPENDS= fig2dev:print/fig2dev
USES= desktop-file-utils gmake jpeg localbase:ldflags \
tar:xz xorg
CONFLICTS= xfig-[12].* xfig-3.1* xfig-3.2.[1234]*
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
GNU_CONFIGURE= yes
USE_XORG= ice sm x11 xaw xext xi xmu xpm xt
USES= desktop-file-utils gmake jpeg localbase:ldflags tar:xz xorg
USE_CSTD= gnu89
USE_XORG= ice sm x11 xaw xext xi xmu xpm xt
GNU_CONFIGURE= yes
CFLAGS+= -Wno-return-type
CONFLICTS= xfig-3.1* xfig-3.2.[1234]* xfig-[12].*
OPTIONS_DEFINE= DOCS
post-patch:

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1526255520
SHA256 (xfig-3.2.7a.tar.xz) = ca89986fc9ddb9f3c5a4f6f70e5423f98e2f33f5528a9d577fb05bbcc07ddf24
SIZE (xfig-3.2.7a.tar.xz) = 5055456
TIMESTAMP = 1622907276
SHA256 (xfig-3.2.8a.tar.xz) = ba43c0ea85b230d3efa5a951a3239e206d0b033d044c590a56208f875f888578
SIZE (xfig-3.2.8a.tar.xz) = 5380896

View File

@ -0,0 +1,14 @@
FIG : Facility for Interactive Generation of figures
Copyright (c) 1985-1988 by Supoj Sutanthavibul
Parts Copyright (c) 1989-2015 by Brian V. Smith
Parts Copyright (c) 1991 by Paul King
Parts Copyright (c) 2016-2020 by Thomas Loimer
Any party obtaining a copy of these files is granted, free of charge, a
full and unrestricted irrevocable, world-wide, paid up, royalty-free,
nonexclusive right and license to deal in this software and documentation
files (the "Software"), including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense and/or sell copies
of the Software, and to permit persons who receive copies from any such
party to do so, with the only requirement being that the above copyright
and this permission notice remain intact.

View File

@ -1,11 +0,0 @@
--- src/main.c.orig 2018-04-04 21:07:37 UTC
+++ src/main.c
@@ -631,7 +631,7 @@ struct geom geom;
int setup_visual (int *argc_p, char **argv, Arg *args);
void get_pointer_mapping (void);
-void main(int argc, char **argv)
+int main(int argc, char **argv)
{
Widget children[NCHILDREN];
XEvent event;

File diff suppressed because it is too large Load Diff