Index: Portfile
===================================================================
--- Portfile	(revision 39720)
+++ Portfile	(working copy)
@@ -53,11 +53,11 @@
 		  system "make OS=macosx ENV=${cdf_arch} FORTRAN=yes FC=gfortran-mp-4.2 all"
 		}
 
-destroot	{
+destroot.destdir INSTALLDIR=${destroot}${prefix}
+pre-destroot	{
 		  reinplace "s|(INSTALLDIR)/bin/definitions.B|/${prefix}/bin/definitions.B|" ${worksrcpath}/Makefile
 		  reinplace "s|(INSTALLDIR)/bin/definitions.C|/${prefix}/bin/definitions.C|" ${worksrcpath}/Makefile
 		  reinplace "s|(INSTALLDIR)/bin/definitions.K|/${prefix}/bin/definitions.K|" ${worksrcpath}/Makefile
-		  system "make INSTALLDIR=${destroot}${prefix} install"
 		}
 
 post-destroot	{

