aboutsummaryrefslogtreecommitdiffstats
path: root/games/doomsday/Makefile
blob: e63fea420965bb794b50a881701288cd4ffe2efd (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
# Created by: Igor Pokrovsky <ip@doom.homeunix.org>
# $FreeBSD$

PORTNAME=   doomsday
PORTVERSION=    1.14.5
PORTREVISION=   4
CATEGORIES= games
MASTER_SITES=   SF/deng/Doomsday%20Engine/${PORTVERSION}

MAINTAINER= danilo@FreeBSD.org
COMMENT=    Enhanced Doom, Heretic, and Hexen source port

LICENSE=    GPLv2

BUILD_DEPENDS=  zip:${PORTSDIR}/archivers/zip
LIB_DEPENDS=    libcurl.so:${PORTSDIR}/ftp/curl
RUN_DEPENDS=    timidity:${PORTSDIR}/audio/timidity

USE_GL=     gl glu
USE_LDCONFIG=   yes
USE_SDL=    sdl mixer net
USE_XORG=   x11
USES=       execinfo pkgconfig python:build qmake:outsource
USE_QT4=    corelib network opengl moc_build
QMAKE_SOURCE_PATH=  ${WRKSRC}/doomsday
QMAKE_ARGS+=    QMAKE_LFLAGS+="-Wl,--export-dynamic" \
        CONFIG+="deng_notools deng_nosnowberry" \
        SCRIPT_PYTHON=${PYTHON_CMD}
LDFLAGS+=   -lm

OPTIONS_DEFINE= OPENAL
OPTIONS_SUB=    yes

OPENAL_DESC=    Build OpenAL sound plugin
OPENAL_USES=    openal:al
OPENAL_QMAKE_ON=    CONFIG+=deng_openal
OPENAL_QMAKE_OFF=   CONFIG+=deng_noopenal

PORTSCOUT=  limit:^\d+\.\d+\.\d+$$

post-patch:
    @${REINPLACE_CMD} 's,share/man,man,' \
        ${PATCH_WRKSRC}/doomsday/client/client.pro \
        ${PATCH_WRKSRC}/doomsday/server/server.pro
    @${REINPLACE_CMD} 's,python,${PYTHON_CMD},' \
        ${PATCH_WRKSRC}/doomsday/config.pri \
        ${PATCH_WRKSRC}/doomsday/build/build.pro
    # Removing three non ascii bytes
    @${REINPLACE_CMD} '1s,^...,,' ${WRKSRC}/doomsday/client/src/client/cl_sound.cpp

.include <bsd.port.mk>