summaryrefslogtreecommitdiff
path: root/print/foo2zjs/Makefile
blob: 05533955f3f8b8260c57dbd5889c531d60ebaca9 (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
# $NetBSD: Makefile,v 1.1 2012/07/25 17:15:45 imil Exp $
#

DISTNAME=	foo2zjs
PKGNAME=	${DISTNAME}-20120516
CATEGORIES=	print
MASTER_SITES=	http://foo2zjs.rkkda.com/

MAINTAINER=	imil@NetBSD.org
HOMEPAGE=	http://foo2zjs.rkkda.com/
COMMENT=	Printer driver for Zenographics ZjStream wire protocol
LICENSE=	gnu-gpl-v2

PKG_DESTDIR_SUPPORT=	user-destdir

USE_TOOLS+=	gmake

INSTALLATION_DIRS+=	bin ${PKGMANDIR}/man1
INSTALLATION_DIRS+=	share/foo2zjs share/foomatic/ppd/foo2zjs

DEPENDS+=	foomatic-filters-cups>=3.0:../../print/foomatic-filters-cups

SUBST_CLASSES+=		paths
SUBST_MESSAGE.paths=	Fix PREFIX.
SUBST_FILES.paths=	Makefile icc2ps/Makefile
SUBST_SED.paths=	-e "s,@PREFIX@,${DESTDIR}${PREFIX},"
SUBST_SED.paths+=	-e "s,@PKGMANDIR@,${DESTDIR}${PREFIX}/${PKGMANDIR},"
SUBST_STAGE.paths=	post-patch

do-build:
	cd ${WRKSRC} && ${GMAKE} ${PROGS}

do-install:
	cd ${WRKSRC} && ${GMAKE} install-prog install-man
	# cheaper than upstream's "portable" Makefile
	${INSTALL_DATA} ${WRKSRC}/PPD/*.ppd	\
		${DESTDIR}${PREFIX}/share/foomatic/ppd/foo2zjs

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