Page 1 of 1

Audio support in hugo-unix, homebrew tap for macOS

Posted: Wed Feb 20, 2019 6:15 am
by RealNC
I just added full audio support to the CLI interpreter of hugo-unix. If frotz has it, we should to!

It uses the same audio engine as Hugor, so all music and sound formats Hugo games can have are supported. It's disabled by default though, because building it requires development libraries to be available on the system. To make things easier to Mac users, I made hugo-unix installable using homebrew. All you need to do is add the hugo tap with:

Code: Select all

brew tap realnc/hugo
Then you can install hugo-unix with:

Code: Select all

brew install hugo-unix
It will download, build and install everything automatically, just like any other homebrew package. In a default homebrew setup, you should be able to run "hc", "hd" and "he" from anywhere, since /usr/local/bin is already in the system PATH in macOS. Note that the package is called "hugo-unix", not "hugo". There's already a package in homebrew called "hugo" (which is completely unrelated.)

If you don't have homebrew installed, you should. It's awesome. And dead-easy to install. All you need to do is open a terminal (normal user, NOT root) and paste this command in it:

Code: Select all

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Confirm the prompts. For more info, see https://brew.sh.

Re: Audio support in hugo-unix, homebrew tap for macOS

Posted: Wed Feb 20, 2019 6:19 am
by RealNC
Forgot to mention that when installing with homebrew, you get the audio-enabled version of the "he" terp. (Was kind of the whole point, to spare people from having to install the needed sound libraries by hand.)