| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.26 2008/04/07 19:44:19 tnn Exp $ | | 1 | # $NetBSD: Makefile,v 1.27 2008/04/08 23:11:21 tnn Exp $ |
2 | | | 2 | |
3 | DISTNAME= openttd-0.6.0-source | | 3 | DISTNAME= openttd-0.6.0-source |
4 | PKGNAME= ${DISTNAME:S/-source//} | | 4 | PKGNAME= ${DISTNAME:S/-source//} |
5 | CATEGORIES= games x11 | | 5 | CATEGORIES= games x11 |
6 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=openttd/} | | 6 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=openttd/} |
7 | | | 7 | |
8 | MAINTAINER= pkgsrc-users@NetBSD.org | | 8 | MAINTAINER= pkgsrc-users@NetBSD.org |
9 | HOMEPAGE= http://www.openttd.com/ | | 9 | HOMEPAGE= http://www.openttd.com/ |
10 | COMMENT= Open source clone of Transport Tycoon Deluxe | | 10 | COMMENT= Open source clone of Transport Tycoon Deluxe |
11 | EXTRACT_SUFX= .tar.bz2 | | 11 | EXTRACT_SUFX= .tar.bz2 |
12 | | | 12 | |
13 | PKG_DESTDIR_SUPPORT= user-destdir | | 13 | PKG_DESTDIR_SUPPORT= user-destdir |
14 | | | 14 | |
| @@ -17,21 +17,24 @@ USE_LANGUAGES+= c c++ | | | @@ -17,21 +17,24 @@ USE_LANGUAGES+= c c++ |
17 | USE_DIRS+= xdg-1.1 | | 17 | USE_DIRS+= xdg-1.1 |
18 | USE_TOOLS+= gmake pkg-config | | 18 | USE_TOOLS+= gmake pkg-config |
19 | | | 19 | |
20 | CONFIGURE_ARGS+= --prefix-dir=${DESTDIR}${PREFIX} | | 20 | CONFIGURE_ARGS+= --prefix-dir=${DESTDIR}${PREFIX} |
21 | CONFIGURE_ARGS+= --binary-dir=bin | | 21 | CONFIGURE_ARGS+= --binary-dir=bin |
22 | CONFIGURE_ARGS+= --data-dir=share/openttd | | 22 | CONFIGURE_ARGS+= --data-dir=share/openttd |
23 | | | 23 | |
24 | # disable custom assert for Mac OS X (XXX: still needed?) | | 24 | # disable custom assert for Mac OS X (XXX: still needed?) |
25 | CFLAGS+= -DNDEBUG=1 | | 25 | CFLAGS+= -DNDEBUG=1 |
26 | | | 26 | |
27 | WRKSRC= ${WRKDIR}/${PKGNAME_NOREV} | | 27 | WRKSRC= ${WRKDIR}/${PKGNAME_NOREV} |
28 | BUILD_TARGET= bundle | | 28 | BUILD_TARGET= bundle |
29 | | | 29 | |
| | | 30 | post-install: |
| | | 31 | rm -rf ${FAKEHOMEDIR}/.openttd |
| | | 32 | |
30 | .include "options.mk" | | 33 | .include "options.mk" |
31 | | | 34 | |
32 | .include "../../fonts/fontconfig/buildlink3.mk" | | 35 | .include "../../fonts/fontconfig/buildlink3.mk" |
33 | .include "../../graphics/freetype2/buildlink3.mk" | | 36 | .include "../../graphics/freetype2/buildlink3.mk" |
34 | .include "../../graphics/png/buildlink3.mk" | | 37 | .include "../../graphics/png/buildlink3.mk" |
35 | .include "../../devel/SDL/buildlink3.mk" | | 38 | .include "../../devel/SDL/buildlink3.mk" |
36 | .include "../../mk/pthread.buildlink3.mk" | | 39 | .include "../../mk/pthread.buildlink3.mk" |
37 | .include "../../mk/bsd.pkg.mk" | | 40 | .include "../../mk/bsd.pkg.mk" |