#
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL"), version 1.0.
# You may only use this file in accordance with the terms of version
# 1.0 of the CDDL.
#
# A full copy of the text of the CDDL should have accompanied this
# source.  A copy of the CDDL is also available via the Internet at
# http://www.illumos.org/license/CDDL.
#

#
# Copyright 2014 Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
# Copyright 2016 Jim Klimov
# Copyright 2018 Harry Liebel <hliebel@gmail.com>
#

# Set version of the grouper same as core game
set name=pkg.fmri value=pkg:/games/openttd@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION)
set name=pkg.summary value="$(COMPONENT_SUMMARY)"
set name=info.classification value="$(COMPONENT_CLASSIFICATION)"
set name=info.upstream-url value="$(COMPONENT_PROJECT_URL)"
set name=org.opensolaris.consolidation value=$(CONSOLIDATION)

license $(COMPONENT_LICENSE_FILE) license='$(COMPONENT_LICENSE)'

# Install the game binaries
depend fmri=games/openttd/openttd-core@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION) type=require

# Preinstall the opensource media files so the game is instantly usable ;)
# NOTE: These media components are built separately, and sources last changed
# a few years ago, so we impose no hard revision (none known in this Makefile)
depend fmri=games/openttd/openmsx type=require
depend fmri=games/openttd/opensfx type=require
depend fmri=games/openttd/opengfx type=require

# Without a MIDI player the music does not work.
depend fmri=multimedia/timidity++ type=require