Ticket #28276: Portfile.diff

File Portfile.diff, 3.3 KB (added by matt.cottrell@…, 14 years ago)

Updated Portfile.diff now includes 64-bit for darwin 10

  • Portfile

    old new  
    44PortSystem              1.0
    55
    66name                    arb
    7 version                 5.1
     7version                 5.2.1
    88epoch                   1
    99categories              science
    1010maintainers             me.com:matt.cottrell
     
    4141                        port:mesa \
    4242                        port:glw \
    4343                        port:glew \
    44                         port:tiff
     44                        port:tiff \
     45                        port:xfig \
     46                        port:gv
     47                       
    4548
    4649patchfiles              patch-ARB-config.makefile.diff \
    4750                        patch-ARB-makefile.diff \
    4851                        patch-ARB-RNA3D_GlobalHeader.hxx.diff \
    49                         patch-ARB-DARWIN.pl.diff
     52                        patch-ARB-DARWIN.pl.diff\
     53                        arb_intro.fig.diff
    5054                       
    5155worksrcdir              stable_5.0
    5256
     
    7377                        file copy ${worksrcpath}/config.makefile.template ${worksrcpath}/config.makefile
    7478                        reinplace "s|@@PREFIX@@|${prefix}|g" ${filespath}/arb_macsetup
    7579                        file copy ${filespath}/arb_macsetup ${worksrcpath}/bin
     80
     81platform darwin 10     {
     82                       reinplace "s|OSX_SDK:=/Developer/SDKs/MacOSX10.5.sdk|OSX_SDK:=/Developer/SDKs/MacOSX10.6.sdk|g" ${worksrcpath}/Makefile
     83}
    7684}
    7785
    78 platform darwin 9      {
    7986post-configure         {
     87
     88platform darwin 9      {
     89                       reinplace "s|ARB_64 := 1# compile 64bit ARB version|ARB_64 := 0# compile 64bit ARB version|g" ${worksrcpath}/config.makefile
     90}
     91platform darwin 10     {
    8092                       reinplace "s|ARB_64 := 1# compile 64bit ARB version|ARB_64 := 0# compile 64bit ARB version|g" ${worksrcpath}/config.makefile
    8193}
    8294}
    8395
     96
    8497build.env-append        ${configure.env}
    8598build.env-append        PREFIX=${prefix}
    8699
     
    117130
    118131You have two options (A is easier, B is more difficult):
    119132
    120 A) Open a new terminal window and type arb_macsetup to set up your environment automatically
     133A) 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.
    121134
    122135or
    123136       
    124 B) Follow the steps below:
     137B) More difficult - follow the steps below:
    125138
    126 1a)
     1391)
    127140bash users add the following lines to your ~/.profile or to your ~/.bashrc
    128141
    129142      ARBHOME=${prefix}/share/arb;export ARBHOME
     
    132145
    133146      enter the following command:
    134147      . ~/.profile
    135 1b)
     1482)
    136149tcsh users add the following lines to your ~/.cshrc
    137150      setenv ARBHOME ${prefix}/share/arb
    138151      setenv PATH ${prefix}/share/arb\:\$PATH
    139152
    140153      enter the following command:
    141154      source ~/.cshrc
    142 2)
     1553)
     156create a text file in your home folder called .xmodmap that contains the text below:
     157
     158clear Mod1
     159clear Mod2
     160keycode 63 = Mode_switch
     161keycode 66 = Meta_L
     162keycode 69 = Meta_R
     163add Mod1 = Meta_L Meta_R
     164add Mod2 = Mode_switch
     165
     166C)
     167to set up ARB for another user on this computer log into their account and type /opt/local/bin/arb_macsetup
     168
     169D)
    143170type arb to start ARB
    144171
    145172A demo data base is located at ${prefix}/share/arb.demo.arb