summaryrefslogtreecommitdiff
path: root/print/pnm2ppa/Makefile
blob: e7a1203b4430a76903f11d68468d97fb6d6bcc98 (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
# $NetBSD: Makefile,v 1.13 2008/06/12 02:14:43 joerg Exp $
#

DISTNAME=	pnm2ppa-1.12
CATEGORIES=	print converters graphics
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=pnm2ppa/}

MAINTAINER=	kei@NetBSD.org
HOMEPAGE=	http://pnm2ppa.sourceforge.net/
COMMENT=	Filter to convert PNM file to PPA used by some HP DJ printer

PKG_DESTDIR_SUPPORT=	user-destdir

CONF_FILES=	${PREFIX}/share/examples/pnm2ppa/pnm2ppa.conf \
		${PKG_SYSCONFDIR}/pnm2ppa.conf

INSTALLATION_DIRS=	bin ${PKGMANDIR}/man1 share/doc/pnm2ppa

post-build:
	for f in				\
	${WRKSRC}/docs/en/CALIBRATION.txt	\
	${WRKSRC}/docs/en/COLOR.txt		\
	${WRKSRC}/docs/en/pnm2ppa.1 ;		\
	do					\
		${CP} $$f $$f.orig ;		\
		${SED} 's|/etc/pnm2ppa|${PKG_SYSCONFDIR}/pnm2ppa|g'	\
			$$f.orig > $$f ;	\
	done

post-install:
	cd ${WRKSRC} &&	\
	${INSTALL_DATA} docs/en/CALIBRATION.txt	docs/en/COLOR.txt	\
		${DESTDIR}${PREFIX}/share/doc/pnm2ppa

.include "../../devel/libgetopt/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"