Josef 'Jeff' Sipek
2017-01-05 fd9f060ca80e0d3c9369d35ff787c5e68457873d
commit | author | age
c7c872 1 #
J'S 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 #
fd9f06 12 # Copyright 2016 Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
4fb383 13 # Copyright 2016 Jim Klimov <jimklimov@gmail.com>
c7c872 14 #
J'S 15
4fb383 16 include ../../../../make-rules/shared-macros.mk
c7c872 17
J'S 18 COMPONENT_NAME=        openttd
fd9f06 19 COMPONENT_VERSION=    1.6.1
c7c872 20 COMPONENT_PROJECT_URL=    http://www.openttd.org/en/
4fb383 21 COMPONENT_FMRI=        games/openttd/openttd-core
c7c872 22 COMPONENT_SRC=        $(COMPONENT_NAME)-$(COMPONENT_VERSION)
4fb383 23 COMPONENT_ARCHIVE=    $(COMPONENT_SRC)-source.tar.xz
c7c872 24 COMPONENT_ARCHIVE_HASH=    \
fd9f06 25     sha256:9b08996e31c3485ef8dedfa1ab65147091593f3f11bd51eb7662ce5ea41363aa
ad7d04 26 COMPONENT_ARCHIVE_URL=    https://binaries.openttd.org/releases/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
c7c872 27 COMPONENT_LICENSE=    GPLv2
J'S 28 COMPONENT_LICENSE_FILE=    $(COMPONENT_NAME).license
29 COMPONENT_SUMMARY=    OpenTTD is an open source simulation game based upon Transport Tycoon Deluxe
ad7d04 30 COMPONENT_CLASSIFICATION="Applications/Games"
c7c872 31
J'S 32 CONFIGURE_DEFAULT_DIRS=no
33
4fb383 34 include $(WS_TOP)/make-rules/prep.mk
JK 35 include $(WS_TOP)/make-rules/configure.mk
36 include $(WS_TOP)/make-rules/ips.mk
c7c872 37
J'S 38 CONFIGURE_OPTIONS += --prefix-dir=$(CONFIGURE_PREFIX)
39 CONFIGURE_OPTIONS += --binary-dir=bin
40 CONFIGURE_OPTIONS += --data-dir=share/openttd
41 CONFIGURE_OPTIONS += --install-dir=$(PROTO_DIR)
42 CONFIGURE_OPTIONS += --disable-strip
43 CONFIGURE_OPTIONS += --without-allegro
44 CONFIGURE_OPTIONS += --with-sdl
45 CONFIGURE_OPTIONS += --with-zlib
46 CONFIGURE_OPTIONS += --with-liblzma
47 CONFIGURE_OPTIONS += --with-liblzo2
48 CONFIGURE_OPTIONS += --with-png
49 CONFIGURE_OPTIONS += --with-freetype
50 CONFIGURE_OPTIONS += --with-fontconfig
51 CONFIGURE_OPTIONS += --without-icu
52 CONFIGURE_OPTIONS += --without-iconv
53 CONFIGURE_OPTIONS += --without-menu-entry
54
55 COMPONENT_BUILD_ARGS += DO_NOT_INSTALL_CHANGE_LOG=1
56 COMPONENT_BUILD_ARGS += DO_NOT_INSTALL_LICENSE=1
57
58 COMPONENT_PRE_CONFIGURE_ACTION=$(CLONEY) $(SOURCE_DIR) $(@D)
59
60 build:        $(BUILD_32)
61
62 install:    $(INSTALL_32)
63
64 test:        $(TEST_32)
65
66 BUILD_PKG_DEPENDENCIES =    $(BUILD_TOOLS)
67
4fb383 68 include $(WS_TOP)/make-rules/depend.mk