[MacPorts] #68136: cross-platform portfiles and shlib extension

MacPorts noreply at macports.org
Thu Sep 7 12:38:30 UTC 2023


#68136: cross-platform portfiles and shlib extension
-------------------------+--------------------
 Reporter:  RJVB         |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  Normal       |  Milestone:
Component:  base         |    Version:
 Keywords:               |       Port:
-------------------------+--------------------
 I notice that more and more port files check the current platform as if
 they're intended to function on other OS families than Darwin.

 Yet as far as I can tell there is no central definition of the platform's
 shared library extension.

 It would be useful to have one, so ports don't have to roll their own.
 Could be a fancy definition like

 {{{
 options shlibext
 default shlibext {[expr {${os.platform} eq "darwin" ? "dylib" : "so"}]}
 }}}

 or a simple variable that gets initialised statically (`set shlibext
 ...`).

-- 
Ticket URL: <https://trac.macports.org/ticket/68136>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list