[19620] trunk/dports/science/afni

source_changes at macosforge.org source_changes at macosforge.org
Sun Sep 17 20:16:18 PDT 2006


Revision: 19620
Author:   ben at macports.org
Date:     2006-09-17 20:16:14 -0700 (Sun, 17 Sep 2006)

Log Message:
-----------
Updated port from Jason Bacon <bacon at smithers.neuro.mcw.edu>
Thanks Jason!

Modified Paths:
--------------
    trunk/dports/science/afni/Portfile

Added Paths:
-----------
    trunk/dports/science/afni/files/
    trunk/dports/science/afni/files/Makefile.macosx_Intel_darwinports
    trunk/dports/science/afni/files/Makefile.macosx_PowerPC_darwinports

Modified: trunk/dports/science/afni/Portfile
===================================================================
--- trunk/dports/science/afni/Portfile	2006-09-18 00:30:41 UTC (rev 19619)
+++ trunk/dports/science/afni/Portfile	2006-09-18 03:16:14 UTC (rev 19620)
@@ -1,51 +1,94 @@
-# $Id: Portfile,v 1.1 2005/08/01 06:22:56 ben Exp $
+# $Id: $
+PortSystem	1.0
+name		afni
+version		2006.06.30.1332
+distfiles	afni_src.tgz afni_doc.tgz afni.1 \
+                TTatlas+tlrc.BRIK.gz TTatlas+tlrc.HEAD CA_EZ_v1.3c-May0806.tgz \
+		openMotif-2.2.3.tar.gz
+categories	science
+maintainers	bacon at smithers.neuro.mcw.edu
+description	Analysis of Functional Neuro Images
+long_description	This is a port of AFNI, Advanced Functional Neuro Imaging.  AFNI is a tool for analyzing 3 dimensional images, especially functional MRI images used in brain mapping research.
+homepage	http://afni.nimh.nih.gov/
+master_sites	http://www.neuro.mcw.edu/~bacon/Ports/distfiles/AFNI/${version}/
+checksums	afni_src.tgz md5 3b496d379b62c57e2d27a1554da5cf29 \
+		afni_doc.tgz md5 3b085de85fc46908652ae287d1cceb38 \
+		afni.1 md5 7678276880116dcab3324dbf43d0ebf6 \
+		TTatlas+tlrc.BRIK.gz md5 f5a107b049bc426af5342565f4e5beee \
+		TTatlas+tlrc.HEAD md5 a0ca787a2996d7e66548176808503ac5 \
+		CA_EZ_v1.3c-May0806.tgz md5 dbb2caab5c030c505b306e1526d19150 \
+		openMotif-2.2.3.tar.gz md5 94c96a0f94ee0d5e41d3dba2188b263d
+extract.only	afni_src.tgz afni_doc.tgz CA_EZ_v1.3c-May0806.tgz \
+		openMotif-2.2.3.tar.gz
+use_configure	no
+depends_lib	port:glib2
+depends_run	port:netpbm \
+		port:jpeg \
+		port:whirlgif
+build.dir	${workpath}/afni_src
+build.target	vastness
 
-PortSystem       1.0
-name             afni
-version          20050731
-categories       science
-maintainers      ben at opendarwin.org
-description      AFNI MRI data analysis
-long_description AFNI is a set of C programs for processing, analyzing, \
-                 and displaying functional MRI (FMRI) data - a technique \
-                 for mapping human brain activity.
-homepage         http://afni.nimh.nih.gov
-platforms        darwin
-master_sites     http://www.opendarwin.org/~ben/
-distfiles        afni_src.tgz
-checksums        md5 56dc5285e00fd64a2454ffd43c854a46
-depends_lib      port:glib2 \
-                 port:openmotif
-set worksrcdir   afni_src
-
-platform darwin 7 {
+platform powerpc {
 post-patch      {
-                cd ${worksrcpath}
-                file copy Makefile.macosx_10.3_darwinports Makefile
-                reinplace "s|./macosx_10.3_darwinports|./macosx_bin|g" Makefile
+		cd ${workpath}/afni_src
+                file copy ${filespath}/Makefile.macosx_PowerPC_darwinports \
+			Makefile
+		reinplace "s|openMotif-2.2.3|${workpath}/openMotif-2.2.3|g" ${workpath}/afni_src/Makefile
 }
 }
 
-platform darwin 8 {
+platform i386 {
 post-patch      {
-                cd ${worksrcpath}
-                file copy Makefile.macosx_10.4 Makefile
-                reinplace "s|/sw/|${prefix}/|g" Makefile
-                reinplace "s|./macosx_10.4|./macosx_bin|g" Makefile
+		cd ${workpath}/afni_src
+                file copy ${filespath}/Makefile.macosx_Intel_darwinports \
+			Makefile
+		reinplace "s|openMotif-2.2.3|${workpath}/openMotif-2.2.3|g" ${workpath}/afni_src/Makefile
 }
 }
 
-use_configure   no
+pre-build	{
+		cd ${workpath}/openMotif-2.2.3
+		system "./configure --disable-shared --enable-static --disable-demos"
+		system "make"
+		}
 
-build.target    all install
+destroot {
+# First, separate files that were all dumped into macosx_bin by the Makefile
+		cd ${workpath}/afni_src
+		file mkdir macosx_lib
+		eval file rename [glob macosx_bin/*.a] macosx_lib
+		eval file rename [glob macosx_bin/*.so] macosx_lib
+		file mkdir macosx_include
+		eval file rename [glob macosx_bin/*.h] macosx_include
+		file mkdir macosx_share
+		eval file rename [glob macosx_bin/*.jpg] macosx_share
+		eval file rename [glob macosx_bin/*.txt] macosx_share
 
-destroot {
-                cd ${worksrcpath}
-                file mkdir macosx_lib
-                eval file rename [glob macosx_bin/*.a] macosx_lib
-                xinstall -d -m 755 ${destroot}${prefix}/bin/afni
-                eval xinstall -m 755 [glob macosx_bin/*] ${destroot}${prefix}/bin/afni
-                eval xinstall -m 644 [glob macosx_lib/*] ${destroot}${prefix}/lib
-                xinstall -d -m 755 ${destroot}${prefix}/share/doc/afni
-                eval xinstall -m 444 [glob README.*] ${destroot}${prefix}/share/doc/afni
+# Delete files that conflict with other ports
+		eval file delete macosx_bin/cjpeg macosx_bin/djpeg \
+			macosx_bin/whirlgif
+
+# Install binaries and scripts
+		xinstall -d -m 755 ${destroot}${prefix}/bin
+		eval xinstall -m 755 [glob macosx_bin/*] ${destroot}${prefix}/bin
+# Install libraries and plugins
+		xinstall -d -m 755 ${destroot}${prefix}/lib/afni
+		eval xinstall -m 644 [glob macosx_lib/*] ${destroot}${prefix}/lib/afni
+# Install headers
+		xinstall -d -m 755 ${destroot}${prefix}/include/afni
+		eval xinstall -m 644 [glob macosx_include/*] ${destroot}${prefix}/include/afni
+
+# Install miscellaneous files
+		xinstall -d -m 755 ${destroot}${prefix}/share/afni
+		eval xinstall -m 644 [glob macosx_share/*] ${destroot}${prefix}/share/afni
+		eval xinstall -m 644 [glob ${distpath}/TTatlas*] ${destroot}${prefix}/share/afni
+		cd ${workpath}
+		eval xinstall -m 644 [glob CA_EZ_v1.3c-May0806/*] ${destroot}${prefix}/share/afni
+
+# Install docs
+		xinstall -d -m 755 ${destroot}${prefix}/share/doc/afni
+		eval xinstall -m 644 [glob afni_doc/*] ${destroot}${prefix}/share/doc/afni
+		xinstall -d -m 755 ${destroot}${prefix}/man/man1
+		eval xinstall -m 644 ${distpath}/afni.1 ${destroot}${prefix}/man/man1
+		reinplace "s|%%PREFIX%%|${prefix}|g" ${destroot}${prefix}/man/man1/afni.1
 }

Added: trunk/dports/science/afni/files/Makefile.macosx_Intel_darwinports
===================================================================
--- trunk/dports/science/afni/files/Makefile.macosx_Intel_darwinports	                        (rev 0)
+++ trunk/dports/science/afni/files/Makefile.macosx_Intel_darwinports	2006-09-18 03:16:14 UTC (rev 19620)
@@ -0,0 +1,77 @@
+# This Makefile is for Mac OSX 10.3, Intel CPU with darwinports glib.
+# Contributed by Jason W. Bacon, Medical College of Wisconsin.
+# Do NOT use "cc -fast", since that produces incorrect code for 3dDeconvolve!
+# The options below are supposed to be equivalent to "-fast".
+
+USE_ZLIB = -DHAVE_ZLIB
+LZLIB    = -lz
+
+CC_Intel  = -march=pentium-m -mtune=prescott
+
+CCDEBS = -DAFNI_DEBUG -DIMSEQ_DEBUG -DDISPLAY_DEBUG -DTHD_DEBUG
+CEXTRA = -Wcomment -Wformat -DUSE_TRACING -DHAVE_XDBE -no-cpp-precomp \
+	-DDONT_USE_MCW_MALLOC
+CCFAST = cc $(CC_Intel) -DDARWIN  $(CEXTRA) -O3
+CCVOL  = cc $(CC_Intel) -DDARWIN  $(CEXTRA) -O2
+CC     = cc $(CC_Intel) -DDARWIN  $(CEXTRA) -O
+CCMIN  = cc
+CCD    = $(CC) $(CCDEBS)
+
+IFLAGS = -I. -I/usr/X11R6/include -IopenMotif-2.2.3/lib/Xm -I/opt/local/include
+LFLAGS = -L. -L/usr/X11R6/lib -Wl,-force_flat_namespace -L/opt/local/lib
+
+CCSVD  = $(CCFAST)
+
+PLUGIN_SUFFIX = so
+PLUGIN_LFLAGS = -flat_namespace -bundle -undefined suppress
+PLUGIN_CC     = $(CC) -dynamic -fno-common
+PLFLAGS       = -dynamic -L. -L/usr/X11R6/lib -Wl,-force_flat_namespace -L/opt/local/lib
+
+SPECIAL = -faltivec -framework Accelerate -DUSE_ALTIVEC
+
+AR     = /usr/bin/ar
+RANLIB = /usr/bin/ranlib
+TAR    = /usr/bin/tar
+MKDIR  = /bin/mkdir
+GZIP   = /usr/bin/gzip
+LD     = cc
+
+RM = /bin/rm -f
+MV = /bin/mv -f
+CP = /bin/cp -f
+
+LINT = /usr/bin/lint -a -b -u -v -x $(IFLAGS) $(CCDEFS)
+
+INSTALLDIR = ./macosx_bin
+LIBDIR = $(INSTALLDIR)
+
+INSTALL_PREREQ = suma
+
+LIBDL = libdl.a
+
+# Hack for static openMotif to get around MacPorts openMotif-2.3, which
+# breaks the plugins menu
+LIBXM = openMotif-2.2.3/lib/Xm/.libs/libXm.a
+
+# Return to this when MacPorts openMotif works with afni again
+#LIBXM = -lXm
+
+# for dynamic linking
+
+LLIBS  = -lmri -lXp -lXpm -lXext -lXmu ${LIBXM} -lXt -lX11 -lm -lmri -ldl -lc $(LZLIB)
+
+# vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
+# For suma
+SUMA_INCLUDE_PATH = -I/usr/X11R6/include -I./ -I../ -Igts/src -IopenMotif-2.2.3/lib/Xm -I/opt/local/include
+SUMA_LINK_PATH = -L/usr/lib -L/usr/X11R6/lib -L../ -L/opt/local/lib
+SUMA_LINK_LIB = -lGLw -lGLU -lGL -lXmu ${LIBXM} -lXp -lXt -lXext -lX11 -lmri -lm -lmx -lglib -bind_at_load $(LZLIB)
+SUMA_MAKEFILE_NAME = SUMA_Makefile
+SUMA_BIN_ARCHIVE = SUMA_MacOSX.tar
+
+# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+
+###############################################################
+
+MAKE = make
+include Makefile.INCLUDE


Property changes on: trunk/dports/science/afni/files/Makefile.macosx_Intel_darwinports
___________________________________________________________________
Name: svn:executable
   + *

Added: trunk/dports/science/afni/files/Makefile.macosx_PowerPC_darwinports
===================================================================
--- trunk/dports/science/afni/files/Makefile.macosx_PowerPC_darwinports	                        (rev 0)
+++ trunk/dports/science/afni/files/Makefile.macosx_PowerPC_darwinports	2006-09-18 03:16:14 UTC (rev 19620)
@@ -0,0 +1,75 @@
+# This Makefile is for Mac OSX 10.3 and 10.4 with darwinports.
+# Contributed by Jason W. Bacon, Medical College of Wisconsin.
+# Do NOT use "cc -fast", since that produces incorrect code for 3dDeconvolve!
+# The options below are supposed to be equivalent to "-fast".
+
+USE_ZLIB = -DHAVE_ZLIB
+LZLIB    = -lz
+
+CC_PPC = -fPIC
+
+CCDEBS = -DAFNI_DEBUG -DIMSEQ_DEBUG -DDISPLAY_DEBUG -DTHD_DEBUG
+CEXTRA = -Wcomment -Wformat -DUSE_TRACING -DHAVE_XDBE -no-cpp-precomp -DDONT_USE_MCW_MALLOC
+CCFAST = cc ${CC_PPC} -DDARWIN $(CEXTRA) -O3
+CCVOL  = cc ${CC_PPC} -DDARWIN $(CEXTRA) -O2
+CC     = cc ${CC_PPC} -DDARWIN $(CEXTRA) -O
+CCMIN  = cc
+CCD    = $(CC) $(CCDEBS)
+IFLAGS = -I. -I/usr/X11R6/include -IopenMotif-2.2.3/lib/Xm -I/opt/local/include
+LFLAGS = -L. -L/usr/X11R6/lib -L/opt/local/lib -Wl,-force_flat_namespace
+
+CCSVD  = cc -O0 ${CC_PPC} -no-cpp-precomp
+
+PLUGIN_SUFFIX = so
+PLUGIN_LFLAGS = -flat_namespace -bundle -undefined suppress
+PLUGIN_CC     = $(CC) -dynamic -fno-common
+PLFLAGS       = -dynamic -L. -L/usr/X11R6/lib -L/opt/local/lib -Wl,-force_flat_namespace
+
+SPECIAL = -faltivec -framework Accelerate -DUSE_ACCELERATE
+
+AR     = /usr/bin/ar
+RANLIB = /usr/bin/ranlib
+TAR    = /usr/bin/tar
+MKDIR  = /bin/mkdir
+GZIP   = /usr/bin/gzip
+LD     = cc
+
+RM = /bin/rm -f
+MV = /bin/mv -f
+CP = /bin/cp -f
+
+LINT = /usr/bin/lint -a -b -u -v -x $(IFLAGS) $(CCDEFS)
+
+INSTALLDIR = ./macosx_bin
+LIBDIR = $(INSTALLDIR)
+
+INSTALL_PREREQ = suma
+
+LIBDL = libdl.a
+
+# Hack for static openMotif to get around MacPorts openMotif-2.3, which
+# breaks the plugins menu
+LIBXM = openMotif-2.2.3/lib/Xm/.libs/libXm.a
+
+# Return to this when MacPorts openMotif works with afni again
+#LIBXM = -lXm
+
+# for dynamic linking
+
+LLIBS  = -lmri -lXp -lXpm -lXext -lXmu ${LIBXM} -lXt -lX11 -lm -lmri -ldl -lc $(LZLIB)
+
+# vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
+# For suma
+SUMA_INCLUDE_PATH = -I/usr/X11R6/include -I./ -I../ -Igts/src -IopenMotif-2.2.3/lib/Xm -I/opt/local/include
+SUMA_LINK_PATH = -L/usr/lib -L/usr/X11R6/lib -L../ -L/opt/local/lib
+SUMA_LINK_LIB = -lGLw -lGLU -lGL -lXmu ${LIBXM} -lXp -lXt -lXext -lX11 -lmri -lm -lmx -lglib -bind_at_load $(LZLIB)
+SUMA_MAKEFILE_NAME = SUMA_Makefile
+SUMA_BIN_ARCHIVE = SUMA_MacOSX.tar
+
+# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+
+###############################################################
+
+MAKE = make
+include Makefile.INCLUDE

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20060917/204434b3/attachment.html


More information about the macports-changes mailing list