Frotz build targets

Mark Brethen mark.brethen at
Mon Jun 27 22:40:58 UTC 2022

Frotz Makefile:

# Build recipes
curses: $(FROTZ_BIN)
ncurses: $(FROTZ_BIN)
	@echo "** Done building Frotz with curses interface"
	@echo "** Audio support $(CURSES_SOUND) (type $(SOUND_TYPE))"
	@echo "** Blorb support $(BLORB_SUPPORT)"

nosound: nosound_helper $(FROTZ_BIN) | nosound_helper
	$(eval SOUND_TYPE= none)
	$(eval CURSES_SOUND= disabled)

dumb: $(DFROTZ_BIN)
	$(CC) $+ -o $@$(EXTENSION) $(LDFLAGS)
	@echo "** Done building Frotz with dumb interface."
	@echo "** Blorb support $(BLORB_SUPPORT)"

x11: $(XFROTZ_BIN)
	$(CC) $+ -o $@$(EXTENSION) $(LDFLAGS) $(X11_LDFLAGS)
	@echo "** Done building Frotz with X11 interface."

sdl: $(SFROTZ_BIN)
	@echo "** Done building Frotz with SDL interface."

I’ve created subports for the frotz Portfile, i.e. curses_frotz, dumb_frotz and sdl_frotz. frotz can be compiled without sound using " nosound” which I’d like to implement as a variant for curses frotz. (see the attached Portfile)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Portfile
Type: application/octet-stream
Size: 3612 bytes
Desc: not available
URL: <>
-------------- next part --------------

Mark Brethen
mark.brethen at

> On Jun 27, 2022, at 5:16 PM, Nils Breunese <nils at> wrote:
> I believe variants are global for a port, but Iyou could use conditional logic based on which subport gets installed for a variant. What are you trying to achieve?
> Nils.
>> Op 27 jun. 2022, om 23:35 heeft Mark Brethen <mark.brethen at> het volgende geschreven:
>> Can a subport have variants?
>> Mark Brethen
>> mark.brethen at
>>> On Jun 26, 2022, at 9:03 PM, Mark Brethen <mark.brethen at> wrote:
>>> I’ll do that. It’s been so long that I’ve forgotten how they’re set up.
>>> Mark Brethen
>>> mark.brethen at
>>>> On Jun 26, 2022, at 8:56 PM, Ryan Schmidt <ryandesign at> wrote:
>>>> On Jun 26, 2022, at 17:39, Mark Brethen wrote:
>>>>> Attaching a Portfile that uses variants—downside is you can only install one. Maybe that is sufficient? I couldn’t find any documentation for using subports.
>>>> What would you like to know about subports? Have you looked at any existing portfiles that use subports to see how they work?

More information about the macports-dev mailing list