summaryrefslogtreecommitdiff
path: root/net/pmf/Makefile
blob: 2eb929cd9cf431df6b6a1084c82a60f37a4c68e8 (plain) (blame)
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
# New ports collection makefile for:	pmf
# Date created:		24 Sep 1994
# Whom:			adam
#
# $FreeBSD$
#

PORTNAME=	pmf
PORTVERSION=	1.13.1
CATEGORIES=	net
MASTER_SITES=	http://ftp.ntua.gr/pub/net/mud/lpmud/clients/pmf/

MAINTAINER=	ports@FreeBSD.org

PORTCOMMENT=	Padrone\'s Mud Frontend

WRKSRC=		${WRKDIR}/pmfdir/src

SYSSRC=		${WRKSRC}/../system_dir
DOCSRC=		${WRKSRC}/../doc
XMPSRC=		${WRKSRC}/../examples

post-patch:
	@${SED} -e 's:%%PREFIX%%:${PREFIX}:g' ${FILESDIR}/pmfrc.default.in \
		> ${SYSSRC}/pmfrc.default

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/pmf ${PREFIX}/bin
	@${MKDIR} ${DATADIR}
	${INSTALL_DATA} ${SYSSRC}/NEWS ${DATADIR}
	${INSTALL_DATA} ${SYSSRC}/pmfrc.default ${DATADIR}
	@${MKDIR} ${DATADIR}/helpfiles
	${INSTALL_DATA} ${SYSSRC}/helpfiles/.pmfrc ${DATADIR}/helpfiles
	${INSTALL_DATA} ${SYSSRC}/helpfiles/* ${DATADIR}/helpfiles
	@${MKDIR} ${EXAMPLESDIR}
	${INSTALL_DATA} ${XMPSRC}/.pmfrc ${EXAMPLESDIR}/dot.pmfrc
	${INSTALL_DATA} ${XMPSRC}/* ${EXAMPLESDIR}
.if !defined(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${DOCSRC}/* ${DOCSDIR}
.endif

.include <bsd.port.mk>