summaryrefslogtreecommitdiff
path: root/print/cupsomatic/Makefile
blob: cc77e553902112100db05ef61855f169b7d3c087 (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
# $NetBSD: Makefile,v 1.3 2000/12/21 15:02:26 jlam Exp $

DISTNAME=	cupsomatic
PKGNAME=	cupsomatic-1.3
CATEGORIES=	print
MASTER_SITES=	http://www.linuxprinting.org/
EXTRACT_SUFX=	# empty

MAINTAINER=	jlam@netbsd.org
HOMEPAGE=	http://www.linuxprinting.org/cups-doc.html

CONFLICTS+=	cupsomatic-200012??

DIST_SUBDIR=	${PKGNAME}

DEPENDS+=	cups>=1.1.1:../../print/cups
DEPENDS+=	ghostscript{,-nox11}-[6-9]*:../../print/ghostscript
DEPENDS+=	mpage-[0-9]*:../../print/mpage

USE_PERL5=	# defined
NO_WRKSUBDIR=	# defined
NO_CONFIGURE=	# defined
EXTRACT_CMD=	${CP} ${DOWNLOADED_DISTFILE} ${WRKSRC}/cupsomatic

FILTERDIR=	${PREFIX}/libexec/cups/filter

post-extract:
	cd ${WRKSRC}; ${MV} cupsomatic cupsomatic.in

do-build:
	${SED}	-e "s,@PERL@,${PERL5},g" \
		-e "s,@LOCALBASE@,${LOCALBASE},g" \
		< ${WRKSRC}/cupsomatic.in > ${WRKSRC}/cupsomatic

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/cupsomatic ${FILTERDIR}

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