Index: head/print/a2ps/Makefile =================================================================== --- head/print/a2ps/Makefile (revision 398048) +++ head/print/a2ps/Makefile (revision 398049) @@ -1,92 +1,92 @@ # Created by: Chuck Robey # $FreeBSD$ PORTNAME= a2ps PORTVERSION= 4.13b -PORTREVISION= 6 +PORTREVISION= 7 CATEGORIES= print MASTER_SITES= GNU LOCAL/hrs/a2ps/:i18n MAINTAINER= dinoex@FreeBSD.org COMMENT= Formats an ASCII file for printing on a postscript printer LICENSE= GPLv2 LIB_DEPENDS= libpaper.so:${PORTSDIR}/print/libpaper PORTSCOUT= skipv:4.14 USES= perl5 cpe USE_CSTD= gnu89 GNU_CONFIGURE= yes USE_LDCONFIG= yes INFO= a2ps ogonkify regex WRKSRC= ${WRKDIR}/${PORTNAME}-4.13 I18N_PACKAGE= i18n-fonts-0.1 CPE_VENDOR= gnu CONFIGURE_ARGS= --with-medium=libpaper --sharedstatedir=${PREFIX}/share \ --sysconfdir=${PREFIX}/etc --datadir=${PREFIX}/share \ --localstatedir=${PREFIX}/share LIBS+= -L${LOCALBASE}/lib PAPERSIZE?= .if ${PAPERSIZE:tl} == a4 RUN_DEPENDS+= ${LOCALBASE}/etc/papersize:${PORTSDIR}/print/papersize-default-a4 .endif OPTIONS_DEFINE=NLS I18N EMACS OPTIONS_DEFAULT=NLS NO_OPTIONS_SORT=yes OPTIONS_SUB= yes EMACS_DESC=Enable Emacs support I18N_DESC=Enable I18N support NLS_USES= gettext NLS_CONFIGURE_ENABLE= nls EMACS_USE= EMACS=yes EMACS_CONFIGURE_ON= --with-lispdir=${LOCALBASE}/${EMACS_SITE_LISPDIR} .include .if ! ${PORT_OPTIONS:MEMACS} CONFIGURE_ENV+= EMACS=no .endif post-patch: ${REINPLACE_CMD} -e 's|^DESTDIR|#DESTDIR|' \ `${FIND} ${WRKSRC} -name "Makefile.in"` .if ${PORT_OPTIONS:MI18N} #DISTFILES+= ${I18N_PACKAGE}${EXTRACT_SUFX}:i18n DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${I18N_PACKAGE}${EXTRACT_SUFX}:i18n pre-configure: cd ${WRKDIR}/${I18N_PACKAGE}/afm && \ ${ECHO_CMD} *.afm > afms.lst && \ ${MV} *.afm ${WRKSRC}/afm cd ${WRKDIR}/${I18N_PACKAGE}/fonts && \ ${MV} *.pfb ${WRKSRC}/fonts post-configure: @cd ${WRKSRC}/fonts && { ${ECHO_CMD} ''; \ ${ECHO_CMD} "pfb_fonts =" *.pfb; } >> Makefile && \ ${REINPLACE_CMD} 's,^\(fonts_DATA = .*\),\1 $$(pfb_fonts),' Makefile @cd ${WRKSRC}/afm && { ${ECHO_CMD} ''; \ ${ECHO_CMD} "i18n_afms =" `cat ${WRKDIR}/${I18N_PACKAGE}/afm/afms.lst`; } >> Makefile && \ ${REINPLACE_CMD} 's,^\(all_afms = .*\),\1 $$(i18n_afms),' Makefile .endif post-install: .if ${PORT_OPTIONS:MEMACS} ${MKDIR} ${STAGEDIR}${PREFIX}/lib/xemacs/site-lisp ${LN} -sf ${PREFIX}/share/emacs/site-lisp/a2ps-print.el \ ${STAGEDIR}${PREFIX}/lib/xemacs/site-lisp/a2ps-print.el ${LN} -sf ${PREFIX}/share/emacs/site-lisp/a2ps.el \ ${STAGEDIR}${PREFIX}/lib/xemacs/site-lisp/a2ps.el .endif cd ${WRKSRC}/doc && \ ${SETENV} ${MAKE_ENV} ${MAKE} ${.MAKEFLAGS} ${MAKE_ARGS} ${INSTALL_TARGET} ${RM} -f ${STAGEDIR}${PREFIX}/lib/liba2ps.la .include Index: head/print/a2ps/files/patch-printlen.c =================================================================== --- head/print/a2ps/files/patch-printlen.c (nonexistent) +++ head/print/a2ps/files/patch-printlen.c (revision 398049) @@ -0,0 +1,27 @@ +--- lib/printlen.c.orig 1999-08-31 17:42:42 UTC ++++ lib/printlen.c +@@ -28,14 +28,11 @@ Foundation, Inc., 59 Temple Place - Suit + unsigned long strtoul (); + + static int +-int_printflen (const char *format, va_list *args) ++int_printflen (const char *format, va_list ap) + { + const char *cp; + int total_width = 0; + int width = 0; +- va_list ap; +- +- memcpy (&ap, args, sizeof (va_list)); + + for (cp = format ; *cp ; cp++) + { +@@ -99,7 +96,7 @@ int_printflen (const char *format, va_li + int + vprintflen (const char *format, va_list args) + { +- return int_printflen (format, &args); ++ return int_printflen (format, args); + } + + int Property changes on: head/print/a2ps/files/patch-printlen.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/print/a2ps/files/patch-title.c =================================================================== --- head/print/a2ps/files/patch-title.c (nonexistent) +++ head/print/a2ps/files/patch-title.c (revision 398049) @@ -0,0 +1,11 @@ +--- lib/title.c.orig 2015-09-25 08:26:23 UTC ++++ lib/title.c +@@ -88,6 +88,8 @@ title (stream, c, center_p, format, va_a + if (center_p) + for (padding = 0 ; padding < 79 - len ; padding += 2) + putc (' ', stream); ++ va_end(args); ++ VA_START(args, format); + # if HAVE_VPRINTF || _LIBC + vfprintf (stream, format, args); + # else Property changes on: head/print/a2ps/files/patch-title.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