head 1.2; access; symbols pkgsrc-2013Q2:1.2.0.54 pkgsrc-2013Q2-base:1.2 pkgsrc-2012Q4:1.2.0.52 pkgsrc-2012Q4-base:1.2 pkgsrc-2011Q4:1.2.0.50 pkgsrc-2011Q4-base:1.2 pkgsrc-2011Q2:1.2.0.48 pkgsrc-2011Q2-base:1.2 pkgsrc-2009Q4:1.2.0.46 pkgsrc-2009Q4-base:1.2 pkgsrc-2008Q4:1.2.0.44 pkgsrc-2008Q4-base:1.2 pkgsrc-2008Q3:1.2.0.42 pkgsrc-2008Q3-base:1.2 cube-native-xorg:1.2.0.40 cube-native-xorg-base:1.2 pkgsrc-2008Q2:1.2.0.38 pkgsrc-2008Q2-base:1.2 pkgsrc-2008Q1:1.2.0.36 pkgsrc-2008Q1-base:1.2 pkgsrc-2007Q4:1.2.0.34 pkgsrc-2007Q4-base:1.2 pkgsrc-2007Q3:1.2.0.32 pkgsrc-2007Q3-base:1.2 pkgsrc-2007Q2:1.2.0.30 pkgsrc-2007Q2-base:1.2 pkgsrc-2007Q1:1.2.0.28 pkgsrc-2007Q1-base:1.2 pkgsrc-2006Q4:1.2.0.26 pkgsrc-2006Q4-base:1.2 pkgsrc-2006Q3:1.2.0.24 pkgsrc-2006Q3-base:1.2 pkgsrc-2006Q2:1.2.0.22 pkgsrc-2006Q2-base:1.2 pkgsrc-2006Q1:1.2.0.20 pkgsrc-2006Q1-base:1.2 pkgsrc-2005Q4:1.2.0.18 pkgsrc-2005Q4-base:1.2 pkgsrc-2005Q3:1.2.0.16 pkgsrc-2005Q3-base:1.2 pkgsrc-2005Q2:1.2.0.14 pkgsrc-2005Q2-base:1.2 pkgsrc-2005Q1:1.2.0.12 pkgsrc-2005Q1-base:1.2 pkgsrc-2004Q4:1.2.0.10 pkgsrc-2004Q4-base:1.2 pkgsrc-2004Q3:1.2.0.8 pkgsrc-2004Q3-base:1.2 pkgsrc-2004Q2:1.2.0.6 pkgsrc-2004Q2-base:1.2 pkgsrc-2004Q1:1.2.0.4 pkgsrc-2004Q1-base:1.2 pkgsrc-2003Q4:1.2.0.2 pkgsrc-2003Q4-base:1.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.2 date 2002.05.07.13.18.28; author itohy; state dead; branches; next 1.1; 1.1 date 2000.07.18.07.46.41; author itohy; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2000.07.18.07.46.41; author itohy; state Exp; branches; next ; desc @@ 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 @$NetBSD: patch-ag,v 1.1 2000/07/18 07:46:41 itohy Exp $ --- pstoedit.cpp.orig Mon Jul 3 02:18:38 2000 +++ pstoedit.cpp Sat Jul 15 00:47:54 2000 @@@@ -218,6 +218,12 @@@@ } // also look in the directory where the pstoedit .exe/dll was found +#ifdef PATH_PLUGINDIR + if (strcmp(PATH_PLUGINDIR,plugindir?plugindir:"") != 0) { + loadPlugInDrivers(PATH_PLUGINDIR,errstream); + pluginsloaded = true; + } +#else char szExePath[1000]; szExePath[0]= '\0'; const int r = P_GetPathToMyself(progname,szExePath, sizeof(szExePath)); @@@@ -230,6 +236,7 @@@@ pluginsloaded = true; } } +#endif delete [] plugindir; } @@@@ -587,6 +594,14 @@@@ // also look in the directory where the pstoedit .exe/dll was found char szExePath[1000]; szExePath[0]= '\0'; +#ifdef PATH_DATADIR + RSString test(szExePath); + test += PATH_DATADIR; + char delim[] = {directoryDelimiter,'\0'}; + test += delim; + test+=drivername; + test+=".fmp"; +#else const int r = P_GetPathToMyself(argv[0],szExePath, sizeof(szExePath)); if( r && verbose) { errstream << " path to myself: " << szExePath << endl; @@@@ -605,6 +620,7 @@@@ test+=drivername; test+=".fmp"; #endif +#endif // errstream << test.value() << endl; if (fileExists(test.value())) { if(verbose) { @@@@ -612,7 +628,9 @@@@ } outputdriver->theFontMapper.readMappingTable(errstream,test.value()); } +#ifndef PATH_DATADIR } +#endif } char * gsoutName = 0; @ 1.1 log @Initial revision @ text @d1 1 a1 1 $NetBSD$ @ 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 @@