pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/print/ghostscript-agpl print/ghostscript-agpl: Add def...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1c526a3c8297
branches:  trunk
changeset: 331387:1c526a3c8297
user:      gdt <gdt%pkgsrc.org@localhost>
date:      Sun Mar 17 15:54:16 2019 +0000

description:
print/ghostscript-agpl: Add default-off cups option

This is basically a port of the cups option code from
../ghostscript-gpl.  Since the last GPL3 gs release, some programs
have migrated to the cups-filters package.  Thus, they are no longer
installed by cups, and the option is much simpler.

I verified that the cups driver appears in "gs -h", but have not
tested it.

While the option defaults to off, I bumped PKGREVISION anyway.

diffstat:

 print/ghostscript-agpl/Makefile   |   4 ++--
 print/ghostscript-agpl/options.mk |  20 ++++++++++++++++++--
 2 files changed, 20 insertions(+), 4 deletions(-)

diffs (57 lines):

diff -r 02a5272ae584 -r 1c526a3c8297 print/ghostscript-agpl/Makefile
--- a/print/ghostscript-agpl/Makefile   Sun Mar 17 15:05:49 2019 +0000
+++ b/print/ghostscript-agpl/Makefile   Sun Mar 17 15:54:16 2019 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.34 2018/09/05 13:19:40 adam Exp $
+# $NetBSD: Makefile,v 1.35 2019/03/17 15:54:16 gdt Exp $
 
 DISTNAME=      ghostscript-${GS_VERSION}
 PKGNAME=       ${DISTNAME:S/ghostscript/ghostscript-agpl/}
+PKGREVISION=   1
 CATEGORIES=    print
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=ArtifexSoftware/}
 GITHUB_PROJECT=        ghostpdl-downloads
@@ -22,7 +23,6 @@
 USE_TOOLS+=            gmake perl:run lex pkg-config
 GNU_CONFIGURE=         yes
 CONFIGURE_ARGS+=       --with-system-libtiff
-CONFIGURE_ARGS+=       --disable-cups
 CONFIGURE_ENV+=                LPLIBDIR=${PREFIX}/lib
 CONFIGURE_ENV.HPUX+=   ac_cv_func_fopen64=no
 UNLIMIT_RESOURCES+=    datasize        # gsromfs1.c
diff -r 02a5272ae584 -r 1c526a3c8297 print/ghostscript-agpl/options.mk
--- a/print/ghostscript-agpl/options.mk Sun Mar 17 15:05:49 2019 +0000
+++ b/print/ghostscript-agpl/options.mk Sun Mar 17 15:54:16 2019 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: options.mk,v 1.3 2013/12/27 16:42:46 gdt Exp $
+# $NetBSD: options.mk,v 1.4 2019/03/17 15:54:16 gdt Exp $
 
 PKG_OPTIONS_VAR=       PKG_OPTIONS.ghostscript
-PKG_SUPPORTED_OPTIONS= x11 debug fontconfig disable-compile-inits
+PKG_SUPPORTED_OPTIONS= x11 cups debug fontconfig disable-compile-inits
 PKG_SUGGESTED_OPTIONS= x11 fontconfig
 
 .include "../../mk/bsd.options.mk"
@@ -19,6 +19,22 @@
 CONFIGURE_ARGS+=       --without-x
 .endif
 
+.if !empty(PKG_OPTIONS:Mcups)
+CONFIGURE_ARGS+=       --enable-cups
+
+# Because nothing is installed, this is not necessary.  It remains in
+# case a later version does install something.
+SUBST_CLASSES+=                cupsetc
+SUBST_STAGE.cupsetc=   post-extract
+SUBST_MESSAGE.cupsetc= Fixing CUPS etc directory path to install as example
+SUBST_FILES.cupsetc=   cups/cups.mak
+SUBST_SED.cupsetc=     -e 's|$$(CUPSSERVERROOT)|${CUPS_EGDIR}|g'
+
+.include "../../print/cups-base/buildlink3.mk"
+.else
+CONFIGURE_ARGS+=       --disable-cups
+.endif
+
 .if !empty(PKG_OPTIONS:Mdebug)
 CONFIGURE_ARGS+=       --enable-debug
 .endif



Home | Main Index | Thread Index | Old Index