aboutsummaryrefslogtreecommitdiffstats
path: root/games/mvdsv/Makefile
blob: 0ac6eca66f8d7e10db3fe1963fe519b80c118c30 (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
# New ports collection makefile for:    MVDSV
# Date created:             03 Jun 2003
# Whom:                 Alexey Dokuchaev <danfe@regency.nsu.ru>
#
# $FreeBSD$
#

PORTNAME?=  mvdsv
PORTVERSION=    0.20
PORTEPOCH=  2
CATEGORIES?=    games
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE} \
        http://quakeworld.ru/files/vvd/mvdsv/
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTNAME=   mvdsv_${PORTVERSION}_sources

MAINTAINER= danfe@FreeBSD.org
COMMENT?=   Enhanced QuakeWorld server with multi-view demos capability

USE_BZIP2=  yes

MAKEFILE=   ${FILESDIR}/Makefile
ALL_TARGET= ${PORTNAME}

PLIST_FILES=    bin/${PORTNAME}
WRKSRC=     ${WRKDIR}/mvdsv_${PORTVERSION}/source

.include <bsd.port.pre.mk>

.if ${ARCH} == "alpha" || ${ARCH} == "amd64" || ${ARCH} == "i386" || ${ARCH} == "ia64"
MAKE_ARGS+= BYTE_ORDER=__LITTLE_ENDIAN__
.else
MAKE_ARGS+= BYTE_ORDER=__BIG_ENDIAN__
.endif

pre-everything::
.if !defined(WITHOUT_KQUEUE)
    @${ECHO_MSG} "Define WITHOUT_KQUEUE to disable Kqueue support"
.endif
.if !defined(WITH_OPTIMIZED_CFLAGS)
    @${ECHO_MSG} "Define WITH_OPTIMIZED_CFLAGS to enable extra optimization options"
.endif
.if ${ARCH} == "i386" && !defined(WITHOUT_X86_ASM)
    @${ECHO_MSG} "Define WITHOUT_X86_ASM to disable x86 assembly code"
.endif

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/../${PORTNAME} ${PREFIX}/bin

.include <bsd.port.post.mk>