summaryrefslogtreecommitdiff
path: root/textproc/unroff/Makefile
blob: 75f6dae386b96e95aed09191903beb47aeb5d55d (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
# $NetBSD: Makefile,v 1.8 1998/11/13 01:50:21 frueauf Exp $
# FreeBSD Id: Makefile,v 1.6 1997/04/27 00:11:48 asami Exp
#

DISTNAME=	unroff-1.0
PKGNAME=	unroff-1.0.2
CATEGORIES=	textproc
MASTER_SITES=	${UNROFF_SITE}/dist/ \
		${UNROFF_SITE}/contrib/
DISTFILES=	${DISTNAME}${EXTRACT_SUFX} ${PATCH1} ${PATCH2}

MAINTAINER=	packages@netbsd.org
HOMEPAGE=	http://www-rn.informatik.uni-bremen.de/software/unroff/

RUN_DEPENDS=	elk:../../lang/elk
BUILD_DEPENDS=	elk:../../lang/elk

NOT_FOR_ARCHS=	alpha	#needs elk

EXTRACT_ONLY=	${DISTNAME}${EXTRACT_SUFX}
DIST_SUBDIR=	unroff

UNROFF_SITE=	http://www-rn.informatik.uni-bremen.de/software/unroff
PATCH1=		me-misc-patch
PATCH2=		misc-patch-2

pre-patch:
	@${ECHO_MSG} "===>  Applying distribution patches for ${PKGNAME}"
	@(cd ${_DISTDIR}; \
		if [ ${PATCH_DEBUG_TMP} = yes ]; then \
			${ECHO_MSG} "===>   Applying distribution patch ${PATCH1}" ; \
		fi; \
		${PATCH} ${PATCH_DIST_ARGS} -p0 < ${PATCH1}; \
		if [ ${PATCH_DEBUG_TMP} = yes ]; then \
			${ECHO_MSG} "===>   Applying distribution patch ${PATCH2}" ; \
		fi; \
		${PATCH} ${PATCH_DIST_ARGS} -p1 < ${PATCH2})

post-patch:
	@(cd ${WRKSRC} && find . -name '*.orig' -print | xargs rm -f)

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