aboutsummaryrefslogtreecommitdiff
path: root/games/tinymux/Makefile
blob: 145e7554179f12e9e90893f99ab5b22ff0bb518d (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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# New ports collection makefile for:	TinyMUX
# Date created:		1998/05/28
# Whom:			cjohnson
#
# $FreeBSD$
#

PORTNAME=	tinymux
PORTVERSION=	1.6p0
PORTREVISION=	2
CATEGORIES=	games
MASTER_SITES=	http://www.moosh.net/pub/mush/servers/tinymux/TinyMUX-1.x/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	A Multi-Player FreeForm adventure Program

LIB_DEPENDS=	gdbm.3:${PORTSDIR}/databases/gdbm

WRKSRC=		${WRKDIR}/src

USE_AUTOCONF=	yes
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
		LIBS="-L${LOCALBASE}/lib"

post-extract:
	@${RM} -f ${WRKSRC}/gdbm.h

#
# Distribution does not include an install target.  So here it is.
do-install:
	${MKDIR} ${PREFIX}/games/tinymux
	${INSTALL_SCRIPT} ${WRKDIR}/game/Startmux ${PREFIX}/games/tinymux
.for file in alias.conf compat.conf mtrace.awk mux.config netmux.conf
	${INSTALL_DATA} ${WRKDIR}/game/${file} ${PREFIX}/games/tinymux
.endfor
	${MKDIR} ${PREFIX}/games/tinymux/data
.for file in db_check db_load db_unload
	${INSTALL_SCRIPT} ${WRKDIR}/game/data/${file} \
		${PREFIX}/games/tinymux/data
.endfor
	${MKDIR} ${PREFIX}/games/tinymux/text
.for file in badsite connect create_reg down full guest help motd \
	news newuser plushelp quit register wizhelp wizmotd wiznews
	${INSTALL_DATA} ${WRKDIR}/game/text/${file}.txt \
		${PREFIX}/games/tinymux/text
.endfor
	${MKDIR} ${PREFIX}/games/tinymux/bin
#	${INSTALL_PROGRAM} ${WRKSRC}/conc ${PREFIX}/games/tinymux/bin
.for file in dbconvert mkindx netmux slave
	${INSTALL_PROGRAM} ${WRKSRC}/${file} ${PREFIX}/games/tinymux/bin
.endfor
.if !defined(NOPORTDOCS)
	${MKDIR} ${PREFIX}/share/doc/tinymux
.for file in README README.COMPRESSION README.GUESTS README.MEMORY \
	README.TOOLS
	${INSTALL_DATA} ${WRKDIR}/${file} ${PREFIX}/share/doc/tinymux
.endfor
.endif

.include <bsd.port.mk>