summaryrefslogtreecommitdiff
path: root/games/freedroidrpg/Makefile
blob: 553e94aeeead5c8add72cd51a43235f4a7a78ed5 (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
# Created by: Travis Poppe <tlp@liquidx.org>
# $FreeBSD$

PORTNAME=	freedroidrpg
PORTVERSION=	0.16.1
PORTREVISION=	1
CATEGORIES=	games
MASTER_SITES=	ftp://ftp.osuosl.org/pub/freedroid/freedroidRPG-${PORTVERSION:R}/ \
		http://mirror.amdmi3.ru/distfiles/
DISTNAME=	freedroidRPG-${PORTVERSION}

MAINTAINER=	amdmi3@FreeBSD.org
COMMENT=	Modification of the classical Freedroid engine into an RPG

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

LIB_DEPENDS=	libpng.so:graphics/png

BROKEN_sparc64=	does not configure

GNU_CONFIGURE=	yes
USES=		jpeg gmake localbase lua:52+ python
USE_XORG=	x11
USE_SDL=	sdl image gfx
CONFIGURE_ENV=	LUA_CFLAGS="-I${LUA_INCDIR}" LUA_LIBS="-L${LUA_LIBDIR} -llua-${LUA_VER}"

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

PORTDATA=	*
PORTDOCS=	*

OPTIONS_DEFINE=	NLS BACKTRACE OPENGL SOUND DOCS
OPTIONS_DEFAULT=BACKTRACE OPENGL SOUND
OPTIONS_SUB=	yes

BACKTRACE_DESC=	Use backtrace() to generate nice bug reports
BACKTRACE_CONFIGURE_ENABLE=	backtrace
BACKTRACE_VARS=			STRIP= # empty

OPENGL_USE=			GL=gl
OPENGL_CONFIGURE_ENABLE=	opengl

SOUND_LIB_DEPENDS=		libvorbis.so:audio/libvorbis \
				libogg.so:audio/libogg
SOUND_CONFIGURE_ENABLE=		sound
SOUND_USE=			SDL=mixer

NLS_USES=			gettext
NLS_CONFIGURE_ENABLE=		nls

.include <bsd.port.mk>