Index: head/textproc/heirloom-doctools/Makefile =================================================================== --- head/textproc/heirloom-doctools/Makefile (revision 437336) +++ head/textproc/heirloom-doctools/Makefile (revision 437337) @@ -1,53 +1,54 @@ # $FreeBSD$ PORTNAME= heirloom-doctools -DISTVERSION= 160308 +PORTVERSION= 160308 +PORTREVISION= 1 CATEGORIES= textproc MAINTAINER= hrs@FreeBSD.org COMMENT= Portable and enhanced troff, nroff, and related utilities LICENSE= CDDL USES= gmake USE_GITHUB= yes GH_ACCOUNT= n-t-roff ALL_TARGET= #empty MAKE_ARGS+= INSTALL="${INSTALL}" \ BINDIR=${BINDIR} \ LIBDIR=${LIBDIR} \ PUBDIR=${PUBDIR} \ MANDIR=${MANDIR} \ MACDIR=${MACDIR} \ FNTDIR=${FNTDIR} \ PSTDIR=${PSTDIR} \ TABDIR=${TABDIR} \ HYPDIR=${HYPDIR} \ REFDIR=${REFDIR} \ ROOT=${STAGEDIR} MAKEFILE= makefile PLIST_SUB= LIBEXECDIR=libexec/${PORTNAME} MACDIR?= ${DATADIR}/tmac FNTDIR?= ${DATADIR}/font TABDIR?= ${DATADIR}/nterm HYPDIR?= ${DATADIR}/hyphen REFDIR?= ${PREFIX}/libexec/${PORTNAME}/reftools PUBDIR?= ${DATADIR}/pub BINDIR?= ${PREFIX}/bin LIBDIR?= ${PREFIX}/libexec/${PORTNAME} PSTDIR?= ${DATADIR}/font/devpost/postscript MANDIR?= ${PREFIX}/man PORTDOCS= * MAKE_JOBS_UNSAFE= yes OPTIONS_DEFINE= DOCS post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} cd ${WRKSRC} && ${INSTALL_DATA} CHANGES README ${STAGEDIR}${DOCSDIR} cd ${WRKSRC} && ${COPYTREE_SHARE} LICENSE ${STAGEDIR}${DOCSDIR} .include Index: head/textproc/heirloom-doctools/files/patch-refer_inv1.c =================================================================== --- head/textproc/heirloom-doctools/files/patch-refer_inv1.c (nonexistent) +++ head/textproc/heirloom-doctools/files/patch-refer_inv1.c (revision 437337) @@ -0,0 +1,24 @@ +--- refer/inv1.c.orig 2016-03-09 21:27:38 UTC ++++ refer/inv1.c +@@ -28,6 +28,9 @@ + #include + #include + #include ++#ifdef __FreeBSD__ ++#include ++#endif + #include + #include + #include "refer..c" +@@ -59,7 +62,11 @@ main(int argc, char **argv) + int iflong =0; + char *sortdir; + ++#ifdef __FreeBSD__ ++ sortdir = _PATH_VARTMP; ++#else + sortdir = (access("/crp/tmp", 06)==0) ? "/crp/tmp" : "/var/tmp"; ++#endif + while (argc>1 && argv[1][0] == '-') + { + switch(argv[1][1]) Property changes on: head/textproc/heirloom-doctools/files/patch-refer_inv1.c ___________________________________________________________________ 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/textproc/heirloom-doctools/files/patch-refer_refer5.c =================================================================== --- head/textproc/heirloom-doctools/files/patch-refer_refer5.c (nonexistent) +++ head/textproc/heirloom-doctools/files/patch-refer_refer5.c (revision 437337) @@ -0,0 +1,22 @@ +--- refer/refer5.c.orig 2016-03-09 21:27:38 UTC ++++ refer/refer5.c +@@ -148,14 +148,18 @@ putsig (int nf, char **flds, int nref, c + flout(); + sig[0] = 0; + prevsig = 0; +- if (fo == fhide) { ++ if (fhide != NULL && fo == fhide) { + int ch; + fclose(fhide); + fhide = fopen(hidenam, "r"); ++ if (fhide == NULL) ++ err("Can't get scratch file %s", ++ hidenam); + fo = ftemp; + while ((ch = getc(fhide)) != EOF) + putc(ch, fo); + fclose(fhide); ++ fhide = NULL; + unlink(hidenam); + } + } Property changes on: head/textproc/heirloom-doctools/files/patch-refer_refer5.c ___________________________________________________________________ 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/textproc/heirloom-doctools/files/patch-refer_refer7.c =================================================================== --- head/textproc/heirloom-doctools/files/patch-refer_refer7.c (nonexistent) +++ head/textproc/heirloom-doctools/files/patch-refer_refer7.c (revision 437337) @@ -0,0 +1,29 @@ +--- refer/refer7.c.orig 2016-03-09 21:27:38 UTC ++++ refer/refer7.c +@@ -56,16 +56,21 @@ dumpold(void) + + if (!endpush) + return; +- fclose(fo); +- fo = NULL; ++ if (fo != NULL) { ++ fclose(fo); ++ fo = NULL; ++ } ++ fi = fopen(tfile, "r"); ++ if (fi == NULL) ++ return; + if (sort) { + char comm[100]; ++ ++ fclose(fi); + snprintf(comm, sizeof(comm), "sort -f %s -o %s", tfile, tfile); + system(comm); ++ fi = fopen(tfile, "r"); + } +- fi = fopen(tfile, "r"); +- if (fi == NULL) +- return; + flout(); + fprintf(ftemp, ".]<\n"); + while ((c = getc(fi)) > 0) { Property changes on: head/textproc/heirloom-doctools/files/patch-refer_refer7.c ___________________________________________________________________ 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/textproc/heirloom-doctools/files/patch-troff_troff.d_dpost.d_draw.c =================================================================== --- head/textproc/heirloom-doctools/files/patch-troff_troff.d_dpost.d_draw.c (nonexistent) +++ head/textproc/heirloom-doctools/files/patch-troff_troff.d_dpost.d_draw.c (revision 437337) @@ -0,0 +1,11 @@ +--- troff/troff.d/dpost.d/draw.c.orig 2016-03-09 21:27:38 UTC ++++ troff/troff.d/dpost.d/draw.c +@@ -348,7 +348,7 @@ drawspline( + { + + +- int x[100], y[100]; ++ int x[5000], y[5000]; + int i, N; + + Property changes on: head/textproc/heirloom-doctools/files/patch-troff_troff.d_dpost.d_draw.c ___________________________________________________________________ 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