Index: head/graphics/sam2p/Makefile =================================================================== --- head/graphics/sam2p/Makefile (revision 481157) +++ head/graphics/sam2p/Makefile (revision 481158) @@ -1,48 +1,46 @@ # Created by: ijliao # $FreeBSD$ PORTNAME= sam2p PORTVERSION= 0.49.3 PORTEPOCH= 1 CATEGORIES= graphics MASTER_SITES= https://github.com/${GH_ACCOUNT}/${PORTNAME}/releases/download/v${PORTVERSION}/ MAINTAINER= des@FreeBSD.org COMMENT= Converts raster (bitmap) image formats into PS or PDF files LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING RUN_DEPENDS= zip:archivers/zip \ tif22pnm:graphics/tif22pnm -BROKEN_FreeBSD_12= running make Makedep... error; configure: error: cannot compute depends - #USE_GITHUB= yes GH_ACCOUNT= pts USES= ghostscript:run gmake jpeg:run perl5 USE_PERL5= build GNU_CONFIGURE= yes CONFIGURE_ENV= ac_cv_path_pts_bash="${SH}" CONFIGURE_ARGS= --enable-gif ALL_TARGET= ${PORTNAME} PORTDOCS= * PORTEXAMPLES= * PLIST_FILES= bin/${PORTNAME} OPTIONS_DEFINE= DOCS EXAMPLES do-install: ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin do-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR} do-install-EXAMPLES-on: @(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . \ ${STAGEDIR}${EXAMPLESDIR}) .include Index: head/graphics/sam2p/files/patch-configure =================================================================== --- head/graphics/sam2p/files/patch-configure (revision 481157) +++ head/graphics/sam2p/files/patch-configure (revision 481158) @@ -1,11 +1,11 @@ ---- configure.orig Wed Oct 1 19:19:53 2003 -+++ configure Sun Jan 11 20:48:06 2004 -@@ -7502,7 +7502,7 @@ +--- configure.orig 2014-01-19 19:50:35 UTC ++++ configure +@@ -7520,7 +7520,7 @@ rm -f Makedep ac_n="${ac_n:-$ECHO_N}" echo $ac_n "running make Makedep""... $ac_c" 1>&6 echo "configure:7504: running make Makedep" >&5 -if >&5 2>&5 make Makedep; then : +if >&5 2>&5 gmake Makedep; then : echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6 Index: head/graphics/sam2p/files/patch-gensio.cpp =================================================================== --- head/graphics/sam2p/files/patch-gensio.cpp (revision 481157) +++ head/graphics/sam2p/files/patch-gensio.cpp (revision 481158) @@ -1,14 +1,32 @@ ---- gensio.cpp.orig Fri Feb 7 02:24:56 2003 -+++ gensio.cpp Fri Feb 7 02:25:11 2003 -@@ -491,11 +491,7 @@ +--- gensio.cpp.orig 2014-01-19 19:50:35 UTC ++++ gensio.cpp +@@ -494,7 +494,7 @@ Filter::PipeE::PipeE(GenBuffer::Writable + + #if HAVE_PTS_POPEN + if (!tmpsname) { +- if (NULLP==(p=popen(redir_cmd(), "w"CFG_PTS_POPEN_B))) Error::sev(Error::EERROR) << "Filter::PipeE" << ": popen() failed: " << (SimBuffer::B().appendDumpC(redir_cmd)) << (Error*)0; ++ if (NULLP==(p=popen(redir_cmd(), "w" CFG_PTS_POPEN_B))) Error::sev(Error::EERROR) << "Filter::PipeE" << ": popen() failed: " << (SimBuffer::B().appendDumpC(redir_cmd)) << (Error*)0; + signal(SIGPIPE, SIG_IGN); /* Don't abort process with SIGPIPE signals if child cannot read our data */ + } else { + #else +@@ -622,7 +622,7 @@ slen_t Filter::PipeD::vi_read(char *tobu + if (state==0) { /* Read the whole stream from `in', write it to `tmpsname' */ + #if HAVE_PTS_POPEN + if (!tmpsname) { +- if (NULLP==(p=popen(redir_cmd(), "w"CFG_PTS_POPEN_B))) Error::sev(Error::EERROR) << "Filter::PipeD" << ": popen() failed: " << (SimBuffer::B().appendDumpC(redir_cmd)) << (Error*)0; ++ if (NULLP==(p=popen(redir_cmd(), "w" CFG_PTS_POPEN_B))) Error::sev(Error::EERROR) << "Filter::PipeD" << ": popen() failed: " << (SimBuffer::B().appendDumpC(redir_cmd)) << (Error*)0; + signal(SIGPIPE, SIG_IGN); /* Don't abort process with SIGPIPE signals if child cannot read our data */ + vi_precopy(); + in.vi_read(0,0); +@@ -731,11 +731,7 @@ slen_t Filter::FlatD::vi_read(char *to_b /* --- */ -#if HAVE_lstat_in_sys_stat -# define PTS_lstat lstat -#else # define PTS_lstat stat -#endif /** @param fname must start with '/' (dir separator) * @return true if file successfully created Index: head/graphics/sam2p/files/patch-in__ps.cpp =================================================================== --- head/graphics/sam2p/files/patch-in__ps.cpp (nonexistent) +++ head/graphics/sam2p/files/patch-in__ps.cpp (revision 481158) @@ -0,0 +1,20 @@ +--- in_ps.cpp.orig 2014-01-19 19:50:35 UTC ++++ in_ps.cpp +@@ -137,7 +137,7 @@ static Image::Sampled *in_eps_reader(Ima + // fprintf(stderr, "bbox=[%"PTS_CFG_PRINTFGLEN"g %"PTS_CFG_PRINTFGLEN"g %"PTS_CFG_PRINTFGLEN"g %"PTS_CFG_PRINTFGLEN"g]\n", llx, lly, urx, ury); + /* Dat: we must call translate _after_ setpagedevice (so it will take effect), at least with ESP Ghostscript 7.05.6 (2003-02-05); BUGFIX at Fri Aug 12 22:49:07 CEST 2005 */ + sprintf(bboxline, +- "<>setpagedevice\n" ++ "<>setpagedevice\n" + /* removing /PageSize also cancels /a4, /a5 etc. */ + /* we need `currentmatrix ... setpagedevice setmatrix' because + * setpagedevice cancels the current transformation matrix so our +@@ -147,7 +147,7 @@ static Image::Sampled *in_eps_reader(Ima + "/setpagedevice{matrix currentmatrix exch " + "dup length dict copy dup /PageSize undef setpagedevice " + "setmatrix}bind def\n" +- "%"PTS_CFG_PRINTFGLEN"g %"PTS_CFG_PRINTFGLEN"g translate\n" ++ "%" PTS_CFG_PRINTFGLEN "g %" PTS_CFG_PRINTFGLEN "g translate\n" + , urx-llx, ury-lly, -llx, -lly); + } else { + Error::sev(Error::WARNING) << "in_eps_reader: missing EPS bbox" << (Error*)0; Property changes on: head/graphics/sam2p/files/patch-in__ps.cpp ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/graphics/sam2p/files/patch-minips.cpp =================================================================== --- head/graphics/sam2p/files/patch-minips.cpp (nonexistent) +++ head/graphics/sam2p/files/patch-minips.cpp (revision 481158) @@ -0,0 +1,32 @@ +--- minips.cpp.orig 2014-01-19 19:50:35 UTC ++++ minips.cpp +@@ -292,9 +292,9 @@ MiniPS::Real::Real(double d_, char const + void MiniPS::Real::dump(GenBuffer::Writable &out_, bool dumpPS_force) { + char buf[64]; /* Imp: should be enough?? */ + if (metric!=0 && (dumpPS_force || dumpPS)) { +- sprintf(buf, "%"PTS_CFG_PRINTFGLEN"g%s", d, me_psfactor[metric]); ++ sprintf(buf, "%" PTS_CFG_PRINTFGLEN "g%s", d, me_psfactor[metric]); + } else { +- sprintf(buf, "%"PTS_CFG_PRINTFGLEN"g", d*me_factor[metric]); ++ sprintf(buf, "%" PTS_CFG_PRINTFGLEN "g", d*me_factor[metric]); + } + out_ << buf; + } +@@ -1044,7 +1044,7 @@ void MiniPS::dumpScale(GenBuffer::Writab + } else { + d = d < 0 ? 72.0 / -d : d / 72.0; + char buf[64]; /* Dat: enough */ +- sprintf(buf, "%"PTS_CFG_PRINTFGLEN"g", d); ++ sprintf(buf, "%" PTS_CFG_PRINTFGLEN "g", d); + out << buf; + } + } +@@ -1093,7 +1093,7 @@ void MiniPS::dumpAdd3(GenBuffer::Writabl + out << (rounding>=2 && ll<0 ? 0 : ll); + } else { + char buf[64]; /* Dat: enough */ +- sprintf(buf, "%"PTS_CFG_PRINTFGLEN"g", d); ++ sprintf(buf, "%" PTS_CFG_PRINTFGLEN "g", d); + out << buf; + } + } Property changes on: head/graphics/sam2p/files/patch-minips.cpp ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/graphics/sam2p/files/patch-ps__tiny.c =================================================================== --- head/graphics/sam2p/files/patch-ps__tiny.c (revision 481157) +++ head/graphics/sam2p/files/patch-ps__tiny.c (revision 481158) @@ -1,13 +1,40 @@ ---- ps_tiny.c.orig 2005-02-22 08:22:22.000000000 +0900 -+++ ps_tiny.c 2010-03-19 05:54:19.000000000 +0900 +--- ps_tiny.c.orig 2014-09-16 08:52:28 UTC ++++ ps_tiny.c @@ -1,10 +1,3 @@ -#define DUMMY \ -set -ex; \ -gcc -O3 -s -DNDEBUG=1 -DNO_CONFIG=1 -ansi -pedantic -Wunused \ - -Wall -W -Wstrict-prototypes -Wtraditional -Wnested-externs -Winline \ - -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wmissing-prototypes \ - -Wmissing-declarations ps_tiny.c -o ps_tiny; \ -exit /* ps_tiny.c -- read .pin files, write short PostScript code * by pts@fazekas.hu at Sat Aug 24 12:46:14 CEST 2002 * -- Sat Aug 24 18:23:08 CEST 2002 +@@ -151,7 +144,7 @@ static void ungetcc(int c) { + } + + static void erri(char const*msg1, char const*msg2) { +- fprintf(stderr, "%s: error at %"SLEN_P"u.%"SLEN_P"u.%"SLEN_P"u: %s%s\n", ++ fprintf(stderr, "%s: error at %" SLEN_P "u.%" SLEN_P "u.%" SLEN_P "u: %s%s\n", + PROGNAME, curline, curofs-leftofs+1, curofs, msg1, msg2?msg2:""); + exit(3); + } +@@ -230,7 +223,7 @@ static sbool is_wordx(char const *s) { + /** @param b: assume null-terminated @return true on error */ + static /*inline*/ sbool toInteger(char *s, psint_t *ret) { + int n=0; /* BUGFIX?? found by __CHECKER__ */ +- return sscanf(s, "%"SLEN_P"i%n", ret, &n)<1 || s[n]!='\0'; ++ return sscanf(s, "%" SLEN_P "i%n", ret, &n)<1 || s[n]!='\0'; + } + + /** @param b: assume null-terminated @return true on error */ +@@ -700,7 +693,7 @@ int main(int argc, char**argv) { + getotag("Abbr"); + getkey("acount"); acount=getuintval(); + getkey("xcount"); xcount=getuintval(); +- sprintf(tmp,"%"SLEN_P"u dict%%", acount+xcount); ++ sprintf(tmp,"%" SLEN_P "u dict%%", acount+xcount); + setifmt(tmp,0); copy("I"); noifmt(); + gettagbeg(); + Index: head/graphics/sam2p/files/patch-pts__defl.c =================================================================== --- head/graphics/sam2p/files/patch-pts__defl.c (revision 481157) +++ head/graphics/sam2p/files/patch-pts__defl.c (revision 481158) @@ -1,13 +1,13 @@ ---- pts_defl.c.orig 2008-08-29 05:16:47.000000000 +0900 -+++ pts_defl.c 2010-03-19 05:54:55.000000000 +0900 +--- pts_defl.c.orig 2014-09-16 08:52:28 UTC ++++ pts_defl.c @@ -1,10 +1,3 @@ -#define DUMMY \ -set -ex; \ -"${CC:-gcc}" -DNDEBUG=1 -DPTS_DEFL_MAIN -O3 -ansi \ - -Wall -W -Wstrict-prototypes -Wtraditional -Wnested-externs -Winline \ - -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wmissing-prototypes \ - -Wmissing-declarations pts_defl.c -o flateenc; \ -exit /* * pts_defl.c -- C source file ZIP compression ripped from linux-2.6.8.1 * by pts@fazekas.hu at Tue Jan 18 15:19:06 CET 2005 Index: head/graphics/sam2p/files/patch-pts__lzw.c =================================================================== --- head/graphics/sam2p/files/patch-pts__lzw.c (revision 481157) +++ head/graphics/sam2p/files/patch-pts__lzw.c (revision 481158) @@ -1,13 +1,13 @@ ---- pts_lzw.c.orig 2002-12-12 01:43:08.000000000 +0900 -+++ pts_lzw.c 2010-03-19 05:56:24.000000000 +0900 +--- pts_lzw.c.orig 2014-09-16 08:52:28 UTC ++++ pts_lzw.c @@ -1,10 +1,3 @@ -#define DUMMY \ -set -ex; \ -g++ -DNDEBUG=1 -O3 -ansi -pedantic \ - -Wall -W -Wstrict-prototypes -Wtraditional -Wnested-externs -Winline \ - -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wmissing-prototypes \ - -Wmissing-declarations pts_lzw.c -c; \ -exit /* pts_lzw.c -- a real, effective implementation of PostScript * LanguageLevel2 and PDF /LZWEncode and /LZWDecode filters (same as the LZW * compression used in TIFF raster image files)