Some clean up: * exactly disable python and java support same as perl and php * pdftops filter is installed unconditionally, so change PKG_OPTIONS_GROUP.pdftops to REQUIRED_GROUP * xpdf does not install pdftops tool anymore and using it came from poppler-utils. so deprecate xpdf option and suggest poppler option instead. * change gs option to ghostscript from option.description. * exactly select "gs" or "pdftops" and tell its path to configure script. * change ghostscript dependency from DEPENDS to USE_TOOLS. * exactly disable gssapi support with "-kerberos" option.diff -r1.146 -r1.147 pkgsrc/print/cups/Makefile
(obache)
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: Makefile,v 1.146 2010/03/21 16:29:42 wiz Exp $ | 1 | # $NetBSD: Makefile,v 1.147 2010/04/18 12:02:58 obache Exp $ | |
2 | # | 2 | # | |
3 | # The CUPS author is very good about taking back changes into the main | 3 | # The CUPS author is very good about taking back changes into the main | |
4 | # CUPS distribution. The correct place to send patches or bug-fixes is: | 4 | # CUPS distribution. The correct place to send patches or bug-fixes is: | |
5 | # cups-bugs@cups.org. | 5 | # cups-bugs@cups.org. | |
6 | 6 | |||
7 | DISTNAME= cups-${DIST_VERS}-source | 7 | DISTNAME= cups-${DIST_VERS}-source | |
8 | PKGNAME= cups-${VERS} | 8 | PKGNAME= cups-${VERS} | |
9 | BASE_VERS= 1.3.11 | 9 | BASE_VERS= 1.3.11 | |
10 | DIST_VERS= ${BASE_VERS} | 10 | DIST_VERS= ${BASE_VERS} | |
11 | DIST_SUBDIR= cups-${DIST_VERS} # temp fix for updated distfile | 11 | DIST_SUBDIR= cups-${DIST_VERS} # temp fix for updated distfile | |
12 | VERS= ${DIST_VERS:S/-/./g} | 12 | VERS= ${DIST_VERS:S/-/./g} | |
13 | PKGREVISION= 3 | 13 | PKGREVISION= 3 | |
14 | CATEGORIES= print | 14 | CATEGORIES= print | |
@@ -47,26 +47,28 @@ CONFIGURE_ARGS+= --with-docdir=${PREFIX} | @@ -47,26 +47,28 @@ CONFIGURE_ARGS+= --with-docdir=${PREFIX} | |||
47 | CONFIGURE_ARGS+= --with-serverbindir=${PREFIX}/libexec/cups | 47 | CONFIGURE_ARGS+= --with-serverbindir=${PREFIX}/libexec/cups | |
48 | CONFIGURE_ARGS+= --with-rcdir=${RCD_SCRIPTS_DIR:Q} | 48 | CONFIGURE_ARGS+= --with-rcdir=${RCD_SCRIPTS_DIR:Q} | |
49 | CONFIGURE_ARGS+= --with-cups-user=${CUPS_USER:Q} | 49 | CONFIGURE_ARGS+= --with-cups-user=${CUPS_USER:Q} | |
50 | CONFIGURE_ARGS+= --with-cups-group=${CUPS_GROUP:Q} | 50 | CONFIGURE_ARGS+= --with-cups-group=${CUPS_GROUP:Q} | |
51 | CONFIGURE_ARGS+= --with-manext=bsd | 51 | CONFIGURE_ARGS+= --with-manext=bsd | |
52 | CONFIGURE_ARGS+= --without-perl | 52 | CONFIGURE_ARGS+= --without-perl | |
53 | CONFIGURE_ARGS+= --without-icondir | 53 | CONFIGURE_ARGS+= --without-icondir | |
54 | CONFIGURE_ARGS+= --without-menudir | 54 | CONFIGURE_ARGS+= --without-menudir | |
55 | CONFIGURE_ARGS+= --enable-libtool | 55 | CONFIGURE_ARGS+= --enable-libtool | |
56 | CONFIGURE_ARGS+= --enable-ssl | 56 | CONFIGURE_ARGS+= --enable-ssl | |
57 | CONFIGURE_ARGS+= --enable-gnutls=no | 57 | CONFIGURE_ARGS+= --enable-gnutls=no | |
58 | CONFIGURE_ARGS+= --enable-openssl | 58 | CONFIGURE_ARGS+= --enable-openssl | |
59 | CONFIGURE_ARGS+= --without-php | 59 | CONFIGURE_ARGS+= --without-php | |
60 | CONFIGURE_ARGS+= --without-python | |||
61 | CONFIGURE_ARGS+= --without-java | |||
60 | 62 | |||
61 | CONFIGURE_ENV+= DSOFLAGS=${LDFLAGS:M*:Q} | 63 | CONFIGURE_ENV+= DSOFLAGS=${LDFLAGS:M*:Q} | |
62 | 64 | |||
63 | .include "../../mk/bsd.prefs.mk" | 65 | .include "../../mk/bsd.prefs.mk" | |
64 | .include "options.mk" | 66 | .include "options.mk" | |
65 | 67 | |||
66 | # CUPS_USER username of the CUPS administrator | 68 | # CUPS_USER username of the CUPS administrator | |
67 | # CUPS_GROUP group of the CUPS administrator | 69 | # CUPS_GROUP group of the CUPS administrator | |
68 | # | 70 | # | |
69 | CUPS_USER?= lp | 71 | CUPS_USER?= lp | |
70 | CUPS_GROUP?= sys | 72 | CUPS_GROUP?= sys | |
71 | FILES_SUBST+= CUPS_USER=${CUPS_USER:Q} | 73 | FILES_SUBST+= CUPS_USER=${CUPS_USER:Q} | |
72 | FILES_SUBST+= CUPS_GROUP=${CUPS_GROUP:Q} | 74 | FILES_SUBST+= CUPS_GROUP=${CUPS_GROUP:Q} |
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | @comment $NetBSD: PLIST,v 1.28 2009/06/14 21:16:21 joerg Exp $ | 1 | @comment $NetBSD: PLIST,v 1.29 2010/04/18 12:02:58 obache Exp $ | |
2 | bin/cancel | 2 | bin/cancel | |
3 | bin/cups-config | 3 | bin/cups-config | |
4 | bin/cupstestdsc | 4 | bin/cupstestdsc | |
5 | bin/cupstestppd | 5 | bin/cupstestppd | |
6 | bin/lp | 6 | bin/lp | |
7 | bin/lpoptions | 7 | bin/lpoptions | |
8 | bin/lppasswd | 8 | bin/lppasswd | |
9 | bin/lpq | 9 | bin/lpq | |
10 | bin/lpr | 10 | bin/lpr | |
11 | bin/lprm | 11 | bin/lprm | |
12 | bin/lpstat | 12 | bin/lpstat | |
13 | include/cups/adminutil.h | 13 | include/cups/adminutil.h | |
14 | include/cups/array.h | 14 | include/cups/array.h | |
@@ -38,27 +38,27 @@ libexec/cups/backend/usb | @@ -38,27 +38,27 @@ libexec/cups/backend/usb | |||
38 | libexec/cups/cgi-bin/admin.cgi | 38 | libexec/cups/cgi-bin/admin.cgi | |
39 | libexec/cups/cgi-bin/classes.cgi | 39 | libexec/cups/cgi-bin/classes.cgi | |
40 | libexec/cups/cgi-bin/help.cgi | 40 | libexec/cups/cgi-bin/help.cgi | |
41 | libexec/cups/cgi-bin/jobs.cgi | 41 | libexec/cups/cgi-bin/jobs.cgi | |
42 | libexec/cups/cgi-bin/printers.cgi | 42 | libexec/cups/cgi-bin/printers.cgi | |
43 | libexec/cups/daemon/cups-deviced | 43 | libexec/cups/daemon/cups-deviced | |
44 | libexec/cups/daemon/cups-driverd | 44 | libexec/cups/daemon/cups-driverd | |
45 | libexec/cups/daemon/cups-lpd | 45 | libexec/cups/daemon/cups-lpd | |
46 | libexec/cups/daemon/cups-polld | 46 | libexec/cups/daemon/cups-polld | |
47 | libexec/cups/filter/gziptoany | 47 | libexec/cups/filter/gziptoany | |
48 | libexec/cups/filter/hpgltops | 48 | libexec/cups/filter/hpgltops | |
49 | libexec/cups/filter/imagetops | 49 | libexec/cups/filter/imagetops | |
50 | libexec/cups/filter/imagetoraster | 50 | libexec/cups/filter/imagetoraster | |
51 | ${PLIST.pdftops}libexec/cups/filter/pdftops | 51 | libexec/cups/filter/pdftops | |
52 | libexec/cups/filter/pstops | 52 | libexec/cups/filter/pstops | |
53 | libexec/cups/filter/rastertodymo | 53 | libexec/cups/filter/rastertodymo | |
54 | libexec/cups/filter/rastertoepson | 54 | libexec/cups/filter/rastertoepson | |
55 | libexec/cups/filter/rastertohp | 55 | libexec/cups/filter/rastertohp | |
56 | libexec/cups/filter/rastertolabel | 56 | libexec/cups/filter/rastertolabel | |
57 | libexec/cups/filter/texttops | 57 | libexec/cups/filter/texttops | |
58 | libexec/cups/monitor/bcp | 58 | libexec/cups/monitor/bcp | |
59 | libexec/cups/monitor/tbcp | 59 | libexec/cups/monitor/tbcp | |
60 | libexec/cups/notifier/mailto | 60 | libexec/cups/notifier/mailto | |
61 | libexec/cups/notifier/rss | 61 | libexec/cups/notifier/rss | |
62 | man/man1/cancel.1 | 62 | man/man1/cancel.1 | |
63 | man/man1/cups-config.1 | 63 | man/man1/cups-config.1 | |
64 | man/man1/cupstestdsc.1 | 64 | man/man1/cupstestdsc.1 |
@@ -1,53 +1,53 @@ | @@ -1,53 +1,53 @@ | |||
1 | # $NetBSD: options.mk,v 1.3 2009/06/03 10:20:59 wiz Exp $ | 1 | # $NetBSD: options.mk,v 1.4 2010/04/18 12:02:58 obache Exp $ | |
2 | 2 | |||
3 | PKG_OPTIONS_VAR= PKG_OPTIONS.cups | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.cups | |
4 | PKG_OPTIONS_OPTIONAL_GROUPS= pdftops | 4 | PKG_OPTIONS_REQUIRED_GROUPS= pdftops | |
5 | PKG_OPTIONS_GROUP.pdftops= gs poppler xpdf | 5 | PKG_OPTIONS_GROUP.pdftops= ghostscript poppler | |
6 | PKG_SUPPORTED_OPTIONS= dnssd kerberos pam slp | 6 | PKG_SUPPORTED_OPTIONS= dnssd kerberos pam slp | |
7 | PKG_SUGGESTED_OPTIONS= dnssd kerberos poppler slp | 7 | PKG_SUGGESTED_OPTIONS= dnssd kerberos poppler slp | |
8 | PKG_OPTIONS_LEGACY_OPTS+= xpdf:poppler gs:ghostscript | |||
8 | 9 | |||
9 | .include "../../mk/bsd.options.mk" | 10 | .include "../../mk/bsd.options.mk" | |
10 | 11 | |||
11 | PLIST_VARS+= pdftops | |||
12 | ||||
13 | .if !empty(PKG_OPTIONS:Mdnssd) | 12 | .if !empty(PKG_OPTIONS:Mdnssd) | |
14 | .include "../../net/mDNSResponder/buildlink3.mk" | 13 | .include "../../net/mDNSResponder/buildlink3.mk" | |
15 | .endif | 14 | .endif | |
16 | 15 | |||
17 | .if !empty(PKG_OPTIONS:Mgs) | 16 | .if !empty(PKG_OPTIONS:Mghostscript) | |
18 | PLIST.pdftops= yes | 17 | USE_TOOLS+= gs:run | |
19 | DEPENDS+= ghostscript-[0-9]*:../../print/ghostscript | 18 | CONFIGURE_ARGS+= --with-pdftops=gs | |
19 | CONFIGURE_ENV+= ac_cv_path_CUPS_GHOSTSCRIPT=${TOOLS_PATH.gs} | |||
20 | .endif | 20 | .endif | |
21 | 21 | |||
22 | .if !empty(PKG_OPTIONS:Mkerberos) | 22 | .if !empty(PKG_OPTIONS:Mkerberos) | |
23 | .include "../../mk/krb5.buildlink3.mk" | 23 | .include "../../mk/krb5.buildlink3.mk" | |
24 | .else | |||
25 | CONFIGURE_ARGS+= --disable-gssapi | |||
24 | .endif | 26 | .endif | |
25 | 27 | |||
26 | PLIST_VARS+= pam | 28 | PLIST_VARS+= pam | |
27 | .if !empty(PKG_OPTIONS:Mpam) | 29 | .if !empty(PKG_OPTIONS:Mpam) | |
28 | . include "../../mk/pam.buildlink3.mk" | 30 | . include "../../mk/pam.buildlink3.mk" | |
29 | CONFIGURE_ARGS+= --enable-pam | 31 | CONFIGURE_ARGS+= --enable-pam | |
30 | MESSAGE_SRC= ${PKGDIR}/MESSAGE | 32 | MESSAGE_SRC= ${PKGDIR}/MESSAGE | |
31 | MESSAGE_SRC+= ${PKGDIR}/MESSAGE.pam | 33 | MESSAGE_SRC+= ${PKGDIR}/MESSAGE.pam | |
32 | PLIST.pam= yes | 34 | PLIST.pam= yes | |
33 | .else | 35 | .else | |
34 | CONFIGURE_ARGS+= --disable-pam | 36 | CONFIGURE_ARGS+= --disable-pam | |
35 | MESSAGE_SRC= ${.CURDIR}/MESSAGE | 37 | MESSAGE_SRC= ${.CURDIR}/MESSAGE | |
36 | .endif | 38 | .endif | |
37 | 39 | |||
38 | .if !empty(PKG_OPTIONS:Mpoppler) | 40 | .if !empty(PKG_OPTIONS:Mpoppler) | |
39 | PLIST.pdftops= yes | 41 | FIND_PREFIX:= POPPLERDIR=poppler-utils | |
42 | .include "../../mk/find-prefix.mk" | |||
40 | DEPENDS+= poppler-utils-[0-9]*:../../print/poppler-utils | 43 | DEPENDS+= poppler-utils-[0-9]*:../../print/poppler-utils | |
44 | CONFIGURE_ARGS+= --with-pdftops=pdftops | |||
45 | CONFIGURE_ENV+= ac_cv_path_CUPS_PDFTOPS=${POPPLERDIR}/bin/pdftops | |||
41 | .endif | 46 | .endif | |
42 | 47 | |||
43 | .if !empty(PKG_OPTIONS:Mslp) | 48 | .if !empty(PKG_OPTIONS:Mslp) | |
44 | .include "../../net/openslp/buildlink3.mk" | 49 | .include "../../net/openslp/buildlink3.mk" | |
45 | CONFIGURE_ARGS+= --enable-slp | 50 | CONFIGURE_ARGS+= --enable-slp | |
46 | .else | 51 | .else | |
47 | CONFIGURE_ARGS+= --disable-slp | 52 | CONFIGURE_ARGS+= --disable-slp | |
48 | .endif | 53 | .endif | |
49 | ||||
50 | .if !empty(PKG_OPTIONS:Mxpdf) | |||
51 | PLIST.pdftops= yes | |||
52 | DEPENDS+= xpdf-[0-9]*:../../print/xpdf | |||
53 | .endif |