summaryrefslogtreecommitdiff
path: root/games/openttd/Makefile
blob: 798e0b1b7c1d0e22eae8c60a6fac6f06c54dd329 (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
# $NetBSD: Makefile,v 1.26 2008/04/07 19:44:19 tnn Exp $

DISTNAME=	openttd-0.6.0-source
PKGNAME=	${DISTNAME:S/-source//}
CATEGORIES=	games x11
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=openttd/}

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://www.openttd.com/
COMMENT=	Open source clone of Transport Tycoon Deluxe
EXTRACT_SUFX=	.tar.bz2

PKG_DESTDIR_SUPPORT=	user-destdir

HAS_CONFIGURE=		yes
USE_LANGUAGES+=		c c++
USE_DIRS+=		xdg-1.1
USE_TOOLS+=		gmake pkg-config

CONFIGURE_ARGS+=	--prefix-dir=${DESTDIR}${PREFIX}
CONFIGURE_ARGS+=	--binary-dir=bin
CONFIGURE_ARGS+=	--data-dir=share/openttd

# disable custom assert for Mac OS X (XXX: still needed?)
CFLAGS+=	-DNDEBUG=1

WRKSRC=		${WRKDIR}/${PKGNAME_NOREV}
BUILD_TARGET=	bundle

.include "options.mk"

.include "../../fonts/fontconfig/buildlink3.mk"
.include "../../graphics/freetype2/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../devel/SDL/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"