[23439] trunk/dports/archivers/zlib/Portfile

Elias Pipping pipping at macports.org
Sun Apr 1 06:46:27 PDT 2007


Hi,

I noticed you removed the line

   configure.universal_args ${configure.args}

the line should have read

   configure.universal_args {}

which would still break 1.4 but work as expected when running the trunk.

the reason the line can't simply be removed (doing so broke zlib  
+universal) is that the default universal variant is used, which  
includes CPPFLAGS, LDFLAGS and configure.args (--disable-dependency- 
tracking). Whereas the flags are fine and needed, the configure.args  
are not:

   <snip> ./configure <snip> --disable-dependency-tracking'
   unknown option: --disable-dependency-tracking

so i overwrote them. one way or another that has to be done - only  
way around it would be to override the default universal variant and  
add the flags in there manually, which is a pain. i tried and it  
doesn't work:

variant universal {
     set f "-arch i386 -arch ppc"
     configure.env-append \
     CFLAGS="\${CFLAGS} -isysroot /Developer/SDKs/MacOSX10.4u.sdk $ 
{f}" \
     LDFLAGS="\${LDFLAGS} ${f}"
}

make: *** Recursive variable `CFLAGS' references itself  
(eventually).  Stop.


Regards,

Elias



More information about the macports-dev mailing list