# -*- 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
PortGroup conflicts_build 1.0
compiler.cxx_standard 2011
# required thread_local storage
compiler.thread_local_storage yes
github.setup minetest minetest 5.0.1
# new wrinkle -- the game version can be different than the minetest version
# (although it will most often be the same)
# have to do some shenanigans to add on more files to a github portgroup download
# cache the preset distfiles delivered by the github PG
set main_distfile ${distfiles}
# add another distfile, with a direct URL as can't use the github PG again
set game_distfile ${game_version}${extract.suffix}
set game_mastersite https://github.com/minetest/minetest_game/archive/
distfiles ${main_distfile}:main \
master_sites ${github.master_sites}:main \
checksums ${main_distfile} \
rmd160 01984b592d7ae5a834257488cb3fdbd30aa94d2d \
sha256 a49669f1c141ad2aeaf040833186bca8124d064b6b63ce9382b948f4d61eab8a \
rmd160 94b2763a7e2c2a162866cb545c6746d79dfdd39c \
sha256 965d2cf3ac8c822bc9e60fb8f508182fb2f24dde46f46b000caf225ebe2ec519 \
# rename directory - had to steal this out of the github portgroup
if {[file exists [glob -nocomplain ${workpath}/${github.author}-${github.project}-*]] && \
[file isdirectory [glob -nocomplain ${workpath}/${github.author}-${github.project}-*]]} {
move [glob ${workpath}/${github.author}-${github.project}-*] ${workpath}/${distname}
description open source infinite-world block sandbox game with survival and crafting
long_description ${description}.
depends_build-append port:doxygen
depends_lib-append port:irrlicht \