Changeset 53922


Ignore:
Timestamp:
Jul 16, 2009, 6:03:17 PM (10 years ago)
Author:
jmr@…
Message:

afni: remove use of cd (#12914)

File:
1 edited

Legend:

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

    r50984 r53922  
    3131platform powerpc {
    3232post-patch      {
    33                 cd ${workpath}/afni_src
    3433                file copy ${filespath}/Makefile.ppc \
    35                         Makefile
     34                        ${workpath}/afni_src/Makefile
    3635                reinplace "s|openMotif-2.2.3|${workpath}/openMotif-2.2.3|g" ${workpath}/afni_src/Makefile
    3736}
     
    4039platform i386 {
    4140post-patch      {
    42                 cd ${workpath}/afni_src
    4341                file copy ${filespath}/Makefile.i386 \
    44                         Makefile
     42                        ${workpath}/afni_src/Makefile
    4543                reinplace "s|openMotif-2.2.3|${workpath}/openMotif-2.2.3|g" ${workpath}/afni_src/Makefile
    4644}
     
    4846
    4947pre-build       {
    50                 cd ${workpath}/openMotif-2.2.3
    51                 system "./configure --disable-shared --enable-static --disable-demos"
    52                 system "make"
     48                system "cd ${workpath}/openMotif-2.2.3 && ./configure --disable-shared --enable-static --disable-demos"
     49                system "cd ${workpath}/openMotif-2.2.3 && make"
    5350                }
    5451
    5552destroot {
    5653# 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
     54                file mkdir ${workpath}/afni_src/macosx_lib
     55                eval file rename [glob -directory ${workpath}/afni_src macosx_bin/*.a] ${workpath}/afni_src/macosx_lib
     56                eval file rename [glob -directory ${workpath}/afni_src macosx_bin/*.so] ${workpath}/afni_src/macosx_lib
     57                file mkdir ${workpath}/afni_src/macosx_include
     58                eval file rename [glob -directory ${workpath}/afni_src macosx_bin/*.h] ${workpath}/afni_src/macosx_include
     59                file mkdir ${workpath}/afni_src/macosx_share
     60                eval file rename [glob -directory ${workpath}/afni_src macosx_bin/*.jpg] ${workpath}/afni_src/macosx_share
     61                eval file rename [glob -directory ${workpath}/afni_src macosx_bin/*.txt] ${workpath}/afni_src/macosx_share
    6662
    6763# Delete files that conflict with other ports
    68                 eval file delete macosx_bin/cjpeg macosx_bin/djpeg \
    69                         macosx_bin/whirlgif
     64                eval file delete ${workpath}/afni_src/macosx_bin/cjpeg ${workpath}/afni_src/macosx_bin/djpeg \
     65                        ${workpath}/afni_src/macosx_bin/whirlgif
    7066
    7167# Install binaries and scripts
    7268                xinstall -d -m 755 ${destroot}${prefix}/bin
    73                 eval xinstall -m 755 [glob macosx_bin/*] ${destroot}${prefix}/bin
     69                eval xinstall -m 755 [glob -directory ${workpath}/afni_src macosx_bin/*] ${destroot}${prefix}/bin
    7470# Install libraries and plugins
    7571                xinstall -d -m 755 ${destroot}${prefix}/lib/afni
    76                 eval xinstall -m 644 [glob macosx_lib/*] ${destroot}${prefix}/lib/afni
     72                eval xinstall -m 644 [glob -directory ${workpath}/afni_src macosx_lib/*] ${destroot}${prefix}/lib/afni
    7773# Install headers
    7874                xinstall -d -m 755 ${destroot}${prefix}/include/afni
    79                 eval xinstall -m 644 [glob macosx_include/*] ${destroot}${prefix}/include/afni
     75                eval xinstall -m 644 [glob -directory ${workpath}/afni_src macosx_include/*] ${destroot}${prefix}/include/afni
    8076
    8177# Install miscellaneous files
    8278                xinstall -d -m 755 ${destroot}${prefix}/share/afni
    83                 eval xinstall -m 644 [glob macosx_share/*] ${destroot}${prefix}/share/afni
     79                eval xinstall -m 644 [glob -directory ${workpath}/afni_src macosx_share/*] ${destroot}${prefix}/share/afni
    8480                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
     81                eval xinstall -m 644 [glob -directory ${workpath} CA_EZ_v1.3c-May0806/*] ${destroot}${prefix}/share/afni
    8782
    8883# Install docs
    8984                xinstall -d -m 755 ${destroot}${prefix}/share/doc/afni
    90                 eval xinstall -m 644 [glob afni_src/README.*] ${destroot}${prefix}/share/doc/afni
     85                eval xinstall -m 644 [glob -directory ${workpath} afni_src/README.*] ${destroot}${prefix}/share/doc/afni
    9186                xinstall -d -m 755 ${destroot}${prefix}/man/man1
    9287                eval xinstall -m 644 ${distpath}/afni.1 ${destroot}${prefix}/man/man1
Note: See TracChangeset for help on using the changeset viewer.