blob: d7926c22ec429dbd024a1c8a7b1c190b9c6f6f5a (
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
74
75
76
77
|
# Created by: adam@veda.is
# $FreeBSD$
PORTNAME= dgd
PORTVERSION= 1.4.20
CATEGORIES= net lang games
MASTER_SITES= https://github.com/dworkin/dgd/archive/
DISTNAME= ${PORTVERSION}
MAINTAINER= glewis@FreeBSD.org
COMMENT= Dworkin\'s Game Driver
LICENSE= GPLv3
OPTIONS_DEFINE= NETWORKING CLOSURES CPLUSPLUS_COMMENTS
NETWORKING_DESC=Enable networking kfuns
CLOSURES_DESC= Enable function pointer support
CPLUSPLUS_COMMENTS_DESC= Allow C++ style comments in LPC
OPTIONS_DEFAULT=CPLUSPLUS_COMMENTS
USE_GMAKE= yes
DIST_SUBDIR= dgd
BASE_WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
WRKSRC= ${BASE_WRKSRC}/src
PATCH_WRKSRC= ${BASE_WRKSRC}
ALL_TARGET= install
MAKE_JOBS_UNSAFE= yes
MAKE_ENV+= EXTRA_DEFINES="$(EXTRA_DEFINES)"
FETCH_ARGS= -Fpr
.if !defined(NOPORTDOCS)
PORTDOCS= *
.endif
USERS= mud
GROUPS= mud
NO_STAGE= yes
.include <bsd.port.options.mk>
EXTRA_DEFINES=
.if ${PORT_OPTIONS:MCLOSURES}
EXTRA_DEFINES+= -DCLOSURES
.endif
.if ${PORT_OPTIONS:MCPLUSPLUS_COMMENTS}
EXTRA_DEFINES+= -DSLASHSLASH
.endif
.if ${PORT_OPTIONS:MNETWORKING}
EXTRA_DEFINES+= -DNETWORK_EXTENSIONS
.endif
post-patch:
@cd ${PATCH_WRKSRC} && ${FIND} . -name '*.orig' -delete
do-install:
${INSTALL_PROGRAM} ${BASE_WRKSRC}/bin/driver ${PREFIX}/sbin/dgd
${INSTALL_PROGRAM} ${BASE_WRKSRC}/bin/precomp ${PREFIX}/bin/precomp
${MKDIR} ${PREFIX}/etc/${PORTNAME}
${INSTALL_DATA} ${BASE_WRKSRC}/mud.dgd \
${PREFIX}/etc/${PORTNAME}/mud.dgd.sample
@# Install an RC script for DGD
${CAT} ${FILESDIR}/dgd.sh | ${SED} -e "s:%%PREFIX%%:${PREFIX}:" \
-e "s:%%DATADIR%%:${DATADIR}:" > \
${PREFIX}/etc/rc.d/dgd.sh.sample
${CHMOD} a+x ${PREFIX}/etc/rc.d/dgd.sh.sample
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${BASE_WRKSRC}/COPYING ${DOCSDIR}
${INSTALL_DATA} ${BASE_WRKSRC}/README ${DOCSDIR}
cd ${BASE_WRKSRC}/doc && ${COPYTREE_SHARE} . ${DOCSDIR}
.endif
.include <bsd.port.mk>
|