Source
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortSystem 1.0
name openttd
categories games
platforms macosx
maintainers {cal @neverpanic} openmaintainer
if {${name} eq ${subport}} {
version 1.7.2
checksums rmd160 b70a88051b06765ba6ce0b35040dab0abf4a2ff5 \
sha256 fe51a0bade8fdf6ce3ec696418ecf75c95783cdcabfd7b204eec5c0bb5d149d4
license GPL-2
description OpenTTD is an open source simulation game based upon Transport Tycoon Deluxe
long_description \
OpenTTD is an open source simulation game based upon the popular Microprose \
game \"Transport Tycoon Deluxe\", written by Chris Sawyer. It attempts to \
mimic the original game as closely as possible while extending it with new \
features.
homepage http://www.openttd.org/en/
master_sites http://binaries.openttd.org/releases/${version}
distfiles openttd-${version}-source.tar.xz
use_xz yes
depends_build port:pkgconfig
depends_lib port:zlib \
port:lzo2 \
port:xz \
port:libpng \
port:freetype \
port:fontconfig \
port:icu \
port:icu-le-hb \
port:icu-lx \
port:libiconv
depends_run port:openttd-opengfx \
port:openttd-opensfx \
port:openttd-openmsx
patchfiles patch-src-fileio-const-char.diff
configure.env-append \
CFLAGS_BUILD="${configure.cflags}" \
CXXFLAGS_BUILD="${configure.cxxflags}" \
LDFLAGS_BUILD="${configure.ldflags}"
configure.args --prefix-dir=${prefix} \
--binary-dir=bin \
--icon-theme-dir=share/icons/hicolor \
--install-dir=${destroot} \
--with-cocoa \
--with-zlib \
--with-liblzma \
--with-liblzo2 \
--with-png \