aboutsummaryrefslogtreecommitdiff
path: root/games/freedroidrpg/Makefile
blob: 2e8f991ac3e47fb9835589da3b5d2455619b3e2f (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
PORTNAME=	freedroidrpg
PORTVERSION=	1.0
PORTREVISION=	2
CATEGORIES=	games
MASTER_SITES=	https://ftp.osuosl.org/pub/freedroid/freedroidRPG-${PORTVERSION}/
DISTNAME=	freedroidRPG-${PORTVERSION}

MAINTAINER=	amdmi3@FreeBSD.org
COMMENT=	Modification of the classical Freedroid engine into an RPG
WWW=		https://www.freedroid.org/ \
		https://codeberg.org/freedroid/freedroid-src

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

LIB_DEPENDS=	libpng.so:graphics/png

USES=		cpe jpeg gmake localbase lua:53 pkgconfig python sdl xorg
GNU_CONFIGURE=	yes
GNU_CONFIGURE_MANPREFIX=	${PREFIX}/share
CPE_VENDOR=	freedroid
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_USES=		gl
OPENGL_USE=		GL=gl,glu,glew
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
# does not build with disabled NLS, following 2 lines to hack this
NLS_CONFIGURE_ENABLE=	# empty
NLS_USES_OFF=		gettext

.include <bsd.port.mk>