aboutsummaryrefslogtreecommitdiff
path: root/games/prboom-plus/Makefile
blob: 62db9b0106ab889110a908e68877aecfcfe18b14 (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
PORTNAME=	prboom-plus
PORTVERSION=	2.5.1.3
PORTREVISION=	11
CATEGORIES=	games
MASTER_SITES=	SF

MAINTAINER=	thiagohero501@gmail.com
COMMENT=	Fork of the prboom Doom game engine
WWW=		http://prboom-plus.sourceforge.net/

LICENSE=	GPLv2+
LICENSE_FILE=	${WRKSRC}/COPYING

LIB_DEPENDS=	libsmpeg.so:multimedia/smpeg \
		libpng.so:graphics/png \
		libmad.so:audio/libmad \
		libfluidsynth.so:audio/fluidsynth \
		libvorbisfile.so:audio/libvorbis

USES=		gmake localbase sdl
USE_GL=		gl
USE_SDL=	image mixer net sdl

GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--with-waddir=${DATADIR}

DATADIR=	${DMDIR}

OPTIONS_DEFINE=	DOCS OPENGL
OPTIONS_DEFAULT=OPENGL

OPENGL_USES=	gl
OPENGL_USE=	GL=glu
OPENGL_CONFIGURE_ENABLE=	gl

post-patch:
	@${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} ${REINPLACE_CMD} \
		-e '/^gamesdir/s|/games|/bin|' \
		-e '/^docdir/s/@PACKAGE@-@VERSION@/@PACKAGE@/'

.include "${.CURDIR}/Makefile.include"

.include <bsd.port.mk>