Changeset 59503 for trunk


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

use workpath/worksrcpath instead of 'cd', comment out missing files

File:
1 edited

Legend:

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

    r59501 r59503  
    3737                libGLw.a.tiger md5 c6c30011f603f7c055ba36156ca64d38
    3838
    39 patchfiles      patch-Makefile.INCLUDE
     39#patchfiles     patch-Makefile.INCLUDE
    4040
    4141platform powerpc {
    4242post-patch      {
    43                 cd ${workpath}/afni_src
    44                 file copy ${filespath}/Makefile.macosx_PowerPC_darwinports \
    45                         Makefile
    46                 file copy ${distpath}/3dClustBust.c .
    47                 reinplace -E "s|AFNI_\[0-9_\]+|${version}|g" ${workpath}/afni_src/AFNI_label.h
     43                file copy ${filespath}/Makefile.ppc \
     44                        ${worksrcpath}/Makefile
     45                file copy ${distpath}/3dClustBust.c ${worksrcpath}/
     46                reinplace -E "s|AFNI_\[0-9_\]+|${version}|g" ${worksrcpath}/AFNI_label.h
    4847}
    4948}
     
    5150platform i386 {
    5251post-patch      {
    53                 cd ${workpath}/afni_src
    54                 file copy ${filespath}/Makefile.macosx_Intel_darwinports \
    55                         Makefile
    56                 file copy ${distpath}/3dClustBust.c .
    57                 reinplace -E "s|AFNI_\[0-9_\]+|${version}|g" ${workpath}/afni_src/AFNI_label.h
     52                file copy ${filespath}/Makefile.i386 \
     53                        ${worksrcpath}/Makefile
     54                file copy ${distpath}/3dClustBust.c ${worksrcpath}/
     55                reinplace -E "s|AFNI_\[0-9_\]+|${version}|g" ${worksrcpath}/AFNI_label.h
    5856}
    5957}
     
    6462                }
    6563                file copy -force ${distpath}/afni.1 ${workpath}
    66                 file copy -force ${filespath}/afni.cshrc ${workpath}
    67                 file copy -force ${filespath}/afni.profile ${workpath}
     64#               file copy -force ${filespath}/afni.cshrc ${workpath}
     65#               file copy -force ${filespath}/afni.profile ${workpath}
    6866                reinplace "s|%%PREFIX%%|${prefix}|g" ${workpath}/afni.1
    69                 reinplace "s|%%PREFIX%%|${prefix}|g" ${workpath}/afni.cshrc
    70                 reinplace "s|%%PREFIX%%|${prefix}|g" ${workpath}/afni.profile
    71                 reinplace "s|%%DATADIR%%|${prefix}/share/afni|g" ${workpath}/afni.cshrc
    72                 reinplace "s|%%DATADIR%%|${prefix}/share/afni|g" ${workpath}/afni.profile
     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
    7371                }
    7472
    7573destroot {
    7674# First, separate files that were all dumped into macosx_bin by the Makefile
    77                 cd ${workpath}/afni_src
    78                 file mkdir macosx_lib
    79                 eval file rename [glob macosx_bin/*.a] macosx_lib
    80                 eval file rename [glob macosx_bin/*.so] macosx_lib
    81                 file mkdir macosx_include
     75                file mkdir ${worksrcpath}/macosx_lib
     76                eval file rename [glob ${worksrcpath}/macosx_bin/*.a] ${worksrcpath}/macosx_lib
     77                eval file rename [glob ${worksrcpath}macosx_bin/*.so] ${worksrcpath}/macosx_lib
     78                file mkdir ${worksrcpath}/macosx_include
    8279                eval file rename [glob macosx_bin/*.h] macosx_include
    83                 file mkdir macosx_share
    84                 eval file rename [glob macosx_bin/*.jpg] macosx_share
    85                 eval file rename [glob macosx_bin/*.txt] macosx_share
     80                file mkdir ${worksrcpath}/macosx_share
     81                eval file rename [glob ${worksrcpath}/macosx_bin/*.jpg] ${worksrcpath}/macosx_share
     82                eval file rename [glob ${worksrcpath}/macosx_bin/*.txt] ${worksrcpath}/macosx_share
    8683
    8784# Delete files that conflict with other ports
    88                 eval file delete macosx_bin/cjpeg macosx_bin/djpeg \
    89                         macosx_bin/whirlgif
    90                 file rename macosx_bin/abut macosx_bin/afni_abut
     85                eval file delete ${worksrcpath}/macosx_bin/cjpeg ${worksrcpath}/macosx_bin/djpeg \
     86                        ${worksrcpath}/macosx_bin/whirlgif
     87                file rename ${worksrcpath}/macosx_bin/abut ${worksrcpath}/macosx_bin/afni_abut
    9188
    9289# Install binaries and scripts
    9390                xinstall -d -m 755 ${destroot}${prefix}/bin
    94                 eval xinstall -m 755 [glob macosx_bin/*] ${destroot}${prefix}/bin
     91                eval xinstall -m 755 [glob ${worksrcpath}/macosx_bin/*] ${destroot}${prefix}/bin
    9592# Install libraries and plugins
    9693                xinstall -d -m 755 ${destroot}${prefix}/lib/afni
    97                 eval xinstall -m 644 [glob macosx_lib/*] ${destroot}${prefix}/lib/afni
     94                eval xinstall -m 644 [glob ${worksrcpath}/macosx_lib/*] ${destroot}${prefix}/lib/afni
    9895# Install headers
    9996                xinstall -d -m 755 ${destroot}${prefix}/include/afni
    100                 eval xinstall -m 644 [glob macosx_include/*] ${destroot}${prefix}/include/afni
     97                eval xinstall -m 644 [glob ${worksrcpath}/macosx_include/*] ${destroot}${prefix}/include/afni
    10198
    10299# Install miscellaneous files
    103100                xinstall -d -m 755 ${destroot}${prefix}/share/afni
    104                 eval xinstall -m 644 [glob macosx_share/*] ${destroot}${prefix}/share/afni
     101                eval xinstall -m 644 [glob ${worksrcpath}/macosx_share/*] ${destroot}${prefix}/share/afni
    105102                eval xinstall -m 644 [glob ${distpath}/TTatlas*] ${destroot}${prefix}/share/afni
    106                 cd ${workpath}
    107                 eval xinstall -m 644 [glob CA_EZ_v1.5-July3107/*] ${destroot}${prefix}/share/afni
     103                eval xinstall -m 644 [glob ${workpath}/CA_EZ_v1.5-July3107/*] ${destroot}${prefix}/share/afni
    108104
    109105# Install docs
    110106                xinstall -d -m 755 ${destroot}${prefix}/share/doc/afni
    111                 eval xinstall -m 644 [glob afni_src/README.*] ${destroot}${prefix}/share/doc/afni
     107                eval xinstall -m 644 [glob ${worksrcpath}/README.*] ${destroot}${prefix}/share/doc/afni
    112108                xinstall -d -m 755 ${destroot}${prefix}/share/man/man1
    113109                eval xinstall -m 644 ${workpath}/afni.1 ${destroot}${prefix}/share/man/man1
Note: See TracChangeset for help on using the changeset viewer.