aboutsummaryrefslogtreecommitdiffstats
path: root/games/freedroidrpg/Makefile
blob: a53d038df5c92c520aba524420c537315d2d5581 (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
56
57
58
59
60
61
62
63
64
# New ports collection makefile for:    freedroidrpg
# Date created:         18 Jul 2005
# Whom:             Travis Poppe <tlp@liquidx.org>
#
# $FreeBSD$
#

PORTNAME=   freedroidrpg
PORTVERSION=    0.9.13.r3
CATEGORIES= games
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= freedroid
DISTNAME=   ${PORTNAME:S/rpg/RPG/}-${PORTVERSION:S/.r3/-rc3/}

MAINTAINER= alejandro@varnet.biz
COMMENT=    Modification of the classical Freedroid engine into an RPG

WRKSRC=     ${WRKDIR}/${PORTNAME}-${PORTVERSION:S/.r3/-rc3/}

USE_BZIP2=  yes
USE_GETOPT_LONG=yes
USE_SDL=    mixer image net sdl
WANT_GNOME= yes

GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --program-transform-name=

MAN6=       freedroidRPG.6

OPTIONS=    BACKTRACE "Use backtrace() to generate nice bug reports" on \
        EDITORS "Build the GTK editors" on \
        OPENGL "Enable the OpenGL support (highly recommended!)" on

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 500000
BROKEN=     "does not compile (missing fenv.h)"
.endif

.if defined(WITH_BACKTRACE)
LIB_DEPENDS+=   execinfo.1:${PORTSDIR}/devel/libexecinfo
CONFIGURE_ARGS+=    --enable-backtrace
STRIP=      # keep debugging symbols
.else
CONFIGURE_ARGS+=    --disable-backtrace
.endif

.if defined(WITH_EDITORS)
USE_GNOME+= gtk12
CONFIGURE_ARGS+=    --enable-editors
PLIST_SUB+= EDITORS=""
.else
CONFIGURE_ARGS+=    --disable-editors
PLIST_SUB+= EDITORS="@comment "
.endif

.if defined(WITH_OPENGL)
USE_GL=     yes
CONFIGURE_ARGS+=    --enable-opengl
.else
CONFIGURE_ARGS+=    --disable-opengl
.endif

.include <bsd.port.post.mk>