Ticket #31777: macports.openjade.noclang.universal.diff
File macports.openjade.noclang.universal.diff, 1.3 KB (added by fgp (Florian G. Pflug), 13 years ago) |
---|
-
Portfile
31 31 depends_lib port:opensp 32 32 depends_run port:xmlcatmgr 33 33 34 # XCode 4.2's clang doesn't like openjade, but llvm-gcc-4.2 builds it just fine 35 if {${configure.compiler} == "clang"} { 36 configure.compiler llvm-gcc-4.2 37 } 38 34 39 # xmlcatmgr as installed by MacPorts defaults to using 35 40 # ${prefix}/etc/sgml/catalog (for XML) and ${prefix}/etc/sgml/catalog (for 36 41 # SGML). For historic reasons, openjade expects the catalog to be in … … 60 65 reinplace "s|^#pragma interface||g" ${worksrcpath}/grove/Node.h 61 66 reinplace "s|^#pragma interface||g" ${worksrcpath}/msggen.pl 62 67 reinplace "s|^#pragma interface||g" ${worksrcpath}/spgrove/GroveApp.h 63 reinplace "s|CXX=|CXX=${configure.cxx}|g" ${worksrcpath}/libtool 68 69 # To make universal builds work, libtool needs to pass the required 70 # "-arch ... " flags to gcc/g++. configure, however, doesn't know 71 # that, so we patch the generated libtool script after configure has 72 # run 73 reinplace "s|^CXX=.*$|CXX='${configure.cxx} [get_canonical_archflags]'|g" ${worksrcpath}/libtool 74 reinplace "s|^CC=.*$|CC='${configure.cc} [get_canonical_archflags]'|g" ${worksrcpath}/libtool 64 75 } 65 76 66 77 destroot.target install install-man