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