Aurelien Larcher
2020-06-05 1418b76f4f4a4d79c466f9d9a4c4cce671f8fc34
commit | author | age
4fb383 1 #
JK 2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"). You may
4 # only use this file in accordance with the terms of the CDDL.
5 #
6 # A full copy of the text of the CDDL should have accompanied this
7 # source. A copy of the CDDL is also available via the Internet at
8 # http://www.illumos.org/license/CDDL.
9 #
10
11 #
12 # Copyright 2016 Jim Klimov <jimklimov@gmail.com>
13 #
14
15 include ../../../../make-rules/shared-macros.mk
16
17 COMPONENT_NAME=        opengfx
18 COMPONENT_VERSION=    0.5.2
19 COMPONENT_PROJECT_URL=    http://dev.openttdcoop.org/projects/$(COMPONENT_NAME)
20 COMPONENT_FMRI=        games/openttd/$(COMPONENT_NAME)
21 COMPONENT_SRC=        $(COMPONENT_NAME)-$(COMPONENT_VERSION)
22 COMPONENT_ARCHIVE=    $(COMPONENT_SRC)-all.zip
23 COMPONENT_ARCHIVE_HASH=    \
24     sha256:19be61f1cb04cbb3cb9602f0b8eb6e6f56ecbefbfdd6e0e03f9579e5a5c1cbc8
25 COMPONENT_ARCHIVE_URL=    https://binaries.openttd.org/extra/$(COMPONENT_NAME)/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
26 COMPONENT_SUMMARY=    Opensource graphics set for OpenTTD
27 COMPONENT_CLASSIFICATION="Applications/Games"
28
29 CONFIGURE_DEFAULT_DIRS=no
30 CONFIGURE_PREFIX=/usr
31
32 include $(WS_TOP)/make-rules/prep.mk
33 include $(WS_TOP)/make-rules/ips.mk
34
35 OPENTTD_SHARE_DIR=$(CONFIGURE_PREFIX)/share/openttd
36 PKG_OPTIONS +=    -D OPENTTD_SHARE_DIR="$(OPENTTD_SHARE_DIR)"
37 PKG_OPTIONS +=    -D COMPONENT_SRC="$(COMPONENT_SRC)"
38
39 COMPONENT_POST_UNPACK_ACTION = \
40     ( cd $(COMPONENT_DIR) && tar xf - < $(COMPONENT_SRC).tar )
41
42 build: prep
43 install: build