summaryrefslogtreecommitdiff
path: root/print/foomatic-filters/Makefile
blob: e1c465933bc8093bed031e5da77a56c34d531704 (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
# $NetBSD: Makefile,v 1.6 2005/11/28 06:41:21 jlam Exp $

DISTNAME=	foomatic-filters-3.0.2
PKGREVISION=	1
CATEGORIES=	print
MASTER_SITES=	http://www.linuxprinting.org/download/foomatic/

MAINTAINER=	tech-pkg@NetBSD.org
HOMEPAGE=	http://www.linuxprinting.org/foomatic.html
COMMENT=	Spooler independent postscript printing filter

# You may choose from any of the following, if you wish
DEPENDS+=	mpage-[0-9]*:../../print/mpage
#DEPENDS+=	a2ps-[0-9]*:../../print/a2ps
#DEPENDS+=	enscript-[0-9]*:../../print/enscript

CONFLICTS+=	foomatic-gswrapper-[0-9]

GNU_CONFIGURE=		YES
CONFIG_GUESS_OVERRIDE=  ${WRKSRC}/config.guess
CONFIG_SUB_OVERRIDE=    ${WRKSRC}/config.sub

# Rather than wrestle with the maintainer's horribly broken configure
# scripts, we just override everything here
CONFIGURE_ENV+= 	CUPS=${LOCALBASE}/share/cups
CONFIGURE_ENV+= 	CUPS_FILTERS=${LOCALBASE}/lib/cups/filter
CONFIGURE_ENV+= 	PRINTCAP=/etc/printcap
CONFIGURE_ARGS+=	--sysconfdir=${PKG_SYSCONFBASEDIR}

USE_TOOLS+=	gmake gs:run perl:run
USE_PKGINSTALL=	yes
INSTALL_TARGET=	install-bin install-man

PKG_SYSCONFSUBDIR=	foomatic
EGDIR=			${PREFIX}/share/examples/foomatic-filters/
CONF_FILES=		${EGDIR}/filter.conf ${PKG_SYSCONFDIR}/filter.conf

post-install:
	${INSTALL_DATA_DIR} ${EGDIR}
	${INSTALL_DATA} ${WRKSRC}/filter.conf ${EGDIR}

.include "../../mk/bsd.pkg.mk"