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