[MacPorts] #55469: snowleopard_fixes portgroup behavior changed, causing some ports to fail to build

MacPorts noreply at macports.org
Tue Dec 5 06:45:07 UTC 2017


#55469: snowleopard_fixes portgroup behavior changed, causing some ports to fail to
build
-------------------------+-------------------
  Reporter:  ryandesign  |      Owner:  kencu
      Type:  defect      |     Status:  new
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:
Resolution:              |   Keywords:
      Port:              |
-------------------------+-------------------

Comment (by kencu):

 How about like this:
 {{{

 options snowleopard_fixes.addheader
 default snowleopard_fixes.addheader {no}

 proc add_libsnowleopardfixes {} {
         depends_lib-append          port:snowleopardfixes
 }

 if {${os.platform} eq "darwin" && ${os.major} < 11} {

     configure.ldflags-append   -lsnowleopardfixes

     if {${snowleopard_fixes.addheader} eq "yes"} {
         configure.cxxflags-append -include
 ${prefix}/include/snowleopardfixes.h
         configure.cflags-append   -include
 ${prefix}/include/snowleopardfixes.h
     }

     # do not force all Portfiles to switch from depends_lib to
 depends_lib-append
     port::register_callback add_libsnowleopardfixes
 }

 }}}

--
Ticket URL: <https://trac.macports.org/ticket/55469#comment:6>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list