Revision: 68284 http://trac.macports.org/changeset/68284 Author: snc@macports.org Date: 2010-05-30 18:57:44 -0700 (Sun, 30 May 2010) Log Message: ----------- rearrange only: place code in order port phases Modified Paths: -------------- trunk/dports/science/afni/Portfile Modified: trunk/dports/science/afni/Portfile =================================================================== --- trunk/dports/science/afni/Portfile 2010-05-31 01:51:44 UTC (rev 68283) +++ trunk/dports/science/afni/Portfile 2010-05-31 01:57:44 UTC (rev 68284) @@ -7,7 +7,6 @@ version 2009_12_31_1431 revision 1 distname AFNI_${version} -extract.suffix .tgz categories science maintainers snc openmaintainer description Analysis of Functional Neuro Images @@ -16,22 +15,42 @@ images, especially functional MRI images used in \ brain mapping research. homepage http://afni.nimh.nih.gov/ -master_sites http://afni.nimh.nih.gov/pub/dist/tgz/AFNI_ARCHIVE/ -use_configure no + platforms darwin -depends_lib path:lib/pkgconfig/glib-2.0.pc:glib2 \ +depends_lib path:lib/pkgconfig/glib-2.0.pc:glib2 \ port:glib1 \ port:openmotif -depends_run port:netpbm \ +depends_run port:netpbm \ port:jpeg \ port:whirlgif \ port:endian + +master_sites http://afni.nimh.nih.gov/pub/dist/tgz/AFNI_ARCHIVE/ +extract.suffix .tgz + checksums md5 00959234f2e512cf1b16335d3ab80f1d \ sha1 cfde2df4edd33ae78bcd41ae9226c44f0174c005 \ rmd160 fbe9f7afc5a28fe4fa3bcba1bdc87494ca47ce85 -build.target all plugins +pre-patch { + # use the right makefile + file copy ${worksrcpath}/Makefile.${combination} ${worksrcpath}/Makefile + # replace Fink path with ours + reinplace s|\/sw|${prefix}|g ${worksrcpath}/Makefile + # use the right compiler + reinplace s|cc|${configure.cc}|g ${worksrcpath}/Makefile + # add -ljpeg to llibs + reinplace {s|LLIBS = |LLIBS = -ljpeg |} ${worksrcpath}/Makefile + # separate bin/lib/share for manual destroot + reinplace "s|INSTALLDIR = ${combination}|INSTALLDIR = ${destroot}${prefix}/bin|" ${worksrcpath}/Makefile + reinplace "s|LIBDIR = \$(INSTALLDIR)|LIBDIR = ${destroot}${prefix}/lib|" ${worksrcpath}/Makefile + reinplace "s|shared_objs: \$(INSTALLDIR) libmri.so libmrix.so|shared_objs: \$(LIBDIR) libmri.so libmrix.so|" ${worksrcpath}/Makefile + reinplace "s|MAKE = make|MAKE = make\\\nSHAREDIR = ${destroot}${prefix}/share/${name}|" ${worksrcpath}/Makefile +} +patchfiles patch-Makefile.INCLUDE.diff +use_configure no + if {${os.major} == 10} { set combination macosx_10.6_Intel_64 } @@ -63,24 +82,6 @@ } } - -pre-patch { - # use the right makefile - file copy ${worksrcpath}/Makefile.${combination} ${worksrcpath}/Makefile - # replace Fink path with ours - reinplace s|\/sw|${prefix}|g ${worksrcpath}/Makefile - # use the right compiler - reinplace s|cc|${configure.cc}|g ${worksrcpath}/Makefile - # add -ljpeg to llibs - reinplace {s|LLIBS = |LLIBS = -ljpeg |} ${worksrcpath}/Makefile - # separate bin/lib/share for manual destroot - reinplace "s|INSTALLDIR = ${combination}|INSTALLDIR = ${destroot}${prefix}/bin|" ${worksrcpath}/Makefile - reinplace "s|LIBDIR = \$(INSTALLDIR)|LIBDIR = ${destroot}${prefix}/lib|" ${worksrcpath}/Makefile - reinplace "s|shared_objs: \$(INSTALLDIR) libmri.so libmrix.so|shared_objs: \$(LIBDIR) libmri.so libmrix.so|" ${worksrcpath}/Makefile - reinplace "s|MAKE = make|MAKE = make\\\nSHAREDIR = ${destroot}${prefix}/share/${name}|" ${worksrcpath}/Makefile -} -patchfiles patch-Makefile.INCLUDE.diff - pre-build { # this appears to be Tiger-only, but i'm uncertain (predates me) if { ! [file exists "/usr/X11R6/lib/libGLw.a"] } { @@ -89,9 +90,9 @@ #file copy -force ${distpath}/afni.1 ${workpath} #reinplace "s|%%PREFIX%%|${prefix}|g" ${workpath}/afni.1 } +build.target all plugins destroot.target vastness - post-destroot { # Deal with files that conflict with other ports eval file delete ${destroot}${prefix}/bin/cjpeg ${destroot}${prefix}/bin/djpeg \ @@ -114,6 +115,7 @@ # xinstall -d -m 755 ${destroot}${prefix}/bin # eval xinstall -m 755 [glob ${worksrcpath}/macosx_bin/*] ${destroot}${prefix}/bin } + notes \ "abut has been renamed to afni_abut to resolve a collision with the unixstat port ---
participants (1)
-
snc@macports.org