summaryrefslogtreecommitdiffstats
path: root/games/tnl/Makefile
blob: 92bb1db761b719d69f60bc87b730cf5a11beeb49 (plain)
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
# New ports collection makefile for:	tnl
# Date created:		05 Feb 2008
# Whom:			Dmitry Marakasov <amdmi3@amdmi3.ru>
#
# $FreeBSD$
#

PORTNAME=	tnl
PORTVERSION=	071111
PORTREVISION=	2
CATEGORIES=	games
MASTER_SITES=	http://tnlgame.net/downloads/tnl/${PORTVERSION}/ \
		http://www.amdmi3.ru/distfiles/
DISTNAME=	TnL-source-${PORTVERSION}
DISTFILES=	${DISTNAME}${EXTRACT_SUFX} \
		${DISTNAME:S/source/data/}${EXTRACT_SUFX}

MAINTAINER=	amdmi3@FreeBSD.org
COMMENT=	Futuristic action flight simulator and realtime strategy game

BUILD_DEPENDS=	${LOCALBASE}/lib/libiovmall.so:${PORTSDIR}/lang/io
RUN_DEPENDS=	${BUILD_DEPENDS}
LIB_DEPENDS=	openal.0:${PORTSDIR}/audio/openal \
		alut.1:${PORTSDIR}/audio/freealut \
		sigc-1.2.5:${PORTSDIR}/devel/libsigc++12 \
		CEGUIBase.2:${PORTSDIR}/graphics/cegui \
		png.5:${PORTSDIR}/graphics/png \
		GLEW.1:${PORTSDIR}/graphics/glew

USE_BZIP2=	yes
GNU_CONFIGURE=	yes
USE_GMAKE=	yes
USE_SDL=	sdl
USE_GCC=	4.2+
USE_GL=		yes

CONFIGURE_ARGS=	--with-io-cflags="-I${LOCALBASE}/include/io" \
		--with-io-libs="-L${LOCALBASE}/lib -liovmall"

WRKDATADIR=	${WRKDIR}/TnL-data/share/tnl

SUB_FILES=	tnl

post-patch:
	@${REINPLACE_CMD} -i "" -e 's|getenv|getEnvironmentVariable|' \
		${WRKDATADIR}/scripts/Settings.io

post-install:
	${MKDIR} ${DATADIR}
	cd ${WRKDATADIR} && ${COPYTREE_SHARE} . ${DATADIR}

	${INSTALL_SCRIPT} ${WRKDIR}/tnl ${PREFIX}/bin

.include <bsd.port.mk>
OpenPOWER on IntegriCloud