summaryrefslogtreecommitdiff
path: root/games/lordsawar/Makefile
blob: 5d346e8eabecda66c15dfa6d235968006cbea70f (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
# New ports collection makefile for:   lordsawar
# Date created:                 12 February 2008
# Whom:                         spam@rm-rf.kiev.ua
#
# $FreeBSD$
#

PORTNAME=	lordsawar
PORTVERSION=	0.1.9
PORTREVISION=	1
CATEGORIES=	games
MASTER_SITES=	${MASTER_SITE_SAVANNAH}
MASTER_SITE_SUBDIR=	${PORTNAME}

MAINTAINER=	ak@FreeBSD.org
COMMENT=	A Warlords II clone

LIB_DEPENDS=	glademm-2.4:${PORTSDIR}/devel/libglademm24 \
		gnet-2.0:${PORTSDIR}/net/gnet2 \
		uuid.1:${PORTSDIR}/misc/e2fsprogs-libuuid \
		tar.0:${PORTSDIR}/devel/libtar
BUILD_DEPENDS=	bjam:${PORTSDIR}/devel/boost-jam \
		${LOCALBASE}/include/boost/shared_ptr.hpp:${PORTSDIR}/devel/boost-libs

USE_GETTEXT=	yes
USE_GCC=	4.2+
USE_GMAKE=	yes
USE_GNOME=	intltool
USE_SDL=	sdl image
GNU_CONFIGURE=	yes
MAKE_JOBS_SAFE=	yes

LICENSE=	GPLv3

OPTIONS=	SOUND	"Enable sound"	on

.include <bsd.port.options.mk>

CONFIGURE_ARGS+=--disable-nls \
		--with-boost-includedir=${LOCALBASE}/include/

.if !defined(WITHOUT_SOUND)
USE_SDL+=	mixer
.else
CONFIGURE_ARGS+=--disable-sound
.endif

CONFIGURE_ENV+=	LIBS="${PTHREAD_LIBS}"
CPPFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib

.include <bsd.port.mk>