summaryrefslogtreecommitdiff
path: root/graphics/xfig/Makefile
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2017-10-03 15:09:36 +0000
committerwiz <wiz@pkgsrc.org>2017-10-03 15:09:36 +0000
commit803e38dc670c82e732e5609efc645db157966f04 (patch)
tree9c9863a0ee654ded979d15c9d0fca0ae178f1d70 /graphics/xfig/Makefile
parent03dc68d393959309321fcf350d299c4c27bb44b1 (diff)
downloadpkgsrc-803e38dc670c82e732e5609efc645db157966f04.tar.gz
xfig: update to 3.2.6a.
Changes to Xfig ============================================================================= Version 3.2 ============================================================================= Patchlevel 6a (January 2017) CHANGES: o Draw lines with the same width as in PostScript and other outputs. BUGS FIXED: o Add compile-switch --enable-tablet for using an input tablet. o Eventually, sorted out the xpm switches. Only use --enable-xpm-splash. o Improve ./configure and add diagnostic output. Looks now for headers and libraries in unusal places, for compilation under mac darwin when using fink or macports. ----------------------------------- Patchlevel 6 (August 2016) NEW FEATURES: o Add compile switch to enable xpm-icon and xpm-splash screen independently (--enable-xpm-icon, --enable-xpm-splash). o New compile switch --enable-versioning, calls update_version_m4 to get version information from a source control system. BUGS FIXED: o Update documentation to LaTeX and Xfig. From Roland Rosenfeld <roland@spinnaker.de>: o Update LaTeX documentation, use \documentclass instead of \documentstyle, \usepackage instead of \input. o Builds on hurd, had to #include <limits.h> in a few places. o Use application/x-xfig, not image/x-xfig in xfig.desktop file. See https://bugs.launchpad.net/ubuntu/+source/xfig/+bug/690067 and https://bugs.launchpad.net/ubuntu/+source/xfig/+bug/1045848 . ----------------------------------- Patchlevel 6-rc (July 2016) NEW FEATURES: o Should compile on Mac (Darwin) after installing dependencies using Macports, Fink or Homebrew. o Add two rudimentary tests. Run with make check. UI CHANGES: From Brian V. Smith. These changes were made because the original view was of the drawing on the page instead of the modern view of the observer moving left/right/up/down: o Left arrow moves observer left (used to scroll canvas left) o Right arrow moves observer right o Up arrow moves observer up o Down arrow moves observer down o Ctrl+Wheel up zooms in, Ctrl+Wheel down zooms out (was the other way around) BUGS FIXED: o To compile on ancient systems, try make -DANCIENT. o Report correct paths to installed files in the man page. o Add pathmax.h and dirstruct.h, to define DIRSTRUCT and PATH_MAX. From Vladislav Zavjalov; Commit numbers refer to http://git.altlinux.org/people/slazav/packages/?p=xfig.git;a=commit;h=# o Preserve comments when deleting objects; Commit #6c42e5c o Restore colors and main comment after Delete All + Undo; #34f6105 o Draw horizontal scrollbar if property buttons are too wide to fit on the screen. Commit #e9c1394 o Add save8bit app-resource to allow saving 8-bit files. #5bd9fbb o Move Xfuncs.h and Xosdefs.h out from fig.h. Commit #b433478 o Move -l flags from LDFLAGS to LDADD. Commit #2d57c85 From Roland Rosenfeld. Bug numers refer to https://bugs.debian.org/#. o Do not link with -lXmu, if linking with Xaw3d > 1.5e. o Make japanese documentation available for LANG=ja_JP.ujis. o Set the Creation date in xfig_man.html to the date when creating the source tarball. o Really fix reading png files, https://bugzilla.redhat.com/show_bug.cgi?id=1150330 o Delete some superfluos files, fix typos (Caribbean), add semicolon in xfig.desktop (bug # 812477). From Brian V. Smith: o old link for "Xfig On Microsoft Windows" (Getting and Installing Xfig html page) o dash_list wrong dimension causes segfault on some line styles o Should handle systems where REG_NOERROR (regular expression) is undefined now o Missing xfig_man.html o Modify a few places where to set locale to "C". o Didn't allocate enough space for fonts (would segfault when popping up File panels) o Moving arc point would segfault ----------------------------------- Patchlevel 6-beta (May 2016) NEW FEATURES: o New tikz and pict2e export drivers. o Build using autoconf (./configure; make; make install). BUGS FIXED: o Change \r\n to \n in all files. From Roland Rosenfeld. Bug numbers refer to https://bugs.debian.org/#. In fact, most of the bugs below, also those from other sources, were fixed by applying the debian-patches. o Position independent executables work, fixes bug # 756791. o Revert previous change of X-spline parameter. o Use C locale for fig2dev, to correctly interpret decimal point. Fixes bug # 782737. o Correct grid mode distances in man page. Bug # 314820. o Extend xfig.desktop. o Fix unsecure use of temporary file. From Thomas Hoger, gentoo. Debian Bug # 565341. o Escape - in man-page. o Securely print string. o Restore old shadow behaviour. o Fix reading "/MediaBox" when importing pdf. Closes Bug # 530898. o With -papersize b1, use B1, not B10. Bug 535181. From Vladislav Zavjalov. Information on bugs is found at https://bugzilla.altlinux.org/show_bug.cgi?id=# o Do not use fontsets for symbol and dingbat fonts, bug # 26579. o Fix compiler warnigs in w_indpanel.c. Commit feabe27. o Restore correct depths when loading a figure, then undo. Commit b5c79b3. o Restore filename after delete region, undo. Commit 219d690. o Restore user color when opening new fig-file. Commit fccd915. o Restore correct depths when joining lines with different depths. Commit a77bcaf. o Fix xfontlist->fset initialization. Commit a592399. o Fix default origin (100000,100000) -> (0,0) for filled objects. Commit 4d87e60. o Fix 100% cpu-load by save panel. Commit 81a4596. o Do not use local SimpleMenu.c with XAW3D1_5E. Would segfault on some 64-bit systems when opening main menu. o Missing argument may cause crash or undefined behaviour. Debian bug # 795642. From Michael Tautschnig. From Hans de Goede. Bug information at https://bugzilla.redhat.com/show_bug.cgi?id=#. o Patch for importing png-files, Red Hat bug # 1150330. From David Kaufmann. o Fix crash when changing arrow size. Bug # 1046102. o Fix crash when creating dash-dotted lines. Bug # 1023744. From Michael Srb, thanks to Maurizio Pollini and David Kaufmann. o Fix crash on exit. From Peter Volkov at gentoo ----------------------------------- Patchlevel 5c (August, 2013) BUGS FIXED: o Increased default width of layer panel from 58 to 64 to accomodate scrollbar width o missing comma in FIXED_JAPANESE_PDF #ifdef case in w_cmdpanel.c o printer name enclosed in apostrophes when printing in case has spaces in name o new link from Elizabeth Bailey for Fig applications referenced in installation.html o old link to duke.uask.ca for Fig applications has new link in installation.html o Typo in message "GIF read error on extention ..." should be "extension" o Possibility of stack overflow with malformed Fig files. o In version 1.4 of the PNG library dither was removed so xfig now uses quantize when importing PNG images with palettes o Other updates for PNG library version 1.5 from Peter Volkov o Some versions of Cygwin don't have either REG_NOERROR or REG_OKAY defined so REG_NOERROR defined to be 0 o Changed X-Spline parameter to match original intent of X-Spline authors: changed definition of Q(s) from -s to -0.5 * s in u_draw_spline.c o Allowance for stricter ghostscript in -dSAFER mode. Was causing error on reading EPS images. From Hans de Goede o Security vulnerability with importing images fixed (RedHat bug # 657981 - xfig buffer overflow when opening .fig file with malicius color definition) o When exporting to combined PS/PDF/LATEX the -D option to exclude all but active layers was not passed to fig2dev o Uses 24-bit color instead of 8-bit when importing eps files (pcx24b driver for ghostscript) o Bug in freeing null fontset o Semicolon (;) added at end of MimeType line in xfig.desktop as per http://standards.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html o Reference to "Darwin Ports" changed to "MacPorts" o Renamed O_TEXT to O_TXT to avoid conflicts with system define o On lines with Round or Projecting cap style and arrowheads, the line endpoint stuck out beyond the arrowhead From Vladsilav Zavjalov: o Uses fontsets for all fonts in international mode o SEGV when zooming while creating object (e.g. text) o Add locale_encoding appres which acts similar to euc_encoding, but uses system locale and mbrlen function for multibyte character length calculation. o Move "file not found" error message from check_docfile() to launch_viewer(), remove excess check_docfile() call. Error message is not shown when looking for a locale-dependent docs. It is shown only if no docs found at all. o Do not do strcpy with equal arguments in w_cmdpanel.c/update_cur_filename() o Print to file had extra argument in sprintf in international mode o Message panel not tall enough with 3D Athena widgets o Warnings about different size of int and void * on 64-bit system. To fix this problem I changed int to intptr_t in some places. NEW FEATURES: o New library objects from Markus Laner: Networks: NodeB.fig, cloud.fig, router.fig, wlan.fig Computers: datacard.fig, screen.fig, usbpen.fig, xbox.fig o New command-line option -nowrite_bak to turn off automatic renaming of .fig to .fig.bak when saving .fig file. X resource is "write_bak". Also command-line option -write_bak to force renaming to true. o Can now specify small buttons with command-line argument -smallicons From Ed Rosten ----------------------------------- Patchlevel 5b (Jun 1, 2009) BUGS FIXED: o Dimension line indicator incorrectly showed arrow length/width o Several patches from Fedora xfig maintainer o divide by 0 under certain circumstances in ruler code From Libor Pechacek o Segfault if PRINTER env variable was not defined
Diffstat (limited to 'graphics/xfig/Makefile')
-rw-r--r--graphics/xfig/Makefile68
1 files changed, 10 insertions, 58 deletions
diff --git a/graphics/xfig/Makefile b/graphics/xfig/Makefile
index d333e082a5c..60716fb1928 100644
--- a/graphics/xfig/Makefile
+++ b/graphics/xfig/Makefile
@@ -1,75 +1,27 @@
-# $NetBSD: Makefile,v 1.71 2015/10/14 20:17:26 wiz Exp $
+# $NetBSD: Makefile,v 1.72 2017/10/03 15:09:36 wiz Exp $
-DISTNAME= xfig.3.2.5b.full
-PKGNAME= xfig-3.2.5b
-PKGREVISION= 11
+DISTNAME= xfig-3.2.6a
+PKGNAME= ${DISTNAME:S/-full//}
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=mcj/}
+EXTRACT_SUFX= .tar.xz
MAINTAINER= pkgsrc-users@NetBSD.org
-HOMEPAGE= http://www.xfig.org/
+HOMEPAGE= http://mcj.sourceforge.net/
COMMENT= CAD-like 2D drawing tool, good for colorful scale drawings & ISOs
-DEPENDS+= transfig>=3.2.4:../../print/transfig
-# if we're using Xaw3d, then we need 1.5E or newer since using that
-# version means we need a patch, which is currently used unconditionally
-BUILDLINK_API_DEPENDS.Xaw3d+= Xaw3d>=1.5E
+DEPENDS+= fig2dev-[0-9]*:../../print/fig2dev
-WRKSRC= ${WRKDIR}/xfig.3.2.5b
-USE_IMAKE= YES
XAW_TYPE?= 3d
-NO_INSTALL_MANPAGES= YES # install.all does install.man
-INSTALL_TARGET= install install.all
-CFLAGS+= -I${X11BASE}/include/X11
-
-.include "../../mk/bsd.prefs.mk"
-
-post-extract:
- cd ${WRKSRC} && ${RM} -f Doc/*.orig Doc/*/*.orig Doc/*/*.save Doc/*/*/*.orig
- ${CHMOD} 755 ${WRKSRC}/Libraries
- find ${WRKSRC}/Libraries -type d -exec ${CHMOD} 0755 {} \;
- find ${WRKSRC}/Libraries -type f -exec ${CHMOD} 0644 {} \;
- find ${WRKSRC}/Doc -type d -exec ${CHMOD} 0755 {} \;
- find ${WRKSRC}/Doc -type f -exec ${CHMOD} 0644 {} \;
-
-SUBST_CLASSES+= xaw
-SUBST_STAGE.xaw= post-patch
-SUBST_MESSAGE.xaw= Fixing Imakefile
-SUBST_FILES.xaw= Imakefile
-.if defined(XAW_TYPE) && ${XAW_TYPE} == "3d"
-# define XAW3D and XAW3D1_5E
-SUBST_SED.xaw+= -e 's/.*\(\#define.XAW3D\)/\1/'
-# does not directly support Xaw3d
-.PHONY: buildlink-Xaw3d-inc-hack
-pre-configure: buildlink-Xaw3d-inc-hack
-
-buildlink-Xaw3d-inc-hack: buildlink-directories
- cd ${BUILDLINK_DIR}/include/X11 && ln -s Xaw3d Xaw
-.elif defined(XAW_TYPE) && ${XAW_TYPE} == "xpm"
-# define XAW3D, undef XAW3D1_5E
-SUBST_SED.xaw+= -e 's/.*\(\#define.XAW3D1_5E\)/XCOMM \1/'
-SUBST_SED.xaw+= -e t
-SUBST_SED.xaw+= -e 's/.*\(\#define.XAW3D\)/\1/'
-.else
-# undef XAW3D and XAW3D1_5E
-SUBST_SED.xaw+= -e 's/.*\(\#define.XAW3D\)/XCOMM \1/'
-.endif
-
-SUBST_CLASSES+= i18n
-SUBST_STAGE.i18n= post-patch
-SUBST_MESSAGE.i18n= Enabling I18N
-SUBST_FILES.i18n= Imakefile
-SUBST_SED.i18n+= -e 's/XCOMM \(\#define I18N\)/\1/'
-
-XFIGDOCDIR= ${PREFIX}/share/doc/xfig
-
-post-install:
- ${INSTALL_DATA} ${WRKSRC}/Doc/FORMAT?.? ${DESTDIR}${XFIGDOCDIR}
+GNU_CONFIGURE= yes
.include "../../mk/jpeg.buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../x11/libXi/buildlink3.mk"
.include "../../x11/libXpm/buildlink3.mk"
+# if we're using Xaw3d, then we need 1.5E or newer since using that
+# version means we need a patch, which is currently used unconditionally
+BUILDLINK_API_DEPENDS.Xaw3d+= Xaw3d>=1.5E
.include "../../mk/xaw.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"