diff options
Diffstat (limited to 'games/openttd/options.mk')
-rw-r--r-- | games/openttd/options.mk | 32 |
1 files changed, 32 insertions, 0 deletions
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 |