summaryrefslogtreecommitdiff
path: root/textproc/cawf/Makefile
blob: a3eed22bc3cc5aed846a94562279117b9612c1ce (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
# $NetBSD: Makefile,v 1.11 2007/03/19 16:36:41 tv Exp $
#
# Possible TODOs:
# - set CH based on manual page section number, and real OS name
# - add -mdoc implementation and/or translator
# - use system getopt(3)?
# - use system regex support?

DISTNAME=		cawf
PKGNAME=		cawf-4.10
PKGREVISION=		1
CATEGORIES=		textproc
MASTER_SITES=		ftp://vic.cc.purdue.edu/pub/ \
			http://www.tux.org/pub/sites/vic.cc.purdue.edu/
DIST_SUBDIR=		${PKGNAME_NOREV}
EXTRACT_SUFX=		.zip

MAINTAINER=		pkgsrc-users@NetBSD.org
HOMEPAGE=		ftp://vic.cc.purdue.edu/pub/cawf.README
COMMENT=		Simplistic nroff-like formatter in C, like "awf"

WRKSRC=			${WRKDIR}

PKG_INSTALLATION_TYPES=	overwrite pkgviews

.include "../../mk/bsd.prefs.mk"

CPPFLAGS+=		-DUNIX -DUSG -DSTDLIB -DCAWFLIB="\"${PREFIX}/share/cawf\""

INSTALLATION_DIRS+=	bin man/man1

post-extract:
	${RM} -f ${WRKSRC}/*.o

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/bsfilt ${WRKSRC}/cawf ${PREFIX}/bin/
	${INSTALL_MAN} ${WRKSRC}/*.1 ${PREFIX}/${PKGMANDIR}/man1/
	${INSTALL_DATA_DIR} ${PREFIX}/share/cawf
	${INSTALL_DATA} ${WRKSRC}/common ${PREFIX}/share/cawf/
	${INSTALL_DATA} ${WRKSRC}/device.cf ${PREFIX}/share/cawf/
	${INSTALL_DATA} ${WRKSRC}/*.dev ${WRKSRC}/*.mac ${PREFIX}/share/cawf/
	${INSTALL_DATA} ${WRKSRC}/00diffs ${PREFIX}/share/cawf/DIFFS

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