diff --git a/print/cups-filters/Makefile b/print/cups-filters/Makefile index 19a090ae8e0c..29a856dad40d 100644 --- a/print/cups-filters/Makefile +++ b/print/cups-filters/Makefile @@ -2,6 +2,7 @@ PORTNAME= cups-filters PORTVERSION= 1.0.57 +PORTREVISION= 1 CATEGORIES= print MASTER_SITES= http://www.openprinting.org/download/cups-filters/ @@ -44,6 +45,7 @@ AVAHI_LIB_DEPENDS= libavahi-client.so:${PORTSDIR}/net/avahi-app post-patch: @${REINPLACE_CMD} 's:-std=c++0x:-std=c++11:' ${WRKSRC}/Makefile.in + @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/filter/pdftops.c post-configure: @${REINPLACE_CMD} \ diff --git a/print/cups-filters/files/patch-filter_pdftops.c b/print/cups-filters/files/patch-filter_pdftops.c new file mode 100644 index 000000000000..f9974e300d2a --- /dev/null +++ b/print/cups-filters/files/patch-filter_pdftops.c @@ -0,0 +1,11 @@ +--- filter/pdftops.c.orig 2014-08-21 10:11:24.448404905 -0400 ++++ filter/pdftops.c 2014-08-21 10:12:00.298402116 -0400 +@@ -535,7 +535,7 @@ + + if (renderer == PDFTOPS) + { +- pdf_argv[0] = (char *)"pdftops"; ++ pdf_argv[0] = (char *)"%%LOCALBASE%%/bin/pdftops"; + pdf_argc = 1; + } + else if (renderer == GS)