Frotz Makefile:
# Build recipes
#
curses: $(FROTZ_BIN)
ncurses: $(FROTZ_BIN)
$(FROTZ_BIN): $(FROTZ_LIBS)
$(CC) $+ -o $@$(EXTENSION) $(LDFLAGS) $(CURSES_LDFLAGS)
$(CURSES_SOUND_LDFLAGS)
@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
nosound_helper:
$(eval SOUND_TYPE= none)
$(eval NO_SOUND= -DNO_SOUND)
$(eval CURSES_SOUND_LDFLAGS= )
$(eval CURSES_SOUND= disabled)
dumb: $(DFROTZ_BIN)
$(DFROTZ_BIN): $(DFROTZ_LIBS)
$(CC) $+ -o $@$(EXTENSION) $(LDFLAGS)
@echo "** Done building Frotz with dumb interface."
@echo "** Blorb support $(BLORB_SUPPORT)"
x11: $(XFROTZ_BIN)
$(XFROTZ_BIN): $(XFROTZ_LIBS)
$(CC) $+ -o $@$(EXTENSION) $(LDFLAGS) $(X11_LDFLAGS)
@echo "** Done building Frotz with X11 interface."
sdl: $(SFROTZ_BIN)
$(SFROTZ_BIN): $(SFROTZ_LIBS)
$(CC) $+ -o $@$(EXTENSION) $(LDFLAGS) $(SDL_LDFLAGS)
@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 "build.target nosound”
which I’d like to implement as a variant for curses frotz. (see the attached
Portfile)
Portfile
Description: Binary data
Mark Brethen [email protected] > On Jun 27, 2022, at 5:16 PM, Nils Breunese <[email protected]> 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 <[email protected]> het >> volgende geschreven: >> >> Can a subport have variants? >> >> Mark Brethen >> [email protected] >> >> >> >>> On Jun 26, 2022, at 9:03 PM, Mark Brethen <[email protected]> wrote: >>> >>> I’ll do that. It’s been so long that I’ve forgotten how they’re set up. >>> >>> Mark Brethen >>> [email protected] >>> >>> >>> >>>> On Jun 26, 2022, at 8:56 PM, Ryan Schmidt <[email protected]> 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? >>>> >>> >> >
