Drop nonfunctional cups option, following upstream. Upstream removed cups support and created a new "cups-filter" package instead. Since then, building ghostscript-agpl with the cups option has failed. This commit removes the cups option, and should result in zero changes to packages built without the cups option, and hence does not PKGREVISION++. There is still some cups configure code, which is forced off (as it was without the option). It's not clear if this configure code should also be removed (by upstream), or if it's a separate bit of cups functionality. Addressing this issue and adding a cups-filter package is left for future work, after the branch.diff -r1.6 -r1.7 pkgsrc/print/ghostscript-agpl/Makefile
(gdt)
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: Makefile,v 1.6 2013/08/22 21:07:08 adam Exp $ | 1 | # $NetBSD: Makefile,v 1.7 2013/12/27 16:42:46 gdt Exp $ | |
2 | 2 | |||
3 | DISTNAME= ghostscript-${GS_VERSION} | 3 | DISTNAME= ghostscript-${GS_VERSION} | |
4 | PKGNAME= ${DISTNAME:S/ghostscript/ghostscript-agpl/} | 4 | PKGNAME= ${DISTNAME:S/ghostscript/ghostscript-agpl/} | |
5 | CATEGORIES= print | 5 | CATEGORIES= print | |
6 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=ghostscript/} \ | 6 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=ghostscript/} \ | |
7 | http://downloads.ghostscript.com/public/ | 7 | http://downloads.ghostscript.com/public/ | |
8 | EXTRACT_SUFX= .tar.bz2 | 8 | EXTRACT_SUFX= .tar.bz2 | |
9 | 9 | |||
10 | MAINTAINER= pkgsrc-users@NetBSD.org | 10 | MAINTAINER= pkgsrc-users@NetBSD.org | |
11 | HOMEPAGE= http://ghostscript.sourceforge.net/ | 11 | HOMEPAGE= http://ghostscript.sourceforge.net/ | |
12 | COMMENT= Postscript interpreter | 12 | COMMENT= Postscript interpreter | |
13 | 13 | |||
14 | # Plus adobe verbatim for Resources/CMap. | 14 | # Plus adobe verbatim for Resources/CMap. | |
@@ -16,26 +16,27 @@ LICENSE= gnu-agpl-v3 | @@ -16,26 +16,27 @@ LICENSE= gnu-agpl-v3 | |||
16 | 16 | |||
17 | .include "Makefile.common" | 17 | .include "Makefile.common" | |
18 | 18 | |||
19 | DEPENDS+= ghostscript-fonts>=6.0:../../fonts/ghostscript-fonts | 19 | DEPENDS+= ghostscript-fonts>=6.0:../../fonts/ghostscript-fonts | |
20 | 20 | |||
21 | CONFLICTS+= ghostscript-afpl-[0-9]* | 21 | CONFLICTS+= ghostscript-afpl-[0-9]* | |
22 | CONFLICTS+= ghostscript-esp{,-nox11}-[0-9]* | 22 | CONFLICTS+= ghostscript-esp{,-nox11}-[0-9]* | |
23 | CONFLICTS+= ghostscript-gnu{,-nox11,-x11}-[0-9]* | 23 | CONFLICTS+= ghostscript-gnu{,-nox11,-x11}-[0-9]* | |
24 | 24 | |||
25 | USE_LANGUAGES= c c++ | 25 | USE_LANGUAGES= c c++ | |
26 | USE_TOOLS+= gmake perl:run lex pkg-config | 26 | USE_TOOLS+= gmake perl:run lex pkg-config | |
27 | GNU_CONFIGURE= yes | 27 | GNU_CONFIGURE= yes | |
28 | CONFIGURE_ARGS+= --with-system-libtiff | 28 | CONFIGURE_ARGS+= --with-system-libtiff | |
29 | CONFIGURE_ARGS+= --disable-cups | |||
29 | UNLIMIT_RESOURCES+= datasize # gsromfs1.c | 30 | UNLIMIT_RESOURCES+= datasize # gsromfs1.c | |
30 | 31 | |||
31 | BUILD_TARGET= so | 32 | BUILD_TARGET= so | |
32 | INSTALL_TARGET= soinstall | 33 | INSTALL_TARGET= soinstall | |
33 | CONFIGURE_ARGS+= --with-omni=no # otherwise pulls in libstdc++ | 34 | CONFIGURE_ARGS+= --with-omni=no # otherwise pulls in libstdc++ | |
34 | 35 | |||
35 | REPLACE_PERL+= toolbin/localcluster/clusterpush.pl | 36 | REPLACE_PERL+= toolbin/localcluster/clusterpush.pl | |
36 | REPLACE_PERL+= toolbin/checkdeps.pl | 37 | REPLACE_PERL+= toolbin/checkdeps.pl | |
37 | REPLACE_PERL+= toolbin/pscet_status.pl | 38 | REPLACE_PERL+= toolbin/pscet_status.pl | |
38 | REPLACE_PERL+= toolbin/performance.pl | 39 | REPLACE_PERL+= toolbin/performance.pl | |
39 | REPLACE_PERL+= toolbin/squeeze2html.pl | 40 | REPLACE_PERL+= toolbin/squeeze2html.pl | |
40 | REPLACE_PERL+= toolbin/bugsByEngineer.pl | 41 | REPLACE_PERL+= toolbin/bugsByEngineer.pl | |
41 | REPLACE_PERL+= toolbin/htmldiff.pl | 42 | REPLACE_PERL+= toolbin/htmldiff.pl |
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | @comment $NetBSD: PLIST,v 1.3 2013/12/25 02:26:48 mef Exp $ | 1 | @comment $NetBSD: PLIST,v 1.4 2013/12/27 16:42:46 gdt Exp $ | |
2 | bin/dvipdf | 2 | bin/dvipdf | |
3 | bin/eps2eps | 3 | bin/eps2eps | |
4 | bin/font2c | 4 | bin/font2c | |
5 | bin/gs | 5 | bin/gs | |
6 | bin/gsbj | 6 | bin/gsbj | |
7 | bin/gsc | 7 | bin/gsc | |
8 | bin/gsdj | 8 | bin/gsdj | |
9 | bin/gsdj500 | 9 | bin/gsdj500 | |
10 | bin/gslj | 10 | bin/gslj | |
11 | bin/gslp | 11 | bin/gslp | |
12 | bin/gsnd | 12 | bin/gsnd | |
13 | bin/gsx | 13 | bin/gsx | |
14 | bin/lprsetup.sh | 14 | bin/lprsetup.sh | |
@@ -25,28 +25,26 @@ bin/ps2pdf12 | @@ -25,28 +25,26 @@ bin/ps2pdf12 | |||
25 | bin/ps2pdf13 | 25 | bin/ps2pdf13 | |
26 | bin/ps2pdf14 | 26 | bin/ps2pdf14 | |
27 | bin/ps2pdfwr | 27 | bin/ps2pdfwr | |
28 | bin/ps2ps | 28 | bin/ps2ps | |
29 | bin/ps2ps2 | 29 | bin/ps2ps2 | |
30 | bin/unix-lpr.sh | 30 | bin/unix-lpr.sh | |
31 | bin/wftopfa | 31 | bin/wftopfa | |
32 | include/ghostscript/gdevdsp.h | 32 | include/ghostscript/gdevdsp.h | |
33 | include/ghostscript/iapi.h | 33 | include/ghostscript/iapi.h | |
34 | include/ghostscript/ierrors.h | 34 | include/ghostscript/ierrors.h | |
35 | lib/libgs.so | 35 | lib/libgs.so | |
36 | lib/libgs.so.9 | 36 | lib/libgs.so.9 | |
37 | lib/libgs.so.${PKGVERSION} | 37 | lib/libgs.so.${PKGVERSION} | |
38 | ${PLIST.cups}libexec/cups/filter/gstopxl | |||
39 | ${PLIST.cups}libexec/cups/filter/gstoraster | |||
40 | man/de/man1/dvipdf.1 | 38 | man/de/man1/dvipdf.1 | |
41 | man/de/man1/eps2eps.1 | 39 | man/de/man1/eps2eps.1 | |
42 | man/de/man1/font2c.1 | 40 | man/de/man1/font2c.1 | |
43 | man/de/man1/gsnd.1 | 41 | man/de/man1/gsnd.1 | |
44 | man/de/man1/pdf2dsc.1 | 42 | man/de/man1/pdf2dsc.1 | |
45 | man/de/man1/pdf2ps.1 | 43 | man/de/man1/pdf2ps.1 | |
46 | man/de/man1/printafm.1 | 44 | man/de/man1/printafm.1 | |
47 | man/de/man1/ps2ascii.1 | 45 | man/de/man1/ps2ascii.1 | |
48 | man/de/man1/ps2pdf.1 | 46 | man/de/man1/ps2pdf.1 | |
49 | man/de/man1/ps2pdf12.1 | 47 | man/de/man1/ps2pdf12.1 | |
50 | man/de/man1/ps2pdf13.1 | 48 | man/de/man1/ps2pdf13.1 | |
51 | man/de/man1/ps2pdf14.1 | 49 | man/de/man1/ps2pdf14.1 | |
52 | man/de/man1/ps2ps.1 | 50 | man/de/man1/ps2ps.1 | |
@@ -65,29 +63,26 @@ man/man1/pdf2dsc.1 | @@ -65,29 +63,26 @@ man/man1/pdf2dsc.1 | |||
65 | man/man1/pdf2ps.1 | 63 | man/man1/pdf2ps.1 | |
66 | man/man1/pf2afm.1 | 64 | man/man1/pf2afm.1 | |
67 | man/man1/pfbtopfa.1 | 65 | man/man1/pfbtopfa.1 | |
68 | man/man1/printafm.1 | 66 | man/man1/printafm.1 | |
69 | man/man1/ps2ascii.1 | 67 | man/man1/ps2ascii.1 | |
70 | man/man1/ps2epsi.1 | 68 | man/man1/ps2epsi.1 | |
71 | man/man1/ps2pdf.1 | 69 | man/man1/ps2pdf.1 | |
72 | man/man1/ps2pdf12.1 | 70 | man/man1/ps2pdf12.1 | |
73 | man/man1/ps2pdf13.1 | 71 | man/man1/ps2pdf13.1 | |
74 | man/man1/ps2pdf14.1 | 72 | man/man1/ps2pdf14.1 | |
75 | man/man1/ps2pdfwr.1 | 73 | man/man1/ps2pdfwr.1 | |
76 | man/man1/ps2ps.1 | 74 | man/man1/ps2ps.1 | |
77 | man/man1/wftopfa.1 | 75 | man/man1/wftopfa.1 | |
78 | ${PLIST.cups}share/cups/model/pxlcolor.ppd | |||
79 | ${PLIST.cups}share/cups/model/pxlmono.ppd | |||
80 | ${PLIST.cups}share/examples/cups/gstoraster.convs | |||
81 | ${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CIDFSubst/DroidSansFallback.ttf | 76 | ${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CIDFSubst/DroidSansFallback.ttf | |
82 | ${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CIDFont/ArtifexBullet | 77 | ${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CIDFont/ArtifexBullet | |
83 | ${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/78-EUC-H | 78 | ${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/78-EUC-H | |
84 | ${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/78-EUC-V | 79 | ${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/78-EUC-V | |
85 | ${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/78-H | 80 | ${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/78-H | |
86 | ${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/78-RKSJ-H | 81 | ${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/78-RKSJ-H | |
87 | ${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/78-RKSJ-V | 82 | ${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/78-RKSJ-V | |
88 | ${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/78-V | 83 | ${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/78-V | |
89 | ${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/78ms-RKSJ-H | 84 | ${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/78ms-RKSJ-H | |
90 | ${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/78ms-RKSJ-V | 85 | ${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/78ms-RKSJ-V | |
91 | ${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/83pv-RKSJ-H | 86 | ${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/83pv-RKSJ-H | |
92 | ${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/90ms-RKSJ-H | 87 | ${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/90ms-RKSJ-H | |
93 | ${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/90ms-RKSJ-V | 88 | ${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/90ms-RKSJ-V |
@@ -1,55 +1,34 @@ | @@ -1,55 +1,34 @@ | |||
1 | # $NetBSD: options.mk,v 1.2 2013/08/22 21:07:08 adam Exp $ | 1 | # $NetBSD: options.mk,v 1.3 2013/12/27 16:42:46 gdt Exp $ | |
2 | 2 | |||
3 | PKG_OPTIONS_VAR= PKG_OPTIONS.ghostscript | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.ghostscript | |
4 | PKG_SUPPORTED_OPTIONS= x11 cups debug fontconfig disable-compile-inits | 4 | PKG_SUPPORTED_OPTIONS= x11 debug fontconfig disable-compile-inits | |
5 | PKG_SUGGESTED_OPTIONS= x11 fontconfig | 5 | PKG_SUGGESTED_OPTIONS= x11 fontconfig | |
6 | 6 | |||
7 | .include "../../mk/bsd.options.mk" | 7 | .include "../../mk/bsd.options.mk" | |
8 | 8 | |||
9 | # (no_cidfmap) when --disable-compile-inits selected, | 9 | # (no_cidfmap) when --disable-compile-inits selected, | |
10 | # cidfmap is renamed to cidfmap.dist | 10 | # cidfmap is renamed to cidfmap.dist | |
11 | PLIST_VARS+= no_cidfmap | 11 | PLIST_VARS+= no_cidfmap | |
12 | 12 | |||
13 | .if !empty(PKG_OPTIONS:Mx11) | 13 | .if !empty(PKG_OPTIONS:Mx11) | |
14 | CONFIGURE_ARGS+= --with-x | 14 | CONFIGURE_ARGS+= --with-x | |
15 | .include "../../x11/libX11/buildlink3.mk" | 15 | .include "../../x11/libX11/buildlink3.mk" | |
16 | .include "../../x11/libXt/buildlink3.mk" | 16 | .include "../../x11/libXt/buildlink3.mk" | |
17 | .include "../../x11/libXext/buildlink3.mk" | 17 | .include "../../x11/libXext/buildlink3.mk" | |
18 | .else | 18 | .else | |
19 | CONFIGURE_ARGS+= --without-x | 19 | CONFIGURE_ARGS+= --without-x | |
20 | .endif | 20 | .endif | |
21 | 21 | |||
22 | PLIST_VARS+= cups | |||
23 | .if !empty(PKG_OPTIONS:Mcups) | |||
24 | CONFIGURE_ARGS+= --enable-cups | |||
25 | PLIST.cups= yes | |||
26 | INSTALL_TARGET+= install-cups | |||
27 | ||||
28 | CUPS_CONFDIR?= ${PKG_SYSCONFBASEDIR}/cups | |||
29 | CUPS_EGDIR= ${PREFIX}/share/examples/cups | |||
30 | CONF_FILES+= ${CUPS_EGDIR}/gstoraster.convs ${CUPS_CONFDIR}/gstoraster.convs | |||
31 | ||||
32 | SUBST_CLASSES+= cupsetc | |||
33 | SUBST_STAGE.cupsetc= post-extract | |||
34 | SUBST_MESSAGE.cupsetc= Fixing CUPS etc directory path to install as example | |||
35 | SUBST_FILES.cupsetc= cups/cups.mak | |||
36 | SUBST_SED.cupsetc= -e 's|$$(CUPSSERVERROOT)|${CUPS_EGDIR}|g' | |||
37 | ||||
38 | .include "../../print/cups/buildlink3.mk" | |||
39 | .else | |||
40 | CONFIGURE_ARGS+= --disable-cups | |||
41 | .endif | |||
42 | ||||
43 | .if !empty(PKG_OPTIONS:Mdebug) | 22 | .if !empty(PKG_OPTIONS:Mdebug) | |
44 | CONFIGURE_ARGS+= --enable-debug | 23 | CONFIGURE_ARGS+= --enable-debug | |
45 | .endif | 24 | .endif | |
46 | 25 | |||
47 | .if !empty(PKG_OPTIONS:Mfontconfig) | 26 | .if !empty(PKG_OPTIONS:Mfontconfig) | |
48 | .include "../../fonts/fontconfig/buildlink3.mk" | 27 | .include "../../fonts/fontconfig/buildlink3.mk" | |
49 | .else | 28 | .else | |
50 | CONFIGURE_ARGS+= --disable-fontconfig | 29 | CONFIGURE_ARGS+= --disable-fontconfig | |
51 | .endif | 30 | .endif | |
52 | 31 | |||
53 | # Please note the same if condition is in post-extract: target in Makefile | 32 | # Please note the same if condition is in post-extract: target in Makefile | |
54 | .if !empty(PKG_OPTIONS:Mdisable-compile-inits) | 33 | .if !empty(PKG_OPTIONS:Mdisable-compile-inits) | |
55 | CONFIGURE_ARGS+= --disable-compile-inits | 34 | CONFIGURE_ARGS+= --disable-compile-inits |