Ticket #14317: xercesc-static.diff
File xercesc-static.diff, 1.3 KB (added by ryandesign (Ryan Carsten Schmidt), 17 years ago) |
---|
-
files/makestatic.sh.in
1 #!/bin/sh 2 3 make -n XML_LIB_DIR=$XERCESCROOT/lib/dummy | \ 4 grep '@CXX@ .*\.dylib' | \ 5 tr \ \\n | \ 6 grep '\.o$' | \ 7 ( cd ../../obj ; xargs ar rs $XERCESCROOT/lib/libxerces-c.a ) -
Portfile
3 3 PortSystem 1.0 4 4 name xercesc 5 5 version 2.8.0 6 revision 1 6 7 categories textproc 7 8 maintainers chris.ridd@isode.com 8 9 description an XML parser … … 35 36 configure.pre_args-append -c /usr/bin/gcc-4.0 -x /usr/bin/g++-4.0 36 37 } 37 38 39 post-build { 40 xinstall -m 755 -W ${filespath} makestatic.sh.in ${build.dir}/makestatic.sh 41 reinplace s|@CXX@|${configure.cxx}| ${build.dir}/makestatic.sh 42 system "cd ${build.dir} && ${build.env} ./makestatic.sh" 43 } 44 38 45 destroot.env ${configure.env} 39 46 40 47 post-destroot { 48 xinstall ${worksrcpath}/lib/libxerces-c.a ${destroot}${prefix}/lib 49 system "ranlib ${destroot}${prefix}/lib/libxerces-c.a" 50 41 51 xinstall -d -m 755 ${destroot}${prefix}/share/doc 42 52 file copy ${worksrcpath}/doc/html ${destroot}${prefix}/share/doc/${name} 43 53 xinstall -m 644 -W ${worksrcpath} version.incl LICENSE.txt Readme.html \