tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

cups support for print/a2ps (patch incl.)




Hi,

print/a2ps is built using:

CONFIGURE_ENV+= LPR=lpr

which fails when you are using CUPS, as the recommended binary is
${PREFIX}/bin/lpr in such case.

Here comes a simple patch which provides this option, ok for commit ?

Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/print/a2ps/Makefile,v
retrieving revision 1.71
diff -u -r1.71 Makefile
--- Makefile    22 Apr 2011 13:42:07 -0000      1.71
+++ Makefile    24 Jul 2012 16:48:16 -0000
@@ -30,7 +30,19 @@

 USE_PKGLOCALEDIR=      YES
 GNU_CONFIGURE=         YES
+
+PKG_OPTIONS_VAR=       PKG_OPTIONS.a2ps
+PKG_SUPPORTED_OPTIONS= cups
+PKG_SUGGESTED_OPTIONS= cups
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mcups)
+CONFIGURE_ENV+=                LPR=${PREFIX}/bin/lpr
+.include "../../print/cups/buildlink3.mk"
+.else
 CONFIGURE_ENV+=                LPR=lpr
+.endif
+
 CONFIGURE_ARGS+=       --with-medium=${PAPERSIZE:Q}
 CONFIGURE_ARGS+=       --sysconfdir=${PKG_SYSCONFDIR:Q}
 CONFIGURE_ARGS+=       --disable-dependency-tracking

-------------------------------------------
Emile "iMil" Heitor .°. <imil%home.imil.net@localhost>                          
     _
                        http://gcu-squad.org        ASCII ribbon campaign ( )
                                                     - against HTML email  X
                                                                 & vCards / \


Home | Main Index | Thread Index | Old Index