# -*- 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
PortGroup           cmake 1.1
PortGroup           github 1.0

github.setup        minetest irrlicht 1.9.0mt10
revision            0
name                irrlichtmt
categories          devel
license             zlib
maintainers         {l2dy @l2dy} openmaintainer
description         a fork of Irrlicht by the Minetest developers
long_description    IrrlichtMt is {*}${description}.

checksums           rmd160  6db61dc31d867c37fd9d34e4f7ac72195ab7e637 \
                    sha256  73cebbd35390a3fd703bd0112e27d908aab56e3f44f3c1fad5e477a47d77aac6 \
                    size    898859
github.tarball_from tarball

depends_lib         path:include/turbojpeg.h:libjpeg-turbo \
                    port:libpng \
                    port:mesa \
                    port:zlib

patch.dir           ${worksrcpath}/source/Irrlicht

# https://trac.macports.org/ticket/66439
patchfiles-append   patch-COpenGLDriver.cpp.diff \
                    patch-CIrrDeviceOSX.h.diff \
                    patch-CIrrDeviceOSX.mm.diff

# https://trac.macports.org/ticket/72845
compiler.cxx_standard   2011
