Sun Mar 22 16:39:14 2009 UTC ()
Hack it to build on DragonFly.


(hasso)
diff -r1.30 -r1.31 pkgsrc/games/openttd/Makefile

cvs diff -r1.30 -r1.31 pkgsrc/games/openttd/Makefile (expand / switch to unified diff)

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