summaryrefslogtreecommitdiff
path: root/textproc/troffcvt/Makefile
blob: 9d9e600e1b30e579e4a5b5c2ff24f404fb1af537 (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
# $NetBSD: Makefile,v 1.6 2003/12/11 20:16:10 ben Exp $
#

DISTNAME=		troffcvt-1.04
PKGREVISION=		1
CATEGORIES=		textproc
MASTER_SITES=		http://www.snake.net/software/troffcvt/

MAINTAINER=		collver1@comcast.net
HOMEPAGE=		${MASTER_SITES}
COMMENT=		Troff/groff to RTF/HTML/TEXT converter

BUILD_DEPENDS+=		libts-1.08:../../devel/libts
BUILD_DEPENDS+=		libmemmgr-1.04:../../devel/libmemmgr
BUILD_DEPENDS+=		libportlib-1.01:../../devel/libportlib

USE_PERL5=		yes

INSTALL_TARGET=		install install.man

post-patch:
	for i in `${FIND} ${WRKSRC} -name Makefile`; do \
		${MV} $$i $$i.bak;\
		${SED} <$$i.bak >$$i \
			-e "s| -Dsun -DSVR4||" \
			-e "s| -lsocket -lnsl -lw||" \
			-e "s| -Xc||" \
			-e "s|/usr/include/sys/feature_tests.h||" \
			-e "s|/usr/tmp|/tmp|g" \
			-e 's|/usr/ucb/install|$${BSD_INSTALL}|' \
			-e "s|/usr/local|${PREFIX}|g" \
			-e "s|/usr/local/man|${PREFIX}/man|" ;\
	done

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