aboutsummaryrefslogtreecommitdiffstats
path: root/games/freedroidrpg/Makefile
blob: 8128a8af9781796edcca6ab4a1544dac5a7e71f6 (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
53
54
55
# Created by: Travis Poppe <tlp@liquidx.org>
# $FreeBSD$

PORTNAME=   freedroidrpg
PORTVERSION=    0.15
PORTREVISION=   4
CATEGORIES= games
MASTER_SITES=   SF/freedroid/freedroidRPG/freedroidRPG-${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\\1/}/

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

GNU_CONFIGURE=  yes
USES=       gmake lua:51
USE_SDL=    sdl image mixer gfx
CONFIGURE_ENV=  LUA_CFLAGS="-I${LUA_INCDIR}" LUA_LIBS="-L${LUA_LIBDIR} -llua-${LUA_VER}"
USE_GCC=    any # doesn't build with clang

PORTDATA=   *

OPTIONS_DEFINE= BACKTRACE OPENGL VORBIS
BACKTRACE_DESC= Use backtrace() to generate nice bug reports

OPTIONS_DEFAULT=BACKTRACE OPENGL VORBIS

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MBACKTRACE}
LIB_DEPENDS+=   libexecinfo.so:${PORTSDIR}/devel/libexecinfo
CONFIGURE_ARGS+=--enable-backtrace
STRIP=      #
.else
CONFIGURE_ARGS+=--disable-backtrace
.endif

.if ${PORT_OPTIONS:MOPENGL}
USE_GL=     yes
CONFIGURE_ARGS+=--enable-opengl
.else
CONFIGURE_ARGS+=--disable-opengl
.endif

.if ${PORT_OPTIONS:MVORBIS}
LIB_DEPENDS+=   libvorbis.so:${PORTSDIR}/audio/libvorbis \
        libogg.so:${PORTSDIR}/audio/libogg
CONFIGURE_ARGS+=--enable-vorbis
.else
CONFIGURE_ARGS+=--disable-vorbis
.endif

.if ${ARCH} == "sparc64"
BROKEN=     Does not configure on sparc64
.endif

.include <bsd.port.mk>