blob: f7d1a9d8c410912d7108d915bc204371c30a5aa6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# $NetBSD: Makefile,v 1.10 2006/02/05 23:10:36 joerg Exp $
.include "Makefile.common"
DISTNAME= foomatic-filters-${FOOMATIC_FILTERS_VERSION}
PKGREVISION= 3
MASTER_SITES= http://www.linuxprinting.org/download/foomatic/
MAINTAINER= jlam@pkgsrc.org
COMMENT= Spooler-independent PostScript printing filter
CONFLICTS+= foomatic-gswrapper-[0-9]
USE_TOOLS+= gmake gs:run perl:run
INSTALL_TARGET= install-bin install-man
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
CONFIGURE_ARGS+= --disable-file-converter-check
EVAL_PREFIX+= CUPS_PREFIX=cups
CUPS_FILTERDIR= ${CUPS_PREFIX:Q}/libexec/cups/filter
CONFIGURE_ENV+= CUPS_FILTERS=${CUPS_FILTERDIR}
FILES_SUBST+= CUPS_FILTERDIR=${CUPS_FILTERDIR}
TEXTTOPS_DEPENDS= {a2ps,enscript,mpage}-[0-9]*
PKG_OPTIONS_VAR= PKG_OPTIONS.foomatic
PKG_SUPPORTED_OPTIONS= cups
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mcups)
DEPENDS+= {cups>=1.0,${TEXTTOPS_DEPENDS}}:../../print/cups
.else
DEPENDS+= ${TEXTTOPS_DEPENDS}:../../print/mpage
.endif
DEINSTALL_EXTRA_TMPL= ${.CURDIR}/../../print/foomatic-filters-cups/INSTALL
INSTALL_EXTRA_TMPL= ${DEINSTALL_EXTRA_TMPL}
EGDIR= ${PREFIX}/share/examples/foomatic
CONFDIR= ${PKG_SYSCONFDIR}/foomatic
REQD_DIRS= ${EGDIR}
OWN_DIRS= ${CONFDIR}
CONF_FILES= ${EGDIR}/filter.conf ${CONFDIR}/filter.conf
post-install:
${INSTALL_DATA} ${WRKSRC}/filter.conf ${EGDIR}
.include "../../mk/bsd.pkg.mk"
|