New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #19445 (closed submission: fixed)

Opened 4 years ago

Last modified 4 years ago

Submission of portfile for fizmo Z-Machine interpreter

Reported by: chrender-macports-1@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.7.1
Keywords: Cc:
Port: fizmo

Description

This is a request to add a portfile for the fizmo Z-Machine interpreter, a console-based app used to play Infocom / Inform text adventures. See http://spellbreaker.org/~chrender/fizmo/ for screenshots and more information.

Attachments

Portfile (1.7 KB) - added by chrender-macports-1@… 4 years ago.
fizmo Portfile

Change History

Changed 4 years ago by chrender-macports-1@…

fizmo Portfile

comment:1 Changed 4 years ago by macsforever2000@…

  • Priority changed from Low to Normal
  • Port set to fizmo

comment:2 Changed 4 years ago by blb@…

Two issues that I ran into:

  • config.macports.mk hardcodes /opt/local, which is not always the right location; the following fixes this
    post-patch {
       reinplace "s|/opt/local|${prefix}|g" ${worksrcpath}/config.macports.mk
    }
    
  • it links against MacPorts' libxml2 but because of the setting for LIBXML2_INC_DIR in config.macports.mk, it uses the includes in /usr/include; this could cause issues, though I'm not positive. Should it just also depend on libxml2 and use that completely?

comment:3 Changed 4 years ago by chrender-macports-1@…

Thanks for looking into the port, and especially for the libxml2 hint. For the current version I think it's best to use the MacPorts libxml2:

post-patch {
   reinplace "s|/opt/local|${prefix}|g" ${worksrcpath}/config.macports.mk
   reinplace "s|/usr/include/libxml2|/opt/local/include/libxml2|g" ${worksrcpath}/config.macports.mk
}

This means that libxml2 would have to be added to the library dependencies:

depends_lib         port:ncursesw \
                    port:libsdl_sound \
                    port:libsndfile \
                    port:libxml2

Regards, Christoph.

comment:4 Changed 4 years ago by blb@…

  • Status changed from new to closed
  • Resolution set to fixed

Added in r50164, thanks; note I changed master_sites to just ${homepage} since they are the same.

comment:5 Changed 4 years ago by jmr@…

  • Type changed from enhancement to submission

comment:6 Changed 4 years ago by anonymous

  • Milestone Port Submissions deleted

Milestone Port Submissions deleted

Note: See TracTickets for help on using tickets.