Ticket #28276: Portfile-OS-and-hardware-bitness.diff
File Portfile-OS-and-hardware-bitness.diff, 12.2 KB (added by matt.cottrell@…, 14 years ago) |
---|
-
Portfile
old new 1 1 # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 2 # $Id : Portfile 59128 2009-10-10 03:15:21Z macsforever2000@macports.org$2 # $Id$ 3 3 4 4 PortSystem 1.0 5 5 6 6 name arb 7 version 5.18 7 epoch 1 8 version 5.2 9 9 categories science 10 10 maintainers me.com:matt.cottrell 11 11 platforms darwin … … 18 18 nucleotide and amino acid sequences. Features include routines for designing fluorescence in situ \ 19 19 hybridization (FISH) probes and PCR and sequencing primers. Phylogenetic trees can be generated and \ 20 20 sequences can be added to existing trees. ARB maintains links between the phylogenetic trees and sequences \ 21 for data base search and query. The Silva Comprehensive Ribosomal RNA Database (http://www.arb-silva.de/) \ 22 maintaines up-to-date databases. 64-bit ARB is built on 10.6 in order to work with the largest data bases. \ 23 32-bit ARB is built on 10.5. An active community of scientists exchange tips on the ARB Yahoo! discussion group \ 21 for database search and query. The Silva Comprehensive Ribosomal RNA Database (http://www.arb-silva.de/) \ 22 maintains up-to-date databases. An active community of scientists exchanges tips on the ARB Yahoo! discussion group \ 24 23 (http://tech.groups.yahoo.com/group/arb_users/). Citation: Wolfgang Ludwig, et al. (2004) ARB: a software environment \ 25 24 for sequence data. Nucleic Acids Research. 32:1363-1371. 26 25 27 fetch.type svn 28 svn.url http://svn.mikro.biologie.tu-muenchen.de/svn/branches/stable_5.0 29 svn.revision 6215 30 svn.method checkout 31 #fetch.user coder 32 #fetch.password gimmeARBsource 33 #work around until ticket #21232 is resolved 34 svn.args --username coder --password gimmeARBsource 26 master_sites http://download.arb-home.de/release/arb_${version}/ 27 distname arbsrc 28 extract.suffix .tgz 29 dist_subdir ${name}/${version} 30 worksrcdir arbsrc_6779 31 32 checksums sha1 4ee493a16ece5231d46ed1071407c06e733d67c8 \ 33 rmd160 d9d99d0ebadaa293091ff93f6ca588b2321bd8b0 34 35 depends_build port:gsed \ 36 port:imake \ 37 port:makedepend 35 38 36 39 depends_lib port:openmotif \ 37 40 port:lynx \ 38 port:gsed \39 port:imake \40 41 port:sablotron \ 41 42 port:mesa \ 42 43 port:glw \ 43 44 port:glew \ 44 port:tiff 45 port:tiff \ 46 port:xfig \ 47 port:gv 45 48 46 49 patchfiles patch-ARB-config.makefile.diff \ 47 50 patch-ARB-makefile.diff \ 48 51 patch-ARB-RNA3D_GlobalHeader.hxx.diff \ 49 patch-ARB-DARWIN.pl.diff 52 patch-ARB-DARWIN.pl.diff \ 53 arb_intro.fig.diff \ 54 patch-ARB-glpng.diff 55 50 56 51 worksrcdir stable_5.0 57 platform darwin { 58 if {${build_arch} == "ppc" || ${build_arch} == "i386" } { 59 set is64bit 0 60 if {${os.platform} == "darwin" && ${os.major} >= 9} { 61 if {[sysctl hw.cpu64bit_capable] == 1} { 62 ui_msg "64-bit capable hardware: Building 32-bit ARB. Check the setting of build_arch in ${prefix}/etc/macports/macports.conf" 63 } else { 64 ui_msg "not 64-bit capable hardware: Building 32-bit ARB." 65 } 66 } else { 67 ui_msg "unable to determine 64-bit hardware capability: Building 32-bit ARB." 68 } 69 } else { 70 set is64bit 1 71 ui_msg "64-bit capable hardware: Building 64-bit ARB." 72 } 73 } 74 75 configure { 52 76 53 use_configure no 54 configure.env ARBHOME=${worksrcpath} 55 configure.env-append PATH=${worksrcpath}/bin:$env(PATH) 56 57 configure { 58 reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/PERL2ARB/DARWIN.PL 59 reinplace "s| sed | gsed |g" ${worksrcpath}/GDEHELP/MENUS/align.menu 60 reinplace "s| sed | gsed |g" ${worksrcpath}/util/arb_check_build_env.pl 61 reinplace "s| sed | gsed |g" ${worksrcpath}/arb_install.sh 62 reinplace "s| sed | gsed |g" ${worksrcpath}/WINDOW/AW_status.cxx 63 reinplace "s| sed | gsed |g" ${worksrcpath}/SH/example_batch_probe_match.sh 64 reinplace "s| sed | gsed |g" ${worksrcpath}/GDEHELP/GDEmenus 65 reinplace "s| sed | gsed |g" ${worksrcpath}/GDEHELP/genhelp.sh 66 reinplace "s| sed | gsed |g" ${worksrcpath}/GDEHELP/genhelptree.sh 67 reinplace "s| sed | gsed |g" ${worksrcpath}/SOURCE_TOOLS/make_java_dependencies.sh 68 reinplace "s| sed | gsed |g" ${worksrcpath}/HELP_SOURCE/Makefile 69 reinplace "s| sed | gsed |g" ${worksrcpath}/AISC_COM/AISC/Makefile 70 reinplace "s| sed | gsed |g" ${worksrcpath}/GDEHELP/Makefile 71 reinplace "s| sed | gsed |g" ${worksrcpath}/HELP_SOURCE/genhelp/Makefile 72 reinplace "s| sed | gsed |g" ${worksrcpath}/GDEHELP/Makefile.helpfiles 77 reinplace "s| sed | gsed |g" ${worksrcpath}/GDEHELP/MENUS/align.menu \ 78 ${worksrcpath}/util/arb_check_build_env.pl \ 79 ${worksrcpath}/arb_install.sh \ 80 ${worksrcpath}/WINDOW/AW_status.cxx \ 81 ${worksrcpath}/SH/example_batch_probe_match.sh \ 82 ${worksrcpath}/GDEHELP/GDEmenus \ 83 ${worksrcpath}/GDEHELP/genhelp.sh \ 84 ${worksrcpath}/GDEHELP/genhelptree.sh \ 85 ${worksrcpath}/SOURCE_TOOLS/make_java_dependencies.sh \ 86 ${worksrcpath}/HELP_SOURCE/Makefile \ 87 ${worksrcpath}/AISC_COM/AISC/Makefile \ 88 ${worksrcpath}/GDEHELP/Makefile \ 89 ${worksrcpath}/HELP_SOURCE/genhelp/Makefile \ 90 ${worksrcpath}/GDEHELP/Makefile.helpfiles 73 91 file copy ${worksrcpath}/config.makefile.template ${worksrcpath}/config.makefile 74 reinplace "s|@@PREFIX@@|${prefix}|g" ${filespath}/arb_macsetup75 92 file copy ${filespath}/arb_macsetup ${worksrcpath}/bin 76 } 93 reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/PERL2ARB/DARWIN.PL \ 94 ${worksrcpath}/bin/arb_macsetup 77 95 78 platform darwin 9 { 79 post-configure { 80 reinplace "s|ARB_64 := 1# compile 64bit ARB version|ARB_64 := 0# compile 64bit ARB version|g" ${worksrcpath}/config.makefile 81 } 96 reinplace "s|OSX_SDK:=/Developer/SDKs/MacOSX10.5.sdk|OSX_SDK:=${configure.sdkroot}|g" ${worksrcpath}/Makefile 97 98 reinplace "s|@@64BIT@@|${is64bit}|g" ${worksrcpath}/config.makefile 82 99 } 83 100 84 build.env-append ${configure.env} 85 build.env-append PREFIX=${prefix} 101 build.env-append PREFIX=${prefix} \ 102 ARBHOME=${worksrcpath} \ 103 PATH=${worksrcpath}/bin:$env(PATH) 104 105 build.args GCC=${configure.cc} \ 106 GPP=${configure.cxx} \ 107 CPPreal=${configure.cpp} 86 108 87 109 destroot.keepdirs ${destroot}${prefix}/share/arb/lib/pts 88 110 89 111 destroot { 90 112 eval xinstall -m 0755 [glob ${worksrcpath}/bin/*] ${destroot}${prefix}/bin 91 file mkdir ${destroot}${prefix}/share/arb92 113 file mkdir ${destroot}${prefix}/share/arb/bin 93 114 file copy ${worksrcpath}/lib ${destroot}${prefix}/share/arb/lib 94 115 file copy ${worksrcpath}/GDEHELP ${destroot}${prefix}/share/arb/GDEHELP … … 97 118 file copy ${worksrcpath}/PERL_SCRIPTS ${destroot}${prefix}/share/arb/PERL_SCRIPTS 98 119 file copy ${worksrcpath}/SH ${destroot}${prefix}/share/arb/SH 99 120 file copy ${worksrcpath}/demo.arb ${destroot}${prefix}/share/arb 100 }101 102 post-destroot {103 121 system "chmod a+w ${destroot}${prefix}/share/arb/lib/arb_tcp.dat" 104 122 system "chmod a+w ${destroot}${prefix}/share/arb/lib/pts" 105 123 system "chmod a+w ${destroot}${prefix}/share/arb/lib/macros" 106 system "ln -s ${prefix}/bin/arb_pt_server ${destroot}${prefix}/share/arb/bin/arb_pt_server" 107 system "ln -s ${prefix}/bin/arb_name_server ${destroot}${prefix}/share/arb/bin/arb_name_server" 124 ln -s ${prefix}/bin/arb_pt_server ${destroot}${prefix}/share/arb/bin/arb_pt_server 125 ln -s ${prefix}/bin/arb_name_server ${destroot}${prefix}/share/arb/bin/arb_name_server 126 system "rm -rf `find ${destroot}${prefix}/share/arb -type d -name .svn`" 108 127 } 109 110 post-activate {111 system "rm -rf `find ${prefix}/share/arb -type d -name .svn`"112 128 113 ui_msg " 129 universal_variant no 130 131 notes " 114 132 **************************************************************** 115 133 Before running ARB you must set ARBHOME and add ARB to your PATH 116 134 **************************************************************** 117 135 118 136 You have two options (A is easier, B is more difficult): 119 137 120 A) Open a new terminal window and type arb_macsetup to set up your environment automatically138 A) Easy - open a new terminal window and type arb_macsetup to set the necessary environment variables automatically. This script also enables keyboard shortcuts used in the sequence editor. 121 139 122 140 or 123 141 124 B) Follow the steps below:142 B) More difficult - follow the steps below: 125 143 126 1 a)144 1) 127 145 bash users add the following lines to your ~/.profile or to your ~/.bashrc 128 146 129 147 ARBHOME=${prefix}/share/arb;export ARBHOME … … 132 150 133 151 enter the following command: 134 152 . ~/.profile 135 1b)153 2) 136 154 tcsh users add the following lines to your ~/.cshrc 137 155 setenv ARBHOME ${prefix}/share/arb 138 156 setenv PATH ${prefix}/share/arb\:\$PATH 139 157 140 158 enter the following command: 141 159 source ~/.cshrc 142 2) 160 3) 161 create a text file in your home folder called .xmodmap that contains the text below: 162 163 clear Mod1 164 clear Mod2 165 keycode 63 = Mode_switch 166 keycode 66 = Meta_L 167 keycode 69 = Meta_R 168 add Mod1 = Meta_L Meta_R 169 add Mod2 = Mode_switch 170 171 C) 172 to set up ARB for another user on this computer log into their account and type ${prefix}/bin/arb_macsetup 173 174 D) 143 175 type arb to start ARB 144 176 145 177 A demo data base is located at ${prefix}/share/arb.demo.arb 146 178 147 179 Please cite: Wolfgang Ludwig, et al. (2004) ARB: a software environment for sequence data. Nucleic Acids Research. 32:1363-1371 148 180 " 149 }150 No newline at end of file