trouble building new libpano portfile
Harry van der Wolf
hvdwolf at gmail.com
Sat Sep 11 13:05:17 PDT 2010
Thanks for your help.
2010/9/11 Rainer Müller <raimue at macports.org>
> On 2010-09-11 17:18 , Bradley Giesbrecht wrote:
> > Replace curly braces with double quotes for reinplace regex.
> >
> > post-configure {
> > if {[variant_isset universal]} {
> > foreach arch ${universal_archs} {
> > reinplace -E "s|-dynamiclib|-dynamiclib -arch ${arch}|" $
> > {worksrcpath}/libtool
> > }
> > } else {
> > reinplace -E "s|-dynamiclib|-dynamiclib -arch $
> > {build_arch}|" ${worksrcpath}/libtool
> > }
> > }
>
> Substituting curly braces with double quotes works.
Thanks.
> It would probably be more appropriate to use
> ${configure.universal_ldflags} and ${configure.ld_archflags}.
>
> Rainer
>
I tried:
if {[variant_isset universal]} {
configure.ldflags-append ${configure.universal_ldflags}
} else {
configure.ldflags-append ${configure.ld_archflags}
}
That doesn't work. Do I use it incorrectly?
Harry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-dev/attachments/20100911/c6c68cec/attachment.html>
More information about the macports-dev
mailing list