summaryrefslogtreecommitdiff
path: root/games/openttd/Makefile
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2005-03-30 15:12:48 +0000
committerwiz <wiz@pkgsrc.org>2005-03-30 15:12:48 +0000
commitd851a072f530731504cfad91699ca57897bf54e2 (patch)
treec08009fb088e03140189b35ebb11a3c9972c4818 /games/openttd/Makefile
parent301c3c010767902f1713486149397faa8b2229a6 (diff)
downloadpkgsrc-d851a072f530731504cfad91699ca57897bf54e2.tar.gz
Initial import of openttd-0.3.6, provided by Ian Zagorskih via pkgsrc-wip:
Open source clone of Transport Tycoon Deluxe.
Diffstat (limited to 'games/openttd/Makefile')
-rw-r--r--games/openttd/Makefile45
1 files changed, 45 insertions, 0 deletions
diff --git a/games/openttd/Makefile b/games/openttd/Makefile
new file mode 100644
index 00000000000..fd11c8630e5
--- /dev/null
+++ b/games/openttd/Makefile
@@ -0,0 +1,45 @@
+# $NetBSD: Makefile,v 1.1.1.1 2005/03/30 15:12:48 wiz Exp $
+
+DISTNAME= openttd-0.3.6-source
+PKGNAME= openttd-0.3.6
+CATEGORIES= games x11
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=openttd/}
+
+MAINTAINER= froz@icix.org
+HOMEPAGE= http://www.openttd.com/
+COMMENT= Open source clone of Transport Tycoon Deluxe
+
+USE_BUILDLINK3= yes
+USE_GNU_TOOLS+= make
+USE_X11= yes
+
+DATA_DIR= ${PREFIX}/share/games/openttd
+
+MAKE_ENV+= PREFIX=${PREFIX}
+MAKE_ENV+= INSTALL=1
+MAKE_ENV+= BINARY_DIR=bin
+MAKE_ENV+= DATA_DIR=share/games/openttd
+MAKE_ENV+= USE_HOMEDIR=1
+MAKE_ENV+= PERSONAL_DIR=.openttd
+MAKE_ENV+= WITH_NETWORK=1
+MAKE_ENV+= X11BASE=${X11BASE}
+
+WRKSRC= ${WRKDIR}/${PKGNAME}
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/openttd ${PREFIX}/bin
+ @${INSTALL_DATA_DIR} ${DATA_DIR}
+ @${INSTALL_DATA_DIR} ${DATA_DIR}/lang
+ @${INSTALL_DATA_DIR} ${DATA_DIR}/data
+ @${INSTALL_DATA_DIR} ${DATA_DIR}/docs
+ @${INSTALL_DATA_DIR} ${DATA_DIR}/gm
+ ${INSTALL_DATA} -m 644 ${WRKSRC}/lang/*.lng ${DATA_DIR}/lang
+ ${INSTALL_DATA} -m 644 ${WRKSRC}/data/* ${DATA_DIR}/data
+ ${INSTALL_DATA} -m 644 ${WRKSRC}/readme.txt ${DATA_DIR}/docs
+ ${INSTALL_DATA} -m 644 ${WRKSRC}/changelog.txt ${DATA_DIR}/docs
+ ${INSTALL_DATA} -m 644 ${WRKSRC}/docs/Manual.txt ${DATA_DIR}/docs
+ ${INSTALL_DATA} -m 644 ${WRKSRC}/docs/multiplayer.txt ${DATA_DIR}/docs
+
+.include "../../graphics/png/buildlink3.mk"
+.include "../../devel/SDL/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"