pkgsrc-Changes archive

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

CVS commit: pkgsrc/print/ghostscript-agpl



Module Name:    pkgsrc
Committed By:   gdt
Date:           Sun Mar 17 15:54:16 UTC 2019

Modified Files:
        pkgsrc/print/ghostscript-agpl: Makefile options.mk

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.35 pkgsrc/print/ghostscript-agpl/Makefile
cvs rdiff -u -r1.3 -r1.4 pkgsrc/print/ghostscript-agpl/options.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/print/ghostscript-agpl/Makefile
diff -u pkgsrc/print/ghostscript-agpl/Makefile:1.34 pkgsrc/print/ghostscript-agpl/Makefile:1.35
--- pkgsrc/print/ghostscript-agpl/Makefile:1.34 Wed Sep  5 13:19:40 2018
+++ pkgsrc/print/ghostscript-agpl/Makefile      Sun Mar 17 15:54:16 2019
@@ -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_LANGUAGES=                c c++
 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

Index: pkgsrc/print/ghostscript-agpl/options.mk
diff -u pkgsrc/print/ghostscript-agpl/options.mk:1.3 pkgsrc/print/ghostscript-agpl/options.mk:1.4
--- pkgsrc/print/ghostscript-agpl/options.mk:1.3        Fri Dec 27 16:42:46 2013
+++ pkgsrc/print/ghostscript-agpl/options.mk    Sun Mar 17 15:54:16 2019
@@ -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+=     --with-x
 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