| @@ -1,65 +1,66 @@ | | | @@ -1,65 +1,66 @@ |
1 | # $NetBSD: Makefile,v 1.1.1.1 2009/11/20 20:50:43 drochner Exp $ | | 1 | # $NetBSD: Makefile,v 1.2 2009/12/18 21:08:57 drochner Exp $ |
2 | | | 2 | |
3 | DISTNAME= foomatic-filters-4.0.3 | | 3 | DISTNAME= foomatic-filters-4.0.3 |
4 | CATEGORIES= print | | 4 | CATEGORIES= print |
5 | MASTER_SITES= http://www.linuxprinting.org/download/foomatic/ | | 5 | MASTER_SITES= http://www.linuxprinting.org/download/foomatic/ |
6 | | | 6 | |
7 | MAINTAINER= jlam@pkgsrc.org | | 7 | MAINTAINER= jlam@pkgsrc.org |
8 | HOMEPAGE= http://www.linuxprinting.org/foomatic.html | | 8 | HOMEPAGE= http://www.linuxprinting.org/foomatic.html |
9 | COMMENT= Spooler-independent PostScript printing filter | | 9 | COMMENT= Spooler-independent PostScript printing filter |
10 | | | 10 | |
11 | CONFLICTS+= foomatic-gswrapper-[0-9]* | | 11 | CONFLICTS+= foomatic-gswrapper-[0-9]* |
12 | | | 12 | |
13 | USE_TOOLS+= gmake gs:run perl | | 13 | USE_TOOLS+= gmake gs:run perl |
14 | | | 14 | |
15 | GNU_CONFIGURE= yes | | 15 | GNU_CONFIGURE= yes |
16 | CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q} | | 16 | CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q} |
17 | CONFIGURE_ARGS+= --disable-file-converter-check | | 17 | CONFIGURE_ARGS+= --disable-file-converter-check |
18 | | | 18 | |
19 | EVAL_PREFIX+= CUPS_PREFIX=cups | | | |
20 | CUPS_FILTERDIR= ${CUPS_PREFIX:Q}/libexec/cups/filter | | | |
21 | CONFIGURE_ENV+= CUPS_FILTERS=${CUPS_FILTERDIR} | | | |
22 | FILES_SUBST+= CUPS_FILTERDIR=${CUPS_FILTERDIR} | | | |
23 | | | | |
24 | TEXTTOPS_DEPENDS= {a2ps,enscript,mpage}-[0-9]* | | | |
25 | PKG_DESTDIR_SUPPORT= user-destdir | | 19 | PKG_DESTDIR_SUPPORT= user-destdir |
26 | | | 20 | |
27 | PKG_OPTIONS_VAR= PKG_OPTIONS.foomatic | | 21 | PKG_OPTIONS_VAR= PKG_OPTIONS.foomatic |
28 | PKG_SUPPORTED_OPTIONS= cups | | 22 | PKG_SUPPORTED_OPTIONS= cups |
29 | | | 23 | |
30 | .include "../../mk/bsd.prefs.mk" | | 24 | .include "../../mk/bsd.prefs.mk" |
31 | | | 25 | |
32 | BUILD_DEFS+= MANINSTALL | | 26 | BUILD_DEFS+= MANINSTALL |
33 | | | 27 | |
34 | .if ${OPSYS} == "SunOS" | | 28 | .if ${OPSYS} == "SunOS" |
35 | # SunOS nroff has problems with foomatic-rip.1 | | 29 | # SunOS nroff has problems with foomatic-rip.1 |
36 | MANINSTALL= none | | 30 | MANINSTALL= none |
37 | INSTALL_TARGET= install-bin | | 31 | INSTALL_TARGET= install-bin |
38 | .else | | 32 | .else |
39 | INSTALL_TARGET= install-bin install-man | | 33 | INSTALL_TARGET= install-bin install-man |
40 | .endif | | 34 | .endif |
41 | | | 35 | |
42 | .include "../../mk/bsd.options.mk" | | 36 | .include "../../mk/bsd.options.mk" |
43 | | | 37 | |
44 | .if !empty(PKG_OPTIONS:Mcups) | | 38 | .if !empty(PKG_OPTIONS:Mcups) |
45 | DEPENDS+= {cups>=1.0,${TEXTTOPS_DEPENDS}}:../../print/cups | | 39 | DEPENDS+= cups>=1.0:../../print/cups |
| | | 40 | EVAL_PREFIX+= CUPS_PREFIX=cups |
| | | 41 | CUPS_FILTERDIR= ${CUPS_PREFIX:Q}/libexec/cups/filter |
| | | 42 | CONFIGURE_ENV+= CUPS_FILTERS=${CUPS_FILTERDIR} |
| | | 43 | FILES_SUBST+= CUPS_FILTERDIR=${CUPS_FILTERDIR} |
| | | 44 | DEINSTALL_TEMPLATES+= ${.CURDIR}/../../print/foomatic-filters-cups/DEINSTALL |
| | | 45 | INSTALL_TEMPLATES+= ${.CURDIR}/../../print/foomatic-filters-cups/INSTALL |
46 | .else | | 46 | .else |
| | | 47 | TEXTTOPS_DEPENDS= {a2ps,enscript,mpage}-[0-9]* |
47 | DEPENDS+= ${TEXTTOPS_DEPENDS}:../../print/mpage | | 48 | DEPENDS+= ${TEXTTOPS_DEPENDS}:../../print/mpage |
| | | 49 | CONFIGURE_ENV+= CUPS_CONFIG=/nonexistent |
| | | 50 | CONFIGURE_ENV+= CUPS_SERVERBIN=/nonexistent |
| | | 51 | CONFIGURE_ENV+= CUPS_FILTERS=/nonexistent |
48 | .endif | | 52 | .endif |
49 | | | 53 | |
50 | DEINSTALL_TEMPLATES+= ${.CURDIR}/../../print/foomatic-filters-cups/DEINSTALL | | | |
51 | INSTALL_TEMPLATES+= ${.CURDIR}/../../print/foomatic-filters-cups/INSTALL | | | |
52 | | | | |
53 | EGDIR= ${PREFIX}/share/examples/foomatic | | 54 | EGDIR= ${PREFIX}/share/examples/foomatic |
54 | CONFDIR= ${PKG_SYSCONFDIR}/foomatic | | 55 | CONFDIR= ${PKG_SYSCONFDIR}/foomatic |
55 | | | 56 | |
56 | REQD_DIRS= ${EGDIR} | | 57 | REQD_DIRS= ${EGDIR} |
57 | OWN_DIRS= ${CONFDIR} | | 58 | OWN_DIRS= ${CONFDIR} |
58 | CONF_FILES= ${EGDIR}/filter.conf ${CONFDIR}/filter.conf | | 59 | CONF_FILES= ${EGDIR}/filter.conf ${CONFDIR}/filter.conf |
59 | | | 60 | |
60 | INSTALLATION_DIRS+= ${EGDIR} | | 61 | INSTALLATION_DIRS+= ${EGDIR} |
61 | post-install: | | 62 | post-install: |
62 | ${INSTALL_DATA} ${WRKSRC}/filter.conf ${DESTDIR}${EGDIR} | | 63 | ${INSTALL_DATA} ${WRKSRC}/filter.conf ${DESTDIR}${EGDIR} |
63 | | | 64 | |
64 | .include "../../print/ghostscript/buildlink3.mk" | | 65 | .include "../../print/ghostscript/buildlink3.mk" |
65 | .include "../../mk/bsd.pkg.mk" | | 66 | .include "../../mk/bsd.pkg.mk" |