summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authortnn <tnn@pkgsrc.org>2008-03-04 04:05:30 +0000
committertnn <tnn@pkgsrc.org>2008-03-04 04:05:30 +0000
commit554226c6df49968aa64ffaa76788f92ffe6a7873 (patch)
treec40a66b84b3ab69034eda863d89440987d9ab209 /games
parentb09309eae5a2434f60ccccfe58a74cfae0d424c3 (diff)
downloadpkgsrc-554226c6df49968aa64ffaa76788f92ffe6a7873.tar.gz
Add "ttd-data" option (default off) which installs TTD datafiles along with
the package and makes the package restricted.
Diffstat (limited to 'games')
-rw-r--r--games/openttd/Makefile18
-rw-r--r--games/openttd/PLIST31
-rw-r--r--games/openttd/distinfo86
-rw-r--r--games/openttd/options.mk32
4 files changed, 157 insertions, 10 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"
diff --git a/games/openttd/PLIST b/games/openttd/PLIST
index efb8cdb27b8..1ecb24526ce 100644
--- a/games/openttd/PLIST
+++ b/games/openttd/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.7 2007/10/02 23:05:31 wiz Exp $
+@comment $NetBSD: PLIST,v 1.8 2008/03/04 04:05:30 tnn Exp $
bin/openttd
share/games/openttd/data/2ccmap.grf
share/games/openttd/data/airports.grf
@@ -50,9 +50,36 @@ share/games/openttd/lang/swedish.lng
share/games/openttd/lang/traditional_chinese.lng
share/games/openttd/lang/turkish.lng
share/games/openttd/lang/ukrainian.lng
+${TTD_DATA}share/games/openttd/data/sample.cat
+${TTD_DATA}share/games/openttd/data/trg1r.grf
+${TTD_DATA}share/games/openttd/data/trgcr.grf
+${TTD_DATA}share/games/openttd/data/trghr.grf
+${TTD_DATA}share/games/openttd/data/trgir.grf
+${TTD_DATA}share/games/openttd/data/trgtr.grf
+${TTD_DATA}share/games/openttd/gm/gm_tt00.gm
+${TTD_DATA}share/games/openttd/gm/gm_tt01.gm
+${TTD_DATA}share/games/openttd/gm/gm_tt02.gm
+${TTD_DATA}share/games/openttd/gm/gm_tt03.gm
+${TTD_DATA}share/games/openttd/gm/gm_tt04.gm
+${TTD_DATA}share/games/openttd/gm/gm_tt05.gm
+${TTD_DATA}share/games/openttd/gm/gm_tt06.gm
+${TTD_DATA}share/games/openttd/gm/gm_tt07.gm
+${TTD_DATA}share/games/openttd/gm/gm_tt08.gm
+${TTD_DATA}share/games/openttd/gm/gm_tt09.gm
+${TTD_DATA}share/games/openttd/gm/gm_tt10.gm
+${TTD_DATA}share/games/openttd/gm/gm_tt11.gm
+${TTD_DATA}share/games/openttd/gm/gm_tt12.gm
+${TTD_DATA}share/games/openttd/gm/gm_tt13.gm
+${TTD_DATA}share/games/openttd/gm/gm_tt14.gm
+${TTD_DATA}share/games/openttd/gm/gm_tt15.gm
+${TTD_DATA}share/games/openttd/gm/gm_tt16.gm
+${TTD_DATA}share/games/openttd/gm/gm_tt17.gm
+${TTD_DATA}share/games/openttd/gm/gm_tt18.gm
+${TTD_DATA}share/games/openttd/gm/gm_tt19.gm
+${TTD_DATA}share/games/openttd/gm/gm_tt20.gm
+${TTD_DATA}share/games/openttd/gm/gm_tt21.gm
@dirrm share/games/openttd/lang
@dirrm share/games/openttd/docs
@unexec ${RMDIR} %D/share/games/openttd/data 2>/dev/null || ${TRUE}
-@exec ${MKDIR} %D/share/games/openttd/gm 2>/dev/null || ${TRUE}
@unexec ${RMDIR} %D/share/games/openttd/gm 2>/dev/null || ${TRUE}
@unexec ${RMDIR} %D/share/games/openttd 2>/dev/null || ${TRUE}
diff --git a/games/openttd/distinfo b/games/openttd/distinfo
index ed5a5b0ab2a..1e11f0b9548 100644
--- a/games/openttd/distinfo
+++ b/games/openttd/distinfo
@@ -1,6 +1,90 @@
-$NetBSD: distinfo,v 1.10 2007/10/02 23:05:31 wiz Exp $
+$NetBSD: distinfo,v 1.11 2008/03/04 04:05:30 tnn Exp $
SHA1 (openttd-0.5.3-source.tar.bz2) = ed23b5de67e597b6a96eccca26495369591f1ebc
RMD160 (openttd-0.5.3-source.tar.bz2) = 99a19d648652dd84952dd619c0d4b11c1b8d135d
Size (openttd-0.5.3-source.tar.bz2) = 3043644 bytes
+SHA1 (ttd/gm_tt00.gm) = 79d21ad066867e9d737fb7b2fb1fbec9a7e3ff67
+RMD160 (ttd/gm_tt00.gm) = 682df44d2080f78d26bfc7095b1da4b026c24e31
+Size (ttd/gm_tt00.gm) = 29714 bytes
+SHA1 (ttd/gm_tt01.gm) = d906d160b06f8dbaa4bdfa6f2190c4a0a0093d7e
+RMD160 (ttd/gm_tt01.gm) = 46bbef72f56e8728a6f7fabae39e996a5b816b85
+Size (ttd/gm_tt01.gm) = 50427 bytes
+SHA1 (ttd/gm_tt02.gm) = b4f728a8fc9ac49e824b085f78d20b39f852bc98
+RMD160 (ttd/gm_tt02.gm) = 353b5b7c3f8b938d638acb1aef9cd7b5c76d8bd2
+Size (ttd/gm_tt02.gm) = 46406 bytes
+SHA1 (ttd/gm_tt03.gm) = a6bec83d018087a07e0c567b56bc568588650505
+RMD160 (ttd/gm_tt03.gm) = 0d32ceb716859ab9cc8a6150ee2a9edfdc7b839f
+Size (ttd/gm_tt03.gm) = 60986 bytes
+SHA1 (ttd/gm_tt04.gm) = e664d19d90de99ea7b67c0a83ca523f49186662f
+RMD160 (ttd/gm_tt04.gm) = ae7107811633c54dd9d1b1b08f748e6f8c519bd4
+Size (ttd/gm_tt04.gm) = 62712 bytes
+SHA1 (ttd/gm_tt05.gm) = 0502e045126e78ce3a811ef932b5de32e796105d
+RMD160 (ttd/gm_tt05.gm) = ee6677fe91083a89a654b281e66c113090cbf581
+Size (ttd/gm_tt05.gm) = 62952 bytes
+SHA1 (ttd/gm_tt06.gm) = 45c37a9bda218c19bf46c2143846d7331d17d83c
+RMD160 (ttd/gm_tt06.gm) = b7c45a88dd5d379e074efa8b2eb1661065f3c6e5
+Size (ttd/gm_tt06.gm) = 69089 bytes
+SHA1 (ttd/gm_tt07.gm) = 5c2484faa0ac4f8c87ef20100f1732c212cbfe3a
+RMD160 (ttd/gm_tt07.gm) = 2d398f1dafda8d9b6b8fec8d98fd353845b1f6e1
+Size (ttd/gm_tt07.gm) = 37182 bytes
+SHA1 (ttd/gm_tt08.gm) = e6ad03a452c521a7f685def4aa6b7facf9c6787e
+RMD160 (ttd/gm_tt08.gm) = cba6468fc6fd9a0144dabed4f06049fdd2d98ee6
+Size (ttd/gm_tt08.gm) = 17877 bytes
+SHA1 (ttd/gm_tt09.gm) = 1373c0bcf049706c1a2ff4d3ab0e0957fda06ac5
+RMD160 (ttd/gm_tt09.gm) = 8b3cc19bf26dfc43c090a6f815f5d6c42a875886
+Size (ttd/gm_tt09.gm) = 57940 bytes
+SHA1 (ttd/gm_tt10.gm) = c003252c57d3e114aeeac3bb85a34476b2536146
+RMD160 (ttd/gm_tt10.gm) = 011cf01f448b4b123d53c197daa0205f43c7ff85
+Size (ttd/gm_tt10.gm) = 43530 bytes
+SHA1 (ttd/gm_tt11.gm) = 25c6bc295aa691e832c6916b092254ac22f8964f
+RMD160 (ttd/gm_tt11.gm) = 5e1c54d8fc179b6fd47b04fe5fe47a4502ac0885
+Size (ttd/gm_tt11.gm) = 57439 bytes
+SHA1 (ttd/gm_tt12.gm) = b7a2308258b6b7f8cbe00f08ac0656c9fa986a40
+RMD160 (ttd/gm_tt12.gm) = 7bb3207d99f0c945bb93353b073909b394c1a355
+Size (ttd/gm_tt12.gm) = 40305 bytes
+SHA1 (ttd/gm_tt13.gm) = ea8e7428111f3aba480234a529d85c9523404f88
+RMD160 (ttd/gm_tt13.gm) = 5bd95bd2910937883eb5f8b09d74cfc23f8d1af6
+Size (ttd/gm_tt13.gm) = 35152 bytes
+SHA1 (ttd/gm_tt14.gm) = 3e60a6e6fdb92839e9e6f277b17fd79fa59dd258
+RMD160 (ttd/gm_tt14.gm) = a95ce86fd4e291ad9edbb8ca724db35488bdcc95
+Size (ttd/gm_tt14.gm) = 14751 bytes
+SHA1 (ttd/gm_tt15.gm) = 0139d6735d311e6ddf4719c1869712d1dfb9a797
+RMD160 (ttd/gm_tt15.gm) = 3824d45c46d669c0e544f35279a8a7b2dd580d70
+Size (ttd/gm_tt15.gm) = 60572 bytes
+SHA1 (ttd/gm_tt16.gm) = 75b434d09035251395b7003b0a6ffbfc7be057a9
+RMD160 (ttd/gm_tt16.gm) = fe0be50d44837e8bdf82202e2d86ae3d3c6a8cbd
+Size (ttd/gm_tt16.gm) = 48614 bytes
+SHA1 (ttd/gm_tt17.gm) = f49f08efe80e318fb512f70d5b1843a0cc6448dd
+RMD160 (ttd/gm_tt17.gm) = 100a4c8d799195a1fb0cfcbd6b0e440309529b16
+Size (ttd/gm_tt17.gm) = 43766 bytes
+SHA1 (ttd/gm_tt18.gm) = 826256ccbdb2cac17b03ae22610837096ec71713
+RMD160 (ttd/gm_tt18.gm) = 64f033ce01504a91b002507665e42e13b27624cb
+Size (ttd/gm_tt18.gm) = 52082 bytes
+SHA1 (ttd/gm_tt19.gm) = 02adfff8276798eb24b20802d939c29d80d8fff5
+RMD160 (ttd/gm_tt19.gm) = fadc6a100edd8f6590fd949e73991fbf66a3da9d
+Size (ttd/gm_tt19.gm) = 50279 bytes
+SHA1 (ttd/gm_tt20.gm) = 3130a5818ff751474a40443195bad7b47ad1f232
+RMD160 (ttd/gm_tt20.gm) = 3764e9179cb002790f8d68a9401feaab349907bd
+Size (ttd/gm_tt20.gm) = 64219 bytes
+SHA1 (ttd/gm_tt21.gm) = fc3fdf5ab16a961647966b7701b0e559f45d9095
+RMD160 (ttd/gm_tt21.gm) = 6262f3298a079ac099138ec3e1cbc07cc8dedc35
+Size (ttd/gm_tt21.gm) = 46812 bytes
+SHA1 (ttd/sample.cat) = 57ff8c136db86a5d91a497931b2d6df53e8635b5
+RMD160 (ttd/sample.cat) = e760abc6ee8ff68345d1c5d74215a830f1d83c77
+Size (ttd/sample.cat) = 1608618 bytes
+SHA1 (ttd/trg1r.grf) = 6d385630f7ad8413758bbfe8b4b16b0ed946e7ee
+RMD160 (ttd/trg1r.grf) = 9bd16bb0c02bdb0dc9743215809a2ad8c15cd02a
+Size (ttd/trg1r.grf) = 2426943 bytes
+SHA1 (ttd/trgcr.grf) = 5d1f97c3b82b41bebbd5811b838e129e7714d7a7
+RMD160 (ttd/trgcr.grf) = 2aa6a3cf2aa38adf43aea2577a2a3695bfdba799
+Size (ttd/trgcr.grf) = 267110 bytes
+SHA1 (ttd/trghr.grf) = f01bf6abe7dcfb42f385c28b660b198fdb8d497f
+RMD160 (ttd/trghr.grf) = 83859bb411f7e0806e8756b04858f1f50cdf8ecc
+Size (ttd/trghr.grf) = 410483 bytes
+SHA1 (ttd/trgir.grf) = d31646015cf0238e7752344ac5a882a7713aed79
+RMD160 (ttd/trgir.grf) = e30d76d101868b3b310af4d17c2e5c2e2353a1ed
+Size (ttd/trgir.grf) = 342377 bytes
+SHA1 (ttd/trgtr.grf) = 436d0ff41b3e2e0229960d56a50c68a871077a10
+RMD160 (ttd/trgtr.grf) = a73cb82dd0e18baf5142fa10fa9a90e8f9de1c8c
+Size (ttd/trgtr.grf) = 559392 bytes
SHA1 (patch-aa) = 422ada1f8c68605fa2e759a2911060fdc97b28a6
diff --git a/games/openttd/options.mk b/games/openttd/options.mk
new file mode 100644
index 00000000000..600c8492f51
--- /dev/null
+++ b/games/openttd/options.mk
@@ -0,0 +1,32 @@
+# $NetBSD: options.mk,v 1.1 2008/03/04 04:05:30 tnn Exp $
+
+.include "../../mk/bsd.prefs.mk"
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.openttd
+PKG_SUPPORTED_OPTIONS= ttd-data
+PKG_SUGGESTED_OPTIONS= # empty
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mttd-data)
+PLIST_SUBST+= TTD_DATA=""
+LICENSE= commercial-software
+RESTRICTED= commercial-software
+NO_BIN_ON_CDROM= ${RESTRICTED}
+NO_BIN_ON_FTP= ${RESTRICTED}
+NO_SRC_ON_CDROM= ${RESTRICTED}
+NO_SRC_ON_FTP= ${RESTRICTED}
+
+DATAFILES= sample.cat trg1r.grf trgcr.grf trghr.grf trgir.grf trgtr.grf
+GMFILES= 00 01 02 03 04 05 06 07 08 09 10
+GMFILES+= 11 12 13 14 15 16 17 18 19 20 21
+GMFILES:= ${GMFILES:C/^/gm_tt/g:C/$/.gm/g}
+DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
+ ${DATAFILES:C/^/ttd\//g} ${GMFILES:C/^/ttd\//g}
+
+post-extract:
+ ${RUN} for f in ${DATAFILES} ${GMFILES}; do \
+ cp ${DISTDIR}/ttd/$$f ${WRKDIR}; done
+.else
+PLIST_SUBST+= TTD_DATA="@comment "
+.endif