source: trunk/dports/science/afni/Portfile @ 50984

Last change on this file since 50984 was 50984, checked in by and.damore@…, 10 years ago

Maintainer email change, second batch, mail without @macports.org domain are put in domain:user form.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.5 KB
Line 
1# $Id: Portfile 50984 2009-05-14 21:08:43Z and.damore@macports.org $
2PortSystem      1.0
3name            afni
4version         2007.04.18.1830
5distfiles       afni_src.tgz afni.1 \
6                TTatlas+tlrc.BRIK.gz TTatlas+tlrc.HEAD CA_EZ_v1.3c-May0806.tgz \
7                openMotif-2.2.3.tar.gz
8categories      science
9maintainers     smithers.neuro.mcw.edu:bacon
10description     Analysis of Functional Neuro Images
11long_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.
12homepage        http://afni.nimh.nih.gov/
13master_sites    http://www.neuro.mcw.edu/~bacon/Ports/distfiles/AFNI/${version}/
14checksums       afni_src.tgz md5 90ecae8727cadc6172517bc7149be67e \
15                afni.1 md5 80cc1f1c6ca0ef59a3032ad63abfbdd5 \
16                TTatlas+tlrc.BRIK.gz md5 f5a107b049bc426af5342565f4e5beee \
17                TTatlas+tlrc.HEAD md5 a0ca787a2996d7e66548176808503ac5 \
18                CA_EZ_v1.3c-May0806.tgz md5 dbb2caab5c030c505b306e1526d19150 \
19                openMotif-2.2.3.tar.gz md5 94c96a0f94ee0d5e41d3dba2188b263d
20extract.only    afni_src.tgz CA_EZ_v1.3c-May0806.tgz \
21                openMotif-2.2.3.tar.gz
22use_configure   no
23depends_lib     port:glib2
24depends_run     port:netpbm \
25                port:jpeg \
26                port:whirlgif \
27                port:endian
28build.dir       ${workpath}/afni_src
29build.target    vastness
30
31platform powerpc {
32post-patch      {
33                cd ${workpath}/afni_src
34                file copy ${filespath}/Makefile.ppc \
35                        Makefile
36                reinplace "s|openMotif-2.2.3|${workpath}/openMotif-2.2.3|g" ${workpath}/afni_src/Makefile
37}
38}
39
40platform i386 {
41post-patch      {
42                cd ${workpath}/afni_src
43                file copy ${filespath}/Makefile.i386 \
44                        Makefile
45                reinplace "s|openMotif-2.2.3|${workpath}/openMotif-2.2.3|g" ${workpath}/afni_src/Makefile
46}
47}
48
49pre-build       {
50                cd ${workpath}/openMotif-2.2.3
51                system "./configure --disable-shared --enable-static --disable-demos"
52                system "make"
53                }
54
55destroot {
56# First, separate files that were all dumped into macosx_bin by the Makefile
57                cd ${workpath}/afni_src
58                file mkdir macosx_lib
59                eval file rename [glob macosx_bin/*.a] macosx_lib
60                eval file rename [glob macosx_bin/*.so] macosx_lib
61                file mkdir macosx_include
62                eval file rename [glob macosx_bin/*.h] macosx_include
63                file mkdir macosx_share
64                eval file rename [glob macosx_bin/*.jpg] macosx_share
65                eval file rename [glob macosx_bin/*.txt] macosx_share
66
67# Delete files that conflict with other ports
68                eval file delete macosx_bin/cjpeg macosx_bin/djpeg \
69                        macosx_bin/whirlgif
70
71# Install binaries and scripts
72                xinstall -d -m 755 ${destroot}${prefix}/bin
73                eval xinstall -m 755 [glob macosx_bin/*] ${destroot}${prefix}/bin
74# Install libraries and plugins
75                xinstall -d -m 755 ${destroot}${prefix}/lib/afni
76                eval xinstall -m 644 [glob macosx_lib/*] ${destroot}${prefix}/lib/afni
77# Install headers
78                xinstall -d -m 755 ${destroot}${prefix}/include/afni
79                eval xinstall -m 644 [glob macosx_include/*] ${destroot}${prefix}/include/afni
80
81# Install miscellaneous files
82                xinstall -d -m 755 ${destroot}${prefix}/share/afni
83                eval xinstall -m 644 [glob macosx_share/*] ${destroot}${prefix}/share/afni
84                eval xinstall -m 644 [glob ${distpath}/TTatlas*] ${destroot}${prefix}/share/afni
85                cd ${workpath}
86                eval xinstall -m 644 [glob CA_EZ_v1.3c-May0806/*] ${destroot}${prefix}/share/afni
87
88# Install docs
89                xinstall -d -m 755 ${destroot}${prefix}/share/doc/afni
90                eval xinstall -m 644 [glob afni_src/README.*] ${destroot}${prefix}/share/doc/afni
91                xinstall -d -m 755 ${destroot}${prefix}/man/man1
92                eval xinstall -m 644 ${distpath}/afni.1 ${destroot}${prefix}/man/man1
93                reinplace "s|%%PREFIX%%|${prefix}|g" ${destroot}${prefix}/man/man1/afni.1
94}
Note: See TracBrowser for help on using the repository browser.