Ticket #16437: cdf-destroot.diff

File cdf-destroot.diff, 722 bytes (added by ryandesign (Ryan Carsten Schmidt), 16 years ago)
  • Portfile

     
    5353                  system "make OS=macosx ENV=${cdf_arch} FORTRAN=yes FC=gfortran-mp-4.2 all"
    5454                }
    5555
    56 destroot        {
     56destroot.destdir INSTALLDIR=${destroot}${prefix}
     57pre-destroot    {
    5758                  reinplace "s|(INSTALLDIR)/bin/definitions.B|/${prefix}/bin/definitions.B|" ${worksrcpath}/Makefile
    5859                  reinplace "s|(INSTALLDIR)/bin/definitions.C|/${prefix}/bin/definitions.C|" ${worksrcpath}/Makefile
    5960                  reinplace "s|(INSTALLDIR)/bin/definitions.K|/${prefix}/bin/definitions.K|" ${worksrcpath}/Makefile
    60                   system "make INSTALLDIR=${destroot}${prefix} install"
    6161                }
    6262
    6363post-destroot   {