1 # $NetBSD: Makefile,v 1.34 2010/01/03 12:07:58 obache Exp $
3 DISTNAME= openttd-0.7.2-source
4 PKGNAME= ${DISTNAME:S/-source//}
7 MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=openttd/}
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
16 USE_TOOLS+= gmake pkg-config
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
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
27 .include "../../mk/bsd.prefs.mk"
28 .if (${OPSYS} == "DragonFly")
29 CONFIGURE_ARGS+= --os=FREEBSD
32 # disable custom assert for Mac OS X (XXX: still needed?)
35 WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
39 rm -rf ${FAKEHOMEDIR}/.openttd
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"