[MacPorts] #39918: serf1: re-enable universal variant

MacPorts noreply at macports.org
Thu Aug 1 19:21:46 PDT 2013


#39918: serf1: re-enable universal variant
---------------------------+---------------------
  Reporter:  ryandesign@…  |      Owner:  blair@…
      Type:  defect        |     Status:  new
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.2.0
Resolution:                |   Keywords:
      Port:  serf1         |
---------------------------+---------------------

Comment (by leo@…):

 Portfile probably contains a few errors:
 - ARCHFLAGS not required to build serf;
 - CFLAGS is not defined properly;
 - Assembly serf requires LINKFLAGS;
 - serf SConstruct can use environment variables, it requires command-line
 arguments;

 For add build variant universal should fix the Portfile:
 {{{
 variant universal {
     build.args CC=${configure.cc} \
         CFLAGS=[string map {" " ","} "${configure.universal_cflags}"] \
         CPPFLAGS=[string map {" " ","} "${configure.universal_cppflags}"]
 \
         LINKFLAGS=[string map {" " ","} "${configure.universal_ldflags}"]
 }

 build.cmd       ${prefix}/bin/scons
 build.args      CC=${configure.cc} \
                 CFLAGS=[string map {" " ","} "${configure.cflags}"] \
                 CPPFLAGS=[string map {" " ","} "${configure.cppflags}"] \
                 LINKFLAGS=[string map {" " ","} "${configure.ldflags}"]
 }}}
 --
 Sorry for my best English

-- 
Ticket URL: <https://trac.macports.org/ticket/39918#comment:10>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list