Page 13 of 13

Re: [macOS] Neoascetic's nightly builds and others

PostPosted: Thu May 09, 2019 17:29
by acheron
The brew formula was updated with 5.0.1 25 days ago.

Or you can just do
Code: Select all
brew install minetest
, it’s up to you. ;P


Well, what should I say... thank you for the suggestion, but the initial question was

Is there any way to get the current "official release version" 5.0.1 without (and that's the important part of the question) this homebrew-stuff?


Nobody really answered that question, so I guess the answer is just plain "No". But thank you all for your suggestions! Let's see about this macports-stuff on my new machine...

Re: [macOS] Neoascetic's nightly builds and others

PostPosted: Thu May 09, 2019 20:41
by texmex
Sorry, I overlooked the requirements. Why anyone would use macports when homebrew exists is beyond me since it’s basically the same thing, but I won’t judge.

The problem with MT for Mac is that an official release channel doesn’t exist for this platform. But like I said before, why not just download the readymade build from Neoascetic that matches the git commit of 5.0.1 in this case?

Re: [macOS] Neoascetic's nightly builds and others

PostPosted: Fri May 10, 2019 07:22
by snoopy
texmex wrote:Why anyone would use macports when homebrew exists is beyond me since it’s basically the same thing, but I won’t judge.


FOSS starts with "Free" and one should have the liberty of choice.

MacPorts and Homebrew as well as Fink are similar efforts and are optionial. One may consider MacPorts vs Homebrew or other discussions before chosing just either of these or none.

Re: [macOS] Neoascetic's nightly builds and others

PostPosted: Fri May 10, 2019 07:43
by snoopy
texmex wrote:The problem with MT for Mac is that an official release channel doesn’t exist for this platform. But like I said before, why not just download the readymade build from Neoascetic that matches the git commit of 5.0.1 in this case?


@texmex: Please, could you just provide a link for the download as mentioned by you?

IMHO the a.m. git commit of 5.0.1 in this case may not be easily found. A brief scan of the builds from Neoascetic only gave 5.1.0-dev variants around 2019-03-31 but I would be happy to be proven wrong.

Re: [macOS] Neoascetic's nightly builds and others

PostPosted: Sat May 11, 2019 13:18
by cainram
I second this emotion. I keep my Macs as stock as possible and don't want to install any of these platforms. I just want to find the stable compiled .app file for 5.0.1. I don't know why this has been this way for so long. The Devs do really wonderful work and I LOVE Minetest. I'm spinning up an ubuntu server right now to replace my old instance and I need new clients for my daughters' computers. Can someone make this happen and post a link here? My kids and I thank you in advance.

Re: [macOS] Neoascetic's nightly builds and others

PostPosted: Sat May 11, 2019 21:32
by texmex
cainram wrote:I second this emotion. I keep my Macs as stock as possible and don't want to install any of these platforms. I just want to find the stable compiled .app file for 5.0.1. I don't know why this has been this way for so long. The Devs do really wonderful work and I LOVE Minetest. I'm spinning up an ubuntu server right now to replace my old instance and I need new clients for my daughters' computers. Can someone make this happen and post a link here? My kids and I thank you in advance.


There's really no reason for MT devs not to provide official builds already since neoascetic has shown how to automate it (without Apple hardware at hand).

Here you go, the official Homebrew 5.0.1 version for direct download:

Re: [macOS] Neoascetic's nightly builds and others

PostPosted: Sun May 12, 2019 12:23
by acheron
texmex, thank you so much! Awesome!

Re: [macOS] Neoascetic's nightly builds and others

PostPosted: Sat Aug 03, 2019 12:10
by cainram
AWESOME. Thank you

Re: [macOS] Neoascetic's nightly builds and others

PostPosted: Sat Oct 19, 2019 21:08
by gsbhasin123
What bout MT 5.1.0? We got 5.0.1, now 5.1.0...

Re: [macOS] Neoascetic's nightly builds and others

PostPosted: Mon Oct 21, 2019 01:22
by Zen
Might take a while. I'm getting errors with 5.0.1 building. So 5.1.0 will have to wait.

When I type: brew install minetest --build-from-source

I get an error message.

Code: Select all
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:325:9: error: no member named 'isunordered' in the global namespace
using ::isunordered;
      ~~^
13 errors generated.

Re: [macOS] Neoascetic's nightly builds and others

PostPosted: Mon Oct 21, 2019 09:59
by texmex
Zen wrote:Might take a while. I'm getting errors with 5.0.1 building. So 5.1.0 will have to wait.

When I type: brew install minetest --build-from-source

I get an error message.

Code: Select all
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:325:9: error: no member named 'isunordered' in the global namespace
using ::isunordered;
      ~~^
13 errors generated.

Looks like you’re having Xcode issues.

Re: [macOS] Neoascetic's nightly builds and others

PostPosted: Tue Oct 22, 2019 00:05
by Zen
I found a thread on the subject at the Cmake message boards, 19845.
But when I tried installing a previous version of Cmake on brew, it didn't work.
Got the same global namespace errors while compiling.

So I'm out.

Here's the untested 5.1.0 version of minetest.rb for the Formula folder.

Code: Select all
class Minetest < Formula
  desc "Free, open source voxel game engine and game"
  homepage "https://www.minetest.net/"

  stable do
    url "https://github.com/minetest/minetest/archive/5.1.0.tar.gz"
    sha256 "ca53975eecf6a39383040658f41d697c8d7f8d5fe9176460f564979c73b53906"

    resource "minetest_game" do
      url "https://github.com/minetest/minetest_game/archive/5.1.0.tar.gz"
      sha256 "f165fac0081bf4797cf9094282cc25034b2347b3ea94e6bb8d9329c5ee63f41b"
    end
  end

  bottle do
    sha256 "21668f152c915c3376690da7c99f4efddaf8dfb138c550322b40789d4a50173b" => :mojave
    sha256 "4d05b170855c4215a39ba37e520f4f338de88e6bef724ac7201683272f4c7fdf" => :high_sierra
    sha256 "5122d65cef9f5f63b3511f627e25408cadf8f0158c119262413a9e8b8666ddc5" => :sierra
  end

  head do
    url "https://github.com/minetest/minetest.git"

    resource "minetest_game" do
      url "https://github.com/minetest/minetest_game.git", :branch => "master"
    end
  end

  depends_on "cmake" => :build
  depends_on "freetype"
  depends_on "gettext"
  depends_on "hiredis"
  depends_on "irrlicht"
  depends_on "jpeg"
  depends_on "leveldb"
  depends_on "libogg"
  depends_on "libvorbis"
  depends_on "luajit"
  depends_on "postgresql"
  depends_on "spatialindex"
  depends_on :x11

  def install
    (buildpath/"games/minetest_game").install resource("minetest_game")

    args = std_cmake_args - %w[-DCMAKE_BUILD_TYPE=None]
    args << "-DCMAKE_BUILD_TYPE=Release" << "-DBUILD_CLIENT=1" << "-DBUILD_SERVER=0"
    args << "-DENABLE_FREETYPE=1" << "-DCMAKE_EXE_LINKER_FLAGS='-L#{Formula["freetype"].opt_lib}'"
    args << "-DENABLE_GETTEXT=1" << "-DCUSTOM_GETTEXT_PATH=#{Formula["gettext"].opt_prefix}"

    system "cmake", ".", *args
    system "make", "package"
    system "unzip", "minetest-*-osx.zip"
    prefix.install "minetest.app"
  end

  def caveats
    <<~EOS
      Put additional subgames and mods into "games" and "mods" folders under
      "~/Library/Application Support/minetest/", respectively (you may have
      to create those folders first).

      If you would like to start the Minetest server from a terminal, run
      "/Applications/minetest.app/Contents/MacOS/minetest --server".
    EOS
  end

  test do
    #
    # --help and --version produce output directly.
    # --speedtests and --videomodes need user data directory in order to work.
    # --info and --trace need user data directory and will actually run the game.
    #
    # --run-unittests does not work for Homebrew.
    #
    # Debug File: all test information should wind up in here.
    #
    (testpath/"Library/Application Support/minetest/debug.txt").write("")
    system "#{prefix}/minetest.app/Contents/MacOS/minetest", "--speedtests"
  end
end
 


If you want to try brewing at home, make sure you have XQuartz installed.
Hint: Open the package to install by double clicking on it.

Hit go in the Finder menu and select Go To Folder and type in:

/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/minetest.rb

Replace the text inside the file, save, and then open the Terminal and enter:

brew upgrade minetest --build-from-source

Can guarantee it will work though.

Re: [macOS] Neoascetic's nightly builds and others

PostPosted: Fri Oct 25, 2019 02:20
by gsbhasin123
Hmm... Just actually build from source lol

Re: [macOS] Neoascetic's nightly builds and others

PostPosted: Fri Oct 25, 2019 18:19
by warpnarget
the version on homebrew is 5.01 but 5.10 has been out a while

Re: [macOS] Neoascetic's nightly builds and others

PostPosted: Fri Nov 01, 2019 05:28
by Zen
Yes. Compiling with a lower version of CMake and fixing the S64 incompatibility bug works.
But you cannot patch up Home-brew. Not sure how to import into Xcode yet. Here's the file:

Minetest 5.1.0.dmg

P. S. Not sure what versions of MacOs it works on.

Re: [macOS] Neoascetic's nightly builds and others

PostPosted: Fri Nov 01, 2019 12:17
by texmex
The bug is already fixed, just compile with brew install minetest --HEAD.

Re: [macOS] Neoascetic's nightly builds and others

PostPosted: Wed Nov 06, 2019 13:19
by iquoth
Apologies if this has been asked before.

I would like to install minetest 5.1.0 on macOS from homebrew, but I don't know how to do any of this technical stuff.

Could someone give a step-by-step guide on how to install a specific (newer) version of the minetest formula from brew?

What I think would be most helpful is a "how to update the minetest formula for noobs"-guide, with this, anyone could help keeping the formula up-to-date.

Alternatively, is there a way to do
Code: Select all
$ brew install minetest --tag=5.1.0

where the tag value is any version without binaries that brew thinks is newer than the latest version with binaries?

Thank you for your help

Re: [macOS] Neoascetic's nightly builds and others

PostPosted: Mon Dec 02, 2019 13:44
by warpnarget
Hey, is there a way to make minetest work better with retina displays? i have to get really close to signs or use binoculars in order to read them.