Ticket #24669: afni-CC.diff

File afni-CC.diff, 2.7 KB (added by ryandesign (Ryan Carsten Schmidt), 15 years ago)

proposed patch

  • files/Makefile.i386

     
    1111CCDEBS = -DAFNI_DEBUG -DIMSEQ_DEBUG -DDISPLAY_DEBUG -DTHD_DEBUG
    1212CEXTRA = -Wcomment -Wformat -DUSE_TRACING -DHAVE_XDBE -no-cpp-precomp \
    1313       -DDONT_USE_MCW_MALLOC
    14 CCFAST = cc $(CC_Intel) -DDARWIN  $(CEXTRA) -O3
    15 CCVOL  = cc $(CC_Intel) -DDARWIN  $(CEXTRA) -O2
    16 CC     = cc $(CC_Intel) -DDARWIN  $(CEXTRA) -O
    17 CCMIN  = cc
     14CCFAST = @CC@ $(CC_Intel) -DDARWIN  $(CEXTRA) -O3
     15CCVOL  = @CC@ $(CC_Intel) -DDARWIN  $(CEXTRA) -O2
     16CC     = @CC@ $(CC_Intel) -DDARWIN  $(CEXTRA) -O
     17CCMIN  = @CC@
    1818CCD    = $(CC) $(CCDEBS)
    1919
    2020IFLAGS = -I. -I/usr/X11R6/include -IopenMotif-2.2.3/lib -I/opt/local/include
     
    3434TAR    = /usr/bin/tar
    3535MKDIR  = /bin/mkdir
    3636GZIP   = /usr/bin/gzip
    37 LD     = cc
     37LD     = @CC@
    3838
    3939RM = /bin/rm -f
    4040MV = /bin/mv -f
  • files/Makefile.ppc

     
    1010
    1111CCDEBS = -DAFNI_DEBUG -DIMSEQ_DEBUG -DDISPLAY_DEBUG -DTHD_DEBUG
    1212CEXTRA = -Wcomment -Wformat -DUSE_TRACING -DHAVE_XDBE -no-cpp-precomp -DDONT_USE_MCW_MALLOC
    13 CCFAST = cc ${CC_PPC} -DDARWIN $(CEXTRA) -O3
    14 CCVOL  = cc ${CC_PPC} -DDARWIN $(CEXTRA) -O2
    15 CC     = cc ${CC_PPC} -DDARWIN $(CEXTRA) -O
    16 CCMIN  = cc
     13CCFAST = @CC@ ${CC_PPC} -DDARWIN $(CEXTRA) -O3
     14CCVOL  = @CC@ ${CC_PPC} -DDARWIN $(CEXTRA) -O2
     15CC     = @CC@ ${CC_PPC} -DDARWIN $(CEXTRA) -O
     16CCMIN  = @CC@
    1717CCD    = $(CC) $(CCDEBS)
    1818IFLAGS = -I. -I/usr/X11R6/include -IopenMotif-2.2.3/lib -I/opt/local/include
    1919LFLAGS = -L. -L/usr/X11R6/lib -L/opt/local/lib -Wl,-force_flat_namespace
    2020
    21 CCSVD  = cc -O0 ${CC_PPC} -no-cpp-precomp
     21CCSVD  = @CC@ -O0 ${CC_PPC} -no-cpp-precomp
    2222
    2323PLUGIN_SUFFIX = so
    2424PLUGIN_LFLAGS = -flat_namespace -bundle -undefined suppress
     
    3232TAR    = /usr/bin/tar
    3333MKDIR  = /bin/mkdir
    3434GZIP   = /usr/bin/gzip
    35 LD     = cc
     35LD     = @CC@
    3636
    3737RM = /bin/rm -f
    3838MV = /bin/mv -f
  • Portfile

     
    5656post-patch {
    5757                file copy ${distpath}/3dClustBust.c ${worksrcpath}/
    5858                reinplace -E "s|AFNI_\[0-9_\]+|${version}|g" ${worksrcpath}/AFNI_label.h
     59                reinplace "s|@CC@|${configure.cc}|g" ${worksrcpath}/Makefile
    5960}
    6061
    6162pre-build       {
     
    7273#               reinplace "s|%%DATADIR%%|${prefix}/share/afni|g" ${workpath}/afni.profile
    7374                }
    7475
     76build.args      CC=${configure.cc}
     77
    7578destroot {
    7679# First, separate files that were all dumped into macosx_bin by the Makefile
    7780                file mkdir ${worksrcpath}/macosx_lib