Revision
53092
Author
ryandesign@macports.org
Date
2009-06-29 03:59:36 -0700 (Mon, 29 Jun 2009)

Log Message

cdf: don't override build and destroot phases; closes #16437 (maintainer timeout)

Modified Paths

Diff

Modified: trunk/dports/science/cdf/Portfile (53091 => 53092)


--- trunk/dports/science/cdf/Portfile	2009-06-29 06:53:01 UTC (rev 53091)
+++ trunk/dports/science/cdf/Portfile	2009-06-29 10:59:36 UTC (rev 53092)
@@ -49,15 +49,15 @@
 		  reinplace "s|/Developer/SDKs/MacOSX10.4u.sdk/usr/lib|${prefix}/lib|g" Makefile
 		}
 
-build		{
-		  system "make OS=macosx ENV=${cdf_arch} FORTRAN=yes FC=gfortran-mp-4.2 all"
+pre-build	{
+		  build.pre_args OS=macosx ENV=${cdf_arch} FORTRAN=yes FC=gfortran-mp-4.2 ${build.target}
 		}
 
-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	{