blob: 70d532d940c5b27a17ad4d095a921519fca648a5 (
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
|
# New ports collection makefile for: wolfpack
# Date created: 26 October 1999
# Whom: Daniel O'Connor <darius@dons.net.au>
#
# $FreeBSD$
#
PORTNAME= wolfpack
PORTVERSION= 4.2.18
CATEGORIES= games
MASTER_SITES= http://www.wolfpackempire.com/Downloads/server/ \
http://www.wolfpackempire.com/Downloads/server/oldversions/
DISTNAME= empire-${PORTVERSION}
MAINTAINER= darius@dons.net.au
COMMENT= Long term multiplayer strategy game
.if !defined(BATCH)
IS_INTERACTIVE= yes # configure script asks questions
.endif
ALL_TARGET= freebsd
USE_RC_SUBR= yes
MAN1= fairland.1 files.1 pconfig.1
MAN6= emp_client.6 emp_server.6
MAKE_ARGS= PREFIX=${PREFIX}
.include <bsd.port.pre.mk>
PKGDEINSTALL= ${PKGINSTALL}
.if ${ARCH} == "ia64"
BROKEN= "Does not compile on ia64"
.endif
RC_SCRIPTS_SUB= PREFIX=${PREFIX} \
RC_SUBR=${RC_SUBR}
pre-configure:
${MKDIR} ${WRKSRC}/data
pre-install:
${MKDIR} ${PREFIX}/wolfpack
${MKDIR} ${PREFIX}/wolfpack/data
@ ${SETENV} PKG_PREFIX=${PREFIX} \
${SH} ${PKGINSTALL} ${PORTNAME} PRE-INSTALL
post-install:
${CHMOD} 750 ${PREFIX}/wolfpack/data
${TAR} -C ${WRKSRC} -cf - info.nr scripts doc | ${TAR} -C ${PREFIX}/wolfpack -xf -
${CHMOD} 755 ${PREFIX}/wolfpack/info.nr
${CHMOD} 644 ${PREFIX}/wolfpack/info.nr/*
${CHOWN} -R root:wheel ${PREFIX}/wolfpack
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/wolfpack
${INSTALL_MAN} ${WRKSRC}/man/fairland.1 ${PREFIX}/man/man1/
${INSTALL_MAN} ${WRKSRC}/man/files.1 ${PREFIX}/man/man1/
${INSTALL_MAN} ${WRKSRC}/man/pconfig.1 ${PREFIX}/man/man1/
${INSTALL_MAN} ${WRKSRC}/man/emp_client.6 ${PREFIX}/man/man6/
${INSTALL_MAN} ${WRKSRC}/man/emp_server.6 ${PREFIX}/man/man6/
@${CAT} ${FILESDIR}/post-install-info
@ ${SETENV} PKG_PREFIX=${PREFIX} \
${SH} ${PKGINSTALL} ${PORTNAME} POST-INSTALL
@ ${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
${FILESDIR}/wolfpack.sh > ${WRKDIR}/wolfpack.sh
${INSTALL_SCRIPT} ${WRKDIR}/wolfpack.sh ${PREFIX}/etc/rc.d/wolfpack.sh
.include <bsd.port.post.mk>
|