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

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

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

LICENSE=	GPLv2

LIB_DEPENDS=	libcurl.so:ftp/curl \
		libassimp.so:multimedia/assimp \
		libfluidsynth.so:audio/fluidsynth
RUN_DEPENDS=	timidity:audio/timidity

USES=		cmake compiler:c++11-lib gl localbase:ldflags ninja openal pkgconfig python:2.7,build qt:5

USE_GL=		gl glu
USE_LDCONFIG=	yes
USE_SDL=	sdl2 mixer2
USE_XORG=	x11 sm ice xext xrandr xxf86vm
USE_QT=		buildtools_build core gui network widgets qmake opengl x11extras
CMAKE_ARGS+=	-DDENG_ENABLE_COTIRE=OFF -DDENG_ASSIMP_EMBEDDED=OFF
LDFLAGS+=	-lexecinfo

WRKSRC=	${WRKDIR}/${PORTNAME}-${PORTVERSION}/${PORTNAME}

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

post-patch:
	# Removing (three) non-ascii bytes from the beginning of the file
	@${REINPLACE_CMD} '1s,^...,,' \
		${WRKSRC}/apps/client/src/client/cl_sound.cpp
	@${REINPLACE_CMD} -E 's|(DENG_DISTRIB_DIR /usr)|\1/local|' \
		${WRKSRC}/cmake/Config.cmake

.include <bsd.port.mk>