summaryrefslogtreecommitdiff
path: root/games/openttd/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'games/openttd/Makefile')
-rw-r--r--games/openttd/Makefile12
1 files changed, 6 insertions, 6 deletions
diff --git a/games/openttd/Makefile b/games/openttd/Makefile
index e58ac87600e..b1881f430be 100644
--- a/games/openttd/Makefile
+++ b/games/openttd/Makefile
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.22 2007/05/06 17:50:21 jdolecek Exp $
+# $NetBSD: Makefile,v 1.23 2007/08/10 23:18:39 tnn Exp $
-DISTNAME= openttd-0.5.1-source
-PKGNAME= openttd-0.5.1
-PKGREVISION= 2
+DISTNAME= openttd-0.5.2-source
+PKGNAME= openttd-0.5.2
CATEGORIES= games x11
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=openttd/}
@@ -11,10 +10,11 @@ HOMEPAGE= http://www.openttd.com/
COMMENT= Open source clone of Transport Tycoon Deluxe
EXTRACT_SUFX= .tar.bz2
+PKG_DESTDIR_SUPPORT= user-destdir
USE_LANGUAGES+= c c++
USE_TOOLS+= gmake pkg-config
-DATA_DIR= ${PREFIX}/share/games/openttd
+DATA_DIR= ${DESTDIR}${PREFIX}/share/games/openttd
MAKE_ENV+= PREFIX=${PREFIX:Q}
MAKE_ENV+= INSTALL=1
@@ -33,7 +33,7 @@ WRKSRC= ${WRKDIR}/${DISTNAME:S:-source::}
INSTALLATION_DIRS= bin
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/openttd ${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/openttd ${DESTDIR}${PREFIX}/bin
${INSTALL_DATA_DIR} ${DATA_DIR}
${INSTALL_DATA_DIR} ${DATA_DIR}/lang
${INSTALL_DATA_DIR} ${DATA_DIR}/data