Ticket #29695: afni.diff
File afni.diff, 3.0 KB (added by nerdling (Jeremy Lavergne), 13 years ago) |
---|
-
files/patch-Makefile.INCLUDE.diff
1 --- Makefile.INCLUDE.orig 201 0-05-30 09:59:00.000000000 -04002 +++ Makefile.INCLUDE 201 0-05-30 10:00:45.000000000 -04001 --- Makefile.INCLUDE.orig 2011-05-25 15:15:23.000000000 -0400 2 +++ Makefile.INCLUDE 2011-06-01 22:44:51.000000000 -0400 3 3 @@ -1,4 +1,4 @@ 4 4 -## 5 5 + 6 6 ## Include for MCW AFNI make 7 7 ## -- goes at end of each platform specific Makefile. 8 8 ## 9 @@ -1 497,13 +1497,13 @@9 @@ -1568,13 +1568,13 @@ 10 10 11 11 ### Put things in their places 12 12 … … 24 24 25 25 install_noplug: $(INSTALLDIR) 26 26 $(MV) $(PROGRAMS_NOPLUG) $(INSTALLDIR) 27 @@ -1 888,8 +1888,8 @@27 @@ -1968,8 +1968,8 @@ 28 28 $(AR) q libmrix.a $(IMOBJS) 29 29 $(RANLIB) libmrix.a 30 30 … … 35 35 36 36 ################################################################### 37 37 # Plugin stuff 38 @@ - 1950,9 +1950,9 @@38 @@ -2033,9 +2033,9 @@ 39 39 laconte_plugins: plug_3dsvm.$(SO) 40 40 41 41 install_plugins: $(INSTALLDIR) … … 48 48 echo Do not forget to setenv AFNI_PLUGINPATH appropriately 49 49 50 50 .c.$(SO):afni_plugin.h afni.h 3ddata.h 51 @@ - 2905,3 +2905,7@@51 @@ -3029,3 +3029,8 @@ 52 52 $(CC) $(RccCOMopt) -c toyR.c $(INFLAGS) 53 53 $(CC) -o toyR toyR.o $(LFLAGS) \ 54 $(LLIBS) -lf2c -lmri $(RccCOMlfl) AFNI_embeddedRCall.o 54 $(LLIBS) $(RccCOMlfl) AFNI_embeddedRCall.o 55 + 55 56 +$(LIBDIR): 56 57 + if [ ! -d $(LIBDIR) ]; then $(MKDIR) -p $(LIBDIR); echo Made directory $(LIBDIR); fi 57 58 +$(SHAREDIR): -
Portfile
4 4 PortSystem 1.0 5 5 6 6 name afni 7 version 2010_10_19_1028 8 revision 1 9 distname AFNI_${version} 7 version 2011_05_26_1457 8 distname AFNI_${version} 10 9 categories science 11 10 maintainers snc openmaintainer 12 11 description Analysis of Functional Neuro Images … … 29 28 dist_subdir ${name}/${version}_${revision} 30 29 extract.suffix .tgz 31 30 32 checksums sha1 42234a0570d62352c0ddb71b48070e9f10744846\33 rmd160 b39884591e88ae95d5f985b232c31f323067c8aa31 checksums sha1 55d93da558f4ece45bd7c505d0b4dd4c9941efe2 \ 32 rmd160 04c1c4b5a37103b047bdbe0d1b078f15aca8d1e4 34 33 35 34 pre-patch { 36 35 # use the right makefile … … 46 45 reinplace "s|LIBDIR = \$(INSTALLDIR)|LIBDIR = ${destroot}${prefix}/lib|" ${worksrcpath}/Makefile 47 46 reinplace "s|shared_objs: \$(INSTALLDIR) libmri.so libmrix.so|shared_objs: \$(LIBDIR) libmri.so libmrix.so|" ${worksrcpath}/Makefile 48 47 reinplace "s|MAKE = make|MAKE = make\\\nSHAREDIR = ${destroot}${prefix}/share/${name}|" ${worksrcpath}/Makefile 48 # avoid /usr/local/lib like the plague 49 reinplace "s|-L/usr/local/lib ||" ${worksrcpath}/Makefile 49 50 } 50 51 patchfiles patch-Makefile.INCLUDE.diff 51 52