pkgsrc - initial commit
[pkgsrc.git] / games / openttd / Makefile
1 # $NetBSD: Makefile,v 1.32 2009/07/22 09:01:29 wiz Exp $
2
3 DISTNAME=       openttd-0.6.3-source
4 PKGNAME=        ${DISTNAME:S/-source//}
5 CATEGORIES=     games x11
6 MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE:=openttd/}
7
8 MAINTAINER=     pkgsrc-users@NetBSD.org
9 HOMEPAGE=       http://www.openttd.com/
10 COMMENT=        Open source clone of Transport Tycoon Deluxe
11 EXTRACT_SUFX=   .tar.bz2
12
13 HAS_CONFIGURE=          yes
14 USE_LANGUAGES+=         c c++
15 USE_TOOLS+=             gmake pkg-config
16
17 # Setting the below results in binaries looking in ${DESTDIR} for datafiles
18 # CONFIGURE_ARGS+=      --prefix-dir=${DESTDIR}${PREFIX}
19 # PKG_DESTDIR_SUPPORT=  user-destdir
20
21 CONFIGURE_ARGS+=        --prefix-dir=${PREFIX}
22 CONFIGURE_ARGS+=        --binary-dir=bin
23 CONFIGURE_ARGS+=        --data-dir=share/openttd
24 CONFIGURE_ARGS+=        --man-dir=${PKGMANDIR}/man6
25
26 .include "../../mk/bsd.prefs.mk"
27 .if (${OPSYS} == "DragonFly")
28 CONFIGURE_ARGS+=        --os=FREEBSD
29 .endif
30
31 # disable custom assert for Mac OS X (XXX: still needed?)
32 CFLAGS+=        -DNDEBUG=1
33
34 WRKSRC=         ${WRKDIR}/${PKGNAME_NOREV}
35 BUILD_TARGET=   bundle
36
37 post-install:
38         rm -rf ${FAKEHOMEDIR}/.openttd
39
40 .include "options.mk"
41
42 .include "../../fonts/fontconfig/buildlink3.mk"
43 .include "../../graphics/freetype2/buildlink3.mk"
44 .include "../../graphics/png/buildlink3.mk"
45 .include "../../devel/SDL/buildlink3.mk"
46 .include "../../mk/pthread.buildlink3.mk"
47 .include "../../mk/bsd.pkg.mk"