head 1.6; access; symbols pkgsrc-2013Q2:1.6.0.6 pkgsrc-2013Q2-base:1.6 pkgsrc-2012Q4:1.6.0.4 pkgsrc-2012Q4-base:1.6 pkgsrc-2011Q4:1.6.0.2 pkgsrc-2011Q4-base:1.6 pkgsrc-2011Q3:1.5.0.12 pkgsrc-2011Q3-base:1.5 pkgsrc-2011Q2:1.5.0.10 pkgsrc-2011Q2-base:1.5 pkgsrc-2011Q1:1.5.0.8 pkgsrc-2011Q1-base:1.5 pkgsrc-2010Q4:1.5.0.6 pkgsrc-2010Q4-base:1.5 pkgsrc-2010Q3:1.5.0.4 pkgsrc-2010Q3-base:1.5 pkgsrc-2010Q2:1.5.0.2 pkgsrc-2010Q2-base:1.5 pkgsrc-2009Q4:1.4.0.32 pkgsrc-2009Q4-base:1.4 pkgsrc-2008Q4:1.4.0.30 pkgsrc-2008Q4-base:1.4 pkgsrc-2008Q3:1.4.0.28 pkgsrc-2008Q3-base:1.4 cube-native-xorg:1.4.0.26 cube-native-xorg-base:1.4 pkgsrc-2008Q2:1.4.0.24 pkgsrc-2008Q2-base:1.4 pkgsrc-2008Q1:1.4.0.22 pkgsrc-2008Q1-base:1.4 pkgsrc-2007Q4:1.4.0.20 pkgsrc-2007Q4-base:1.4 pkgsrc-2007Q3:1.4.0.18 pkgsrc-2007Q3-base:1.4 pkgsrc-2007Q2:1.4.0.16 pkgsrc-2007Q2-base:1.4 pkgsrc-2007Q1:1.4.0.14 pkgsrc-2007Q1-base:1.4 pkgsrc-2006Q4:1.4.0.12 pkgsrc-2006Q4-base:1.4 pkgsrc-2006Q3:1.4.0.10 pkgsrc-2006Q3-base:1.4 pkgsrc-2006Q2:1.4.0.8 pkgsrc-2006Q2-base:1.4 pkgsrc-2006Q1:1.4.0.6 pkgsrc-2006Q1-base:1.4 pkgsrc-2005Q4:1.4.0.4 pkgsrc-2005Q4-base:1.4 pkgsrc-2005Q3:1.4.0.2 pkgsrc-2005Q3-base:1.4 pkgsrc-2005Q2:1.3.0.4 pkgsrc-2005Q2-base:1.3 pkgsrc-2005Q1:1.3.0.2 pkgsrc-2005Q1-base:1.3 pkgsrc-2004Q4:1.2.0.18 pkgsrc-2004Q4-base:1.2 pkgsrc-2004Q3:1.2.0.16 pkgsrc-2004Q3-base:1.2 pkgsrc-2004Q2:1.2.0.14 pkgsrc-2004Q2-base:1.2 pkgsrc-2004Q1:1.2.0.12 pkgsrc-2004Q1-base:1.2 pkgsrc-2003Q4:1.2.0.10 pkgsrc-2003Q4-base:1.2 netbsd-1-6-1:1.2.0.6 netbsd-1-6-1-base:1.2 netbsd-1-6:1.2.0.8 netbsd-1-6-RELEASE-base:1.2 pkgviews:1.2.0.4 pkgviews-base:1.2 buildlink2:1.2.0.2 buildlink2-base:1.2 netbsd-1-5-PATCH003:1.1.1.1 netbsd-1-5-PATCH001:1.1.1.1 netbsd-1-5-RELEASE:1.1.1.1 netbsd-1-4-PATCH003:1.1.1.1 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.6 date 2011.11.30.21.07.20; author wiz; state dead; branches; next 1.5; 1.5 date 2010.04.13.06.53.20; author obache; state Exp; branches; next 1.4; 1.4 date 2005.08.26.09.29.00; author drochner; state dead; branches; next 1.3; 1.3 date 2005.02.25.18.31.43; author drochner; state Exp; branches; next 1.2; 1.2 date 2002.05.07.13.18.27; author itohy; state Exp; branches; next 1.1; 1.1 date 2000.07.18.07.46.40; author itohy; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2000.07.18.07.46.40; author itohy; state Exp; branches; next ; desc @@ 1.6 log @Update to 3.60: New or changed in 3.60: added option (-minlinewidth) for adjusting very thin (e.g. zero-width) lines to a minimal width. added an option (-pslanguagelevel) for easy switching the language level to be used by GhostScript during interpretation of the PostScript/PDF file. new driver for the "Context Free" drawing tool (http://www.contextfreeart.org/ ) contributed by Scott Pakin. fixed the windows binary version - some drivers were missing. fixed some problems in handling composite fonts (FontType = 0) windows 32 bit binary can call 64 bit ghostscript as exe (i.e. not via DLL interface) support for 64 bit windows and Office 2010 @ text @$NetBSD: patch-ad,v 1.5 2010/04/13 06:53:20 obache Exp $ ming_config.h is not installed with ming>=0.4 --- src/drvswf.cpp.orig 2009-06-21 15:10:21.000000000 +0000 +++ src/drvswf.cpp @@@@ -32,7 +32,6 @@@@ //static bool cubic = false; #include "mingpp.h" -#include "ming_config.h" #if defined(_WIN32) extern "C" { @@@@ -718,4 +717,4 @@@@ static DriverDescriptionT < drvSWF > D_S false /*clipping */ ); #endif - \ No newline at end of file + @ 1.5 log @Update pstoedit to 3.50. While here, remove restriction, it's "please", not "have to". see: http://packages.debian.org/changelogs/pool/main/p/pstoedit/pstoedit_3.45-8/pstoedit.copyright New or changed in 3.50: * added an option (-gs) to specify the full path to GhostScript (under Windows - either the .exe or the DLL). This can be used by portable applications to direct pstoedit to use a specific GhostScript version. * Stanislav Brabec contributed several improvements to the PCB driver. See http://www.penguin.cz/~utx/pstoedit-pcb/ on how these can be useful. * Scott Pakin submitted several improvements to the mpost driver and the font substitution mechanism. * new driver for .vtk files e.g. for ParaView - http://www.paraview.org/ - but this is still a very basic version. Thanks to Mitesh Patel for initiating and testing. * new driver for cairo (http://cairographics.org/ ) contributed by Dan McMahill. This driver generates C-code which can be compiled and linked against the cairo libraries. See the contrib/cairo directory for an example. * several improvements on the DXF driver as suggested and sponsored by Markus Meyer. * because pstoedit may write its output to stdout, all output written by GhostScript to stdout is now redirected to stderr in order to avoid mixed output. * added a -q option to suppress the initial startup message of pstoedit. This can by useful when being called via a pipe, e.g. from inkscape. However, note that this does not suppress all output written to stderr - see also note above. * John Bowman fixed a number of problems related to clipping and image support for the Asymptote backend. * fixed a compilation problem with g++ V4.x. * new driver for gcode (.ngc files) (tested with emc see http://linuxcnc.org). Contributed by Lawrence Glaister. * some adaptations for newer versions of libming * fixed a line width problem for xfig format. * corrected the broken pstoedit.m4 - thanks to Ian Abbott * some minor code beautifying. @ text @d1 1 a1 1 $NetBSD$ @ 1.4 log @remove stale patchfiles @ text @d1 1 a1 1 $NetBSD: patch-ad,v 1.3 2005/02/25 18:31:43 drochner Exp $ d3 15 a17 37 --- miscutil.cpp.orig 2001-12-30 21:35:25.000000000 +0100 +++ miscutil.cpp @@@@ -26,8 +26,12 @@@@ // #ifdef _MSC_VER // for getcwd ( at least for Visual C++) -#if defined(unix) || defined(__unix__) || defined(_unix) || defined(__unix) || defined(__EMX__) || defined (NetBSD) +#if defined(unix) || defined(__unix__) || defined(_unix) || defined(__unix) || defined(__EMX__) || defined (__NetBSD__) #include +#include +#if defined(BSD) && BSD >= 199306 +#define HAVE_MKSTEMP +#endif #ifdef __hpux // HP-UX does not define getcwd in unistd.h @@@@ -134,6 +138,17 @@@@ char *tempnam(const char *, const char * char *full_qualified_tempnam(const char *pref) { +#ifdef HAVE_MKSTEMP + char buf[80]; + int fd; + + /* safer than tempnam(), probably, but, .... */ + sprintf(buf, "/tmp/%sXXXXXX", pref); + if ((fd = mkstemp(buf)) < 0) + return NULL; + close(fd); + return strdup(buf); +#else #if defined (__BCPLUSPLUS__) || defined (__TCPLUSPLUS__) /* borland has a prototype that expects a char * as second arg */ char *filename = tempnam(0, (char *) pref); @@@@ -161,6 +176,7 @@@@ char *full_qualified_tempnam(const char return filename; } d19 3 a21 16 +#endif } unsigned short hextoint(const char hexchar) @@@@ -374,7 +390,11 @@@@ ostream & operator << (ostream & out, co TempFile::TempFile() { +#if 1 + tempFileName = full_qualified_tempnam("pstmp"); +#else tempFileName = tempnam(0, "pstmp"); +#endif // cout << "constructed " << tempFileName << endl; } @ 1.3 log @check for __NetBSD__, not just NetBSD. fixes build on -current (there is a newer version available, tbd later) @ text @d1 1 a1 1 $NetBSD$ @ 1.2 log @Update pstoedit to 3.31. Approved by wiz. Tested compilation on i386 (a.out) and alpha (ELF). Note the usage of libtool is not normal. @ text @d1 1 a1 1 $NetBSD: patch-ad,v 1.1.1.1 2000/07/18 07:46:40 itohy Exp $ d3 5 a7 3 --- miscutil.cpp.orig Mon Dec 31 05:35:25 2001 +++ miscutil.cpp Fri Mar 22 12:37:42 2002 @@@@ -28,6 +28,10 @@@@ d9 2 a10 1 #if defined(unix) || defined(__unix__) || defined(_unix) || defined(__unix) || defined(__EMX__) || defined (NetBSD) d19 1 a19 1 @@@@ -134,6 +138,17 @@@@ d37 1 a37 1 @@@@ -161,6 +176,7 @@@@ d45 1 a45 1 @@@@ -374,7 +390,11 @@@@ @ 1.1 log @Initial revision @ text @d1 1 a1 1 $NetBSD$ d3 2 a4 2 --- miscutil.cpp.orig Mon Jul 3 02:18:37 2000 +++ miscutil.cpp Thu Jul 13 21:23:57 2000 d7 1 a7 1 #if defined(unix) || defined(__unix__) || defined(_unix) || defined(__unix) || defined(__EMX__) a12 4 #else #include #endif @@@@ -113,6 +117,17 @@@@ d14 5 a18 1 char * full_qualified_tempnam(const char * pref) d33 2 a34 2 char * filename = tempnam(0,(char *) pref); @@@@ -141,6 +156,7 @@@@ d41 2 a42 2 // a strdup which uses new instead of malloc @@@@ -280,7 +296,11 @@@@ d44 2 a45 2 TempFile::TempFile() { d49 1 a49 1 tempFileName = tempnam(0,"pstmp"); @ 1.1.1.1 log @pstoedit, a converter from PostScript and PDF files to other vector graphic formats, including fig (xfig, transfig), tgif .obj, DXF (CAD exchange format), PIC (troff), LaTeX2e picture, and etc. Some files may not be converted. International characters may be broken into polylines and splines, but would be better than nothing. @ text @@