1
0

Compare commits

...

2 Commits

Author SHA1 Message Date
a261b4edc0 game as submodule for easy instalation and distribution..
*  minetest developers were so stupid or what? why not a simple
 submodule from git? so easy!
* do as:
    * `sed s#.*games/minetest#!games/minetest#g .gitignore`
    * `git add .gitignore && git commit -m "submodule step 1"`
    * `git submodule add -b stable-5.2 https://codeberg.org/minenux/minetest-game-minetest game/minetest`
    * `git add --all && git commit --amend -m "ubmodule step 2`
    * `sed s#.*games/minetest#games/minetest#g .gitignore`
    * `git add --all && git commit --amend -m "ubmodule step 3 final`
* update CI for gitlab to use the submodule and setup the game also
2024-06-05 15:07:21 -04:00
60a4940be8 MAC portage porfile add .. limited tested 2024-06-05 14:55:08 -04:00
5 changed files with 114 additions and 0 deletions

1
.gitignore vendored
View File

@ -41,6 +41,7 @@ build/.cmake/
/bin/
/games/*
!/games/devtest/
!/games/minetest
/cache
/textures/*
!/textures/base/

View File

@ -5,6 +5,11 @@
# packages moved to https://build.opensuse.org/project/show/home:venenux:minenux
# in future we only build here, or made apk packs for alpine
variables:
GIT_SUBMODULE_STRATEGY: recursive
GIT_SUBMODULE_DEPTH: 1
GIT_STRATEGY: clone
stages:
- build

4
.gitmodules vendored Normal file
View File

@ -0,0 +1,4 @@
[submodule "games/minetest"]
path = games/minetest
url = https://codeberg.org/minenux/minetest-game-minetest
branch = stable-5.2

103
Portfile Normal file
View File

@ -0,0 +1,103 @@
# -*- 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
# por file for MAC ports.. currently only tested in older versions of MACOS(X)
PortSystem 1.0
PortGroup github 1.0
PortGroup cmake 1.1
compiler.cxx_standard 2011
compiler.thread_local_storage yes
github.setup multicraft multicraft 2.0.6
revision 1
# the game version could be different from the multicraft version
set game_version 2.0.6
# to add on more files to a github portgroup download
# have to cache the preset distfiles from the github PG
set main_distfile ${distfiles}
# then 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://codeberg.org/minenux/minetest-game-minetest/archive/
distfiles ${main_distfile}:main
master_sites ${github.master_sites}:main
checksums ${main_distfile} \
rmd160 550fd4c6767cce4bb5dd79f9d907b233e21b9b2c \
sha256 8a320b3355381ba7ed4b6a41bfb0f39cb2858eb7bae0f6fc5935b329a53bde56 \
size 10116355
# rename directory - from github portgroup
post-extract {
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}
}
}
license LGPL-2.1+
categories games
platforms darwin
maintainers @mckaygerhard openmaintainer
description Survival Craft Build Sandbox Game STOLEN from MINETEST
long_description ${description} - the multipprotocol version enhanched for play in older or newer servers
homepage https://www.minetest.org
depends_build-append path:bin/doxygen:doxygen \
port:mesa
depends_lib-append port:irrlichtmt \
path:include/turbojpeg.h:libjpeg-turbo \
port:libogg \
port:libvorbis \
port:freetype \
port:gettext \
port:leveldb \
port:sqlite3 \
port:zstd \
path:lib/libluajit-5.1.2.dylib:luajit \
port:gmp \
port:curl \
port:jsoncpp \
port:spatialindex \
port:xorg-libX11 \
port:xorg-libXxf86vm
# see https://trac.macports.org/ticket/58315 - possibly fixable?
universal_variant no
supported_archs x86_64 x86
# 001. the original build calls fixup_bundle to move all the deps into the app bundle.
# this doesn't work correctly with macports destrooting, and isn't necessary for a macports install so deleted it
# patchfiles-append 001-patch-src-CMakeLists-disable-bundlefixup.diff
configure.args-append -DCMAKE_BUILD_TYPE=Release \
-DBUILD_SERVER=ON -DBUILD_CLIENT=ON \
-DENABLE_CURL=ON \
-DENABLE_SOUND=ON \
-DENABLE_LUAJIT=ON \
-DENABLE_GETTEXT=ON \
-DENABLE_FREETYPE=ON \
-DENABLE_SYSTEM_GMP=ON \
-DENABLE_SYSTEM_JSONCPP=ON \
-DCMAKE_VERBOSE_MAKEFILE=ON \
-DCMAKE_BUILD_TYPE=Release \
-DENABLE_POSTGRESQL=ON \
-DENABLE_REDIS=OFF -DCURSES_INCLUDE_PATH:FILEPATH=${prefix}/include \
-DCMAKE_INSTALL_PREFIX:PATH=${applications_dir} \
-DBUILD_UNITTESTS=OFF \
-DENABLE_UPDATE_CHECKER=OFF \
-DENABLE_SPATIAL=ON \
-DINSTALL_DEVTEST=ON \
-DLUA_INCLUDE_DIR:PATH=${prefix}/include/luajit-2.1 \
-DLUA_LIBRARY:FILEPATH=${prefix}/lib/libluajit-5.1.dylib \
-DVERSION_EXTRA=MacPorts-rev${revision}
post-destroot {
move ${workpath}/multicraft_game-${game_version} ${destroot}${applications_dir}/multicraft.app/Contents/Resources/games/multicraft_game
}

1
games/minetest Submodule

@ -0,0 +1 @@
Subproject commit 6dac4d264b5ad50b83499a0927196c935d844885