Ticket #14317: xercesc-static.diff

File xercesc-static.diff, 1.3 KB (added by ryandesign (Ryan Carsten Schmidt), 17 years ago)

This seems to work

  • files/makestatic.sh.in

     
     1#!/bin/sh
     2
     3make -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

     
    33PortSystem 1.0
    44name                    xercesc
    55version                 2.8.0
     6revision                1
    67categories              textproc
    78maintainers             chris.ridd@isode.com
    89description             an XML parser
     
    3536        configure.pre_args-append       -c /usr/bin/gcc-4.0 -x /usr/bin/g++-4.0
    3637}
    3738
     39post-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
    3845destroot.env            ${configure.env}
    3946
    4047post-destroot   {
     48        xinstall ${worksrcpath}/lib/libxerces-c.a ${destroot}${prefix}/lib
     49        system "ranlib ${destroot}${prefix}/lib/libxerces-c.a"
     50       
    4151        xinstall -d -m 755 ${destroot}${prefix}/share/doc
    4252        file copy ${worksrcpath}/doc/html ${destroot}${prefix}/share/doc/${name}
    4353        xinstall -m 644 -W ${worksrcpath} version.incl LICENSE.txt Readme.html \