summaryrefslogtreecommitdiff
path: root/games/openttd/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'games/openttd/Makefile')
-rw-r--r--games/openttd/Makefile18
1 files changed, 11 insertions, 7 deletions
diff --git a/games/openttd/Makefile b/games/openttd/Makefile
index 32d74730924..db1ef88b299 100644
--- a/games/openttd/Makefile
+++ b/games/openttd/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.24 2007/10/02 23:05:31 wiz Exp $
+# $NetBSD: Makefile,v 1.25 2008/03/04 04:05:30 tnn Exp $
DISTNAME= openttd-0.5.3-source
PKGNAME= openttd-0.5.3
@@ -30,21 +30,25 @@ CFLAGS+= -DNDEBUG=1
WRKSRC= ${WRKDIR}/${DISTNAME:S:-source::}
-INSTALLATION_DIRS= bin
+.include "options.mk"
+
+INSTALLATION_DIRS= bin share/games/openttd/data share/games/openttd/docs \
+ share/games/openttd/lang share/games/openttd/gm
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/openttd ${DESTDIR}${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
+.if !empty(PKG_OPTIONS:Mttd-data)
+ ${RUN} for f in ${DATAFILES}; do \
+ ${INSTALL_DATA} ${WRKDIR}/$$f ${DATA_DIR}/data; done
+ ${RUN} for f in ${GMFILES}; do \
+ ${INSTALL_DATA} ${WRKDIR}/$$f ${DATA_DIR}/gm; done
+.endif
.include "../../fonts/fontconfig/buildlink3.mk"
.include "../../graphics/freetype2/buildlink3.mk"