Changeset 59498 for trunk


Ignore:
Timestamp:
Oct 15, 2009, 8:32:34 PM (11 years ago)
Author:
snc@…
Message:

updated version, ticket #21890. maintainer timeout. using dist-provided portfile with new maintainer.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/science/afni/Portfile

    r58271 r59498  
     1# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
    12# $Id$
    23PortSystem      1.0
    3 name            afni
    4 version         2007.04.18.1830
    5 distfiles       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
     4name            afni-2009.07.16.1049
     5version         2009.07.16.1049
     6revision        0
     7distfiles       afni_src.tgz afni.1 3dClustBust.c \
     8                TTatlas+tlrc.BRIK.gz TTatlas+tlrc.HEAD CA_EZ_v1.5-July3107.tgz \
     9                libGLw.a.tiger
    810categories      science
    9 platforms       darwin
    10 maintainers     smithers.neuro.mcw.edu:bacon
     11maintainers     alaack@mcw.edu
    1112description     Analysis of Functional Neuro Images
    1213long_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.
    1314homepage        http://afni.nimh.nih.gov/
    1415master_sites    http://www.neuro.mcw.edu/~bacon/Ports/distfiles/AFNI/${version}/
    15 checksums       afni_src.tgz md5 90ecae8727cadc6172517bc7149be67e \
    16                 afni.1 md5 80cc1f1c6ca0ef59a3032ad63abfbdd5 \
    17                 TTatlas+tlrc.BRIK.gz md5 f5a107b049bc426af5342565f4e5beee \
    18                 TTatlas+tlrc.HEAD md5 a0ca787a2996d7e66548176808503ac5 \
    19                 CA_EZ_v1.3c-May0806.tgz md5 dbb2caab5c030c505b306e1526d19150 \
    20                 openMotif-2.2.3.tar.gz md5 94c96a0f94ee0d5e41d3dba2188b263d
    21 extract.only    afni_src.tgz CA_EZ_v1.3c-May0806.tgz \
    22                 openMotif-2.2.3.tar.gz
     16extract.only    afni_src.tgz CA_EZ_v1.5-July3107.tgz
    2317use_configure   no
    24 depends_lib     path:lib/pkgconfig/glib-2.0.pc:glib2
     18depends_lib     port:glib2 \
     19                port:glib1 \
     20                port:openmotif
    2521depends_run     port:netpbm \
    2622                port:jpeg \
    2723                port:whirlgif \
    2824                port:endian
    29 build.dir       ${workpath}/afni_src
     25#build.dir      ${workpath}/afni_src
     26worksrcdir      afni_src
    3027build.target    vastness
     28
     29checksums       afni_src.tgz md5 15786ad285b26bbd110e7892face6844 \
     30                afni.1 md5 02708ca46c60d6774af4796535e263ed \
     31                TTatlas+tlrc.BRIK.gz md5 f5a107b049bc426af5342565f4e5beee \
     32                TTatlas+tlrc.HEAD md5 a0ca787a2996d7e66548176808503ac5 \
     33                CA_EZ_v1.5-July3107.tgz md5 66341b819e9889ff60a9c3554123db68 \
     34                3dClustBust.c md5 e5f890f4e0894d6e16e3579d3ff89f49 \
     35                libGLw.a.tiger md5 c6c30011f603f7c055ba36156ca64d38
     36
     37patchfiles      patch-Makefile.INCLUDE
    3138
    3239platform powerpc {
    3340post-patch      {
    34                 file copy ${filespath}/Makefile.ppc \
    35                         ${workpath}/afni_src/Makefile
    36                 reinplace "s|openMotif-2.2.3|${workpath}/openMotif-2.2.3|g" ${workpath}/afni_src/Makefile
     41                cd ${workpath}/afni_src
     42                file copy ${filespath}/Makefile.macosx_PowerPC_darwinports \
     43                        Makefile
     44                file copy ${distpath}/3dClustBust.c .
     45                reinplace -E "s|AFNI_\[0-9_\]+|${version}|g" ${workpath}/afni_src/AFNI_label.h
    3746}
    3847}
     
    4049platform i386 {
    4150post-patch      {
    42                 file copy ${filespath}/Makefile.i386 \
    43                         ${workpath}/afni_src/Makefile
    44                 reinplace "s|openMotif-2.2.3|${workpath}/openMotif-2.2.3|g" ${workpath}/afni_src/Makefile
     51                cd ${workpath}/afni_src
     52                file copy ${filespath}/Makefile.macosx_Intel_darwinports \
     53                        Makefile
     54                file copy ${distpath}/3dClustBust.c .
     55                reinplace -E "s|AFNI_\[0-9_\]+|${version}|g" ${workpath}/afni_src/AFNI_label.h
    4556}
    4657}
    4758
    4859pre-build       {
    49                 system "cd ${workpath}/openMotif-2.2.3 && ./configure --disable-shared --enable-static --disable-demos"
    50                 system "cd ${workpath}/openMotif-2.2.3 && make"
     60                if { ! [file exists "/usr/X11R6/lib/libGLw.a"] } {
     61                    file copy ${distpath}/libGLw.a.tiger /usr/X11R6/lib/libGLw.a
     62                }
     63                file copy -force ${distpath}/afni.1 ${workpath}
     64                file copy -force ${filespath}/afni.cshrc ${workpath}
     65                file copy -force ${filespath}/afni.profile ${workpath}
     66                reinplace "s|%%PREFIX%%|${prefix}|g" ${workpath}/afni.1
     67                reinplace "s|%%PREFIX%%|${prefix}|g" ${workpath}/afni.cshrc
     68                reinplace "s|%%PREFIX%%|${prefix}|g" ${workpath}/afni.profile
     69                reinplace "s|%%DATADIR%%|${prefix}/share/afni|g" ${workpath}/afni.cshrc
     70                reinplace "s|%%DATADIR%%|${prefix}/share/afni|g" ${workpath}/afni.profile
    5171                }
    5272
    5373destroot {
    5474# First, separate files that were all dumped into macosx_bin by the Makefile
    55                 file mkdir ${workpath}/afni_src/macosx_lib
    56                 eval file rename [glob -directory ${workpath}/afni_src macosx_bin/*.a] ${workpath}/afni_src/macosx_lib
    57                 eval file rename [glob -directory ${workpath}/afni_src macosx_bin/*.so] ${workpath}/afni_src/macosx_lib
    58                 file mkdir ${workpath}/afni_src/macosx_include
    59                 eval file rename [glob -directory ${workpath}/afni_src macosx_bin/*.h] ${workpath}/afni_src/macosx_include
    60                 file mkdir ${workpath}/afni_src/macosx_share
    61                 eval file rename [glob -directory ${workpath}/afni_src macosx_bin/*.jpg] ${workpath}/afni_src/macosx_share
    62                 eval file rename [glob -directory ${workpath}/afni_src macosx_bin/*.txt] ${workpath}/afni_src/macosx_share
     75                cd ${workpath}/afni_src
     76                file mkdir macosx_lib
     77                eval file rename [glob macosx_bin/*.a] macosx_lib
     78                eval file rename [glob macosx_bin/*.so] macosx_lib
     79                file mkdir macosx_include
     80                eval file rename [glob macosx_bin/*.h] macosx_include
     81                file mkdir macosx_share
     82                eval file rename [glob macosx_bin/*.jpg] macosx_share
     83                eval file rename [glob macosx_bin/*.txt] macosx_share
    6384
    6485# Delete files that conflict with other ports
    65                 eval file delete ${workpath}/afni_src/macosx_bin/cjpeg ${workpath}/afni_src/macosx_bin/djpeg \
    66                         ${workpath}/afni_src/macosx_bin/whirlgif
     86                eval file delete macosx_bin/cjpeg macosx_bin/djpeg \
     87                        macosx_bin/whirlgif
     88                file rename macosx_bin/abut macosx_bin/afni_abut
    6789
    6890# Install binaries and scripts
    6991                xinstall -d -m 755 ${destroot}${prefix}/bin
    70                 eval xinstall -m 755 [glob -directory ${workpath}/afni_src macosx_bin/*] ${destroot}${prefix}/bin
     92                eval xinstall -m 755 [glob macosx_bin/*] ${destroot}${prefix}/bin
    7193# Install libraries and plugins
    7294                xinstall -d -m 755 ${destroot}${prefix}/lib/afni
    73                 eval xinstall -m 644 [glob -directory ${workpath}/afni_src macosx_lib/*] ${destroot}${prefix}/lib/afni
     95                eval xinstall -m 644 [glob macosx_lib/*] ${destroot}${prefix}/lib/afni
    7496# Install headers
    7597                xinstall -d -m 755 ${destroot}${prefix}/include/afni
    76                 eval xinstall -m 644 [glob -directory ${workpath}/afni_src macosx_include/*] ${destroot}${prefix}/include/afni
     98                eval xinstall -m 644 [glob macosx_include/*] ${destroot}${prefix}/include/afni
    7799
    78100# Install miscellaneous files
    79101                xinstall -d -m 755 ${destroot}${prefix}/share/afni
    80                 eval xinstall -m 644 [glob -directory ${workpath}/afni_src macosx_share/*] ${destroot}${prefix}/share/afni
     102                eval xinstall -m 644 [glob macosx_share/*] ${destroot}${prefix}/share/afni
    81103                eval xinstall -m 644 [glob ${distpath}/TTatlas*] ${destroot}${prefix}/share/afni
    82                 eval xinstall -m 644 [glob -directory ${workpath} CA_EZ_v1.3c-May0806/*] ${destroot}${prefix}/share/afni
     104                cd ${workpath}
     105                eval xinstall -m 644 [glob CA_EZ_v1.5-July3107/*] ${destroot}${prefix}/share/afni
    83106
    84107# Install docs
    85108                xinstall -d -m 755 ${destroot}${prefix}/share/doc/afni
    86                 eval xinstall -m 644 [glob -directory ${workpath} afni_src/README.*] ${destroot}${prefix}/share/doc/afni
    87                 xinstall -d -m 755 ${destroot}${prefix}/man/man1
    88                 eval xinstall -m 644 ${distpath}/afni.1 ${destroot}${prefix}/man/man1
    89                 reinplace "s|%%PREFIX%%|${prefix}|g" ${destroot}${prefix}/man/man1/afni.1
     109                eval xinstall -m 644 [glob afni_src/README.*] ${destroot}${prefix}/share/doc/afni
     110                xinstall -d -m 755 ${destroot}${prefix}/share/man/man1
     111                eval xinstall -m 644 ${workpath}/afni.1 ${destroot}${prefix}/share/man/man1
     112                xinstall -d -m 755 ${destroot}${prefix}/etc/mri
     113                xinstall -m 0555 ${workpath}/afni.cshrc ${destroot}${prefix}/etc/mri
     114                xinstall -m 0555 ${workpath}/afni.profile ${destroot}${prefix}/etc/mri
    90115}
     116post-destroot {
     117        ui_msg "\n
     118===========================================================================
     119
     120abut has been renamed to afni_abut to resolve a collision with the
     121unixstat port
     122
     123---
     124
     125AFNI_PLUGIN_PATH should be set to ${prefix}/lib/afni:${prefix}/share/afni
     126AFNI_GLOBAL_SESSION should be set to ${prefix}/share/afni.
     127
     128===========================================================================\n"
     129}
     130
Note: See TracChangeset for help on using the changeset viewer.