blob: 56ee6ad49e780e051b07bf933fd00d4ff09bc08b (
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
|
# Created by: Alexey Dokuchaev <danfe@regency.nsu.ru>
# $FreeBSD$
PORTNAME?= mvdsv
PORTVERSION= 0.29
PORTEPOCH= 2
CATEGORIES?= games
MASTER_SITES= http://qw-dev.net/attachments/download/201/
DISTNAME= mvdsv_${PORTVERSION}-sources
MAINTAINER= danfe@FreeBSD.org
COMMENT?= Enhanced QuakeWorld server with multi-view demos capability
LICENSE= GPLv2
USE_ZIP= yes
HAS_CONFIGURE= yes
CONFIGURE_ARGS= ${OPSYS} ${ARCH:C/.*(64)/\1/}
MAKE_ARGS= CC="${CC}"
ALL_TARGET= ${PORTNAME}
WRKSRC= ${WRKDIR}/mvdsv
PLIST_FILES= bin/${PORTNAME}
OPTIONS_DEFINE_i386= ASM
OPTIONS_DEFINE_amd64= ASM
OPTIONS_DEFAULT_i386= ASM
OPTIONS_DEFAULT_amd64= ASM
.if ${PORTNAME} == "mvdsv"
OPTIONS_DEFINE+= KQUEUE
OPTIONS_DEFAULT+= KQUEUE
.endif
KQUEUE_DESC= Kqueue support
.include <bsd.port.options.mk>
.if ! ${PORT_OPTIONS:MKQUEUE}
MAKE_ARGS+= -DNOKQUEUE
.endif
.if ! ${PORT_OPTIONS:MASM}
MAKE_ARGS+= -DWITHOUT_X86_ASM
.endif
post-patch:
@${REINPLACE_CMD} -e 's,^inline ,,' ${WRKSRC}/source/sv_sys_unix.c
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
post-install:
# Checking for presence of ${PKGMESSAGE} explicitly does not work here
.if exists(${.CURDIR}/pkg-message)
@${ECHO_MSG}
@${CAT} ${PKGMESSAGE}
@${ECHO_MSG}
.endif
.include <bsd.port.mk>
|