aboutsummaryrefslogtreecommitdiffstats
path: root/games/tinymux/Makefile
blob: b5142b5679fe6ac73f37f6cb2de65d9754ca90e8 (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
61
62
63
64
65
66
67
68
69
70
71
72
73
# New ports collection makefile for:    TinyMUX
# Date created:     1998/05/28
# Whom:         cjohnson
#
# $FreeBSD$
#

PORTNAME=   tinymux
PORTVERSION=    2.3.5.${PATCHLEVEL}
CATEGORIES= games net
MASTER_SITES=   ftp://ftp.tinymux.org/TinyMUX/tinymux-2.3/${PATCHLEVEL}/ \
        http://www.tinymux.org/ \
        http://www.moosh.net/pub/mush/servers/tinymux/TinyMUX-2.x/tinymux-2.3/${PATCHLEVEL}/
DISTNAME=   mux-${PORTVERSION}.unix

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

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

PATCHLEVEL= 26
WRKSRC=     ${WRKDIR}/mux2.3/src
.if !defined(NOPORTDOCS)
PORTDOCS=   *
.endif

do-install:
# Binaries
.for file in netmux slave
    ${INSTALL_PROGRAM} ${WRKSRC}/${file} ${PREFIX}/sbin
.endfor
    ${INSTALL_PROGRAM} ${WRKSRC}/../game/bin/dbconvert ${PREFIX}/bin
# Configuration
    ${MKDIR} ${PREFIX}/etc/${PORTNAME}
.for file in alias.conf compat.conf mux.config netmux.conf
    ${INSTALL_DATA} ${WRKSRC}/../game/${file} \
        ${PREFIX}/etc/${PORTNAME}/${file}.sample
.endfor
# Data
    ${MKDIR} ${DATADIR}/game/netmux
.for file in Backup Startmux _backupflat.sh
    ${INSTALL_SCRIPT} ${WRKSRC}/../game/${file} ${DATADIR}/game/netmux/
.endfor
    ${MKDIR} ${DATADIR}/game/netmux/data
.for file in db_check db_load db_unload
    ${INSTALL_SCRIPT} ${WRKSRC}/../game/data/${file} \
        ${DATADIR}/game/netmux/data
.endfor
    ${INSTALL_DATA} ${WRKSRC}/../game/data/netmux.db \
        ${DATADIR}/game/netmux/data
    ${MKDIR} ${DATADIR}/game/netmux/text
.for file in badsite connect create_reg down full guest help motd \
    news newuser plushelp quit register staffhelp wizhelp wizmotd wiznews
    ${INSTALL_DATA} ${WRKSRC}/../game/text/${file}.txt \
        ${DATADIR}/game/netmux/text
.endfor
# Docs
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
.for file in ATTACK CHANGES INSTALL NOTES README SGP
    ${INSTALL_DATA} ${WRKSRC}/../${file} ${DOCSDIR}
.endfor
.for file in BACKUPS CONFIGURATION CONVERSION CREDITS DISTRIBUTIONS GUESTS \
    LIMITS MEMORY PATCHES REALMS muxman.pdf
    ${INSTALL_DATA} ${WRKSRC}/../docs/${file} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.mk>