Ticket #28276: Portfile.diff
File Portfile.diff, 3.3 KB (added by matt.cottrell@…, 14 years ago) |
---|
-
Portfile
old new 4 4 PortSystem 1.0 5 5 6 6 name arb 7 version 5. 17 version 5.2.1 8 8 epoch 1 9 9 categories science 10 10 maintainers me.com:matt.cottrell … … 41 41 port:mesa \ 42 42 port:glw \ 43 43 port:glew \ 44 port:tiff 44 port:tiff \ 45 port:xfig \ 46 port:gv 47 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 50 54 51 55 worksrcdir stable_5.0 52 56 … … 73 77 file copy ${worksrcpath}/config.makefile.template ${worksrcpath}/config.makefile 74 78 reinplace "s|@@PREFIX@@|${prefix}|g" ${filespath}/arb_macsetup 75 79 file copy ${filespath}/arb_macsetup ${worksrcpath}/bin 80 81 platform darwin 10 { 82 reinplace "s|OSX_SDK:=/Developer/SDKs/MacOSX10.5.sdk|OSX_SDK:=/Developer/SDKs/MacOSX10.6.sdk|g" ${worksrcpath}/Makefile 83 } 76 84 } 77 85 78 platform darwin 9 {79 86 post-configure { 87 88 platform darwin 9 { 89 reinplace "s|ARB_64 := 1# compile 64bit ARB version|ARB_64 := 0# compile 64bit ARB version|g" ${worksrcpath}/config.makefile 90 } 91 platform darwin 10 { 80 92 reinplace "s|ARB_64 := 1# compile 64bit ARB version|ARB_64 := 0# compile 64bit ARB version|g" ${worksrcpath}/config.makefile 81 93 } 82 94 } 83 95 96 84 97 build.env-append ${configure.env} 85 98 build.env-append PREFIX=${prefix} 86 99 … … 117 130 118 131 You have two options (A is easier, B is more difficult): 119 132 120 A) Open a new terminal window and type arb_macsetup to set up your environment automatically133 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 134 122 135 or 123 136 124 B) Follow the steps below:137 B) More difficult - follow the steps below: 125 138 126 1 a)139 1) 127 140 bash users add the following lines to your ~/.profile or to your ~/.bashrc 128 141 129 142 ARBHOME=${prefix}/share/arb;export ARBHOME … … 132 145 133 146 enter the following command: 134 147 . ~/.profile 135 1b)148 2) 136 149 tcsh users add the following lines to your ~/.cshrc 137 150 setenv ARBHOME ${prefix}/share/arb 138 151 setenv PATH ${prefix}/share/arb\:\$PATH 139 152 140 153 enter the following command: 141 154 source ~/.cshrc 142 2) 155 3) 156 create a text file in your home folder called .xmodmap that contains the text below: 157 158 clear Mod1 159 clear Mod2 160 keycode 63 = Mode_switch 161 keycode 66 = Meta_L 162 keycode 69 = Meta_R 163 add Mod1 = Meta_L Meta_R 164 add Mod2 = Mode_switch 165 166 C) 167 to set up ARB for another user on this computer log into their account and type /opt/local/bin/arb_macsetup 168 169 D) 143 170 type arb to start ARB 144 171 145 172 A demo data base is located at ${prefix}/share/arb.demo.arb