Ticket #28276: arb-5.2-build_arch-x86_64-only.diff
File arb-5.2-build_arch-x86_64-only.diff, 24.7 KB (added by matt.cottrell@…, 14 years ago) |
---|
-
Portfile
diff -urN arb.orig/Portfile arb/Portfile
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 platform darwin { 27 if {${build_arch} == "ppc" || ${build_arch} == "i386" } { 28 pre-fetch { 29 ui_error "Build architecture appears to be ${build_arch}, which is not 64-bit compatible.\nIf your computer truly is 64-bit compatible, please check that build_arch is set to x86_64 in /opt/local/etc/macports/macports.conf.\nYou may have deliberately changed it, or you may have upgraded from Tiger or Leopard and forgot to change it at that time.\nYou should compare your macports.conf with the macports.conf.default in the same directory, and adopt any changes from macports.conf.default that you don't specifically mean to change." 30 error "unsupported platform" 31 } 32 } else { 33 set is64bit 1 34 } 35 } 36 37 master_sites http://download.arb-home.de/release/arb_${version}/ 38 distname arbsrc 39 extract.suffix .tgz 40 dist_subdir ${name}/${version} 41 worksrcdir arbsrc_6779 42 43 checksums sha1 4ee493a16ece5231d46ed1071407c06e733d67c8 \ 44 rmd160 d9d99d0ebadaa293091ff93f6ca588b2321bd8b0 45 46 depends_build port:gsed \ 47 port:imake \ 48 port:makedepend 35 49 36 50 depends_lib port:openmotif \ 37 51 port:lynx \ 38 port:gsed \39 port:imake \40 52 port:sablotron \ 41 53 port:mesa \ 42 54 port:glw \ 43 55 port:glew \ 44 port:tiff 56 port:tiff \ 57 port:xfig \ 58 port:gv 45 59 46 60 patchfiles patch-ARB-config.makefile.diff \ 47 61 patch-ARB-makefile.diff \ 48 62 patch-ARB-RNA3D_GlobalHeader.hxx.diff \ 49 patch-ARB-DARWIN.pl.diff 63 patch-ARB-DARWIN.pl.diff \ 64 arb_intro.fig.diff \ 65 patch-ARB-glpng.diff 50 66 51 worksrcdir stable_5.052 53 use_configure no54 configure.env ARBHOME=${worksrcpath}55 configure.env-append PATH=${worksrcpath}/bin:$env(PATH)56 57 67 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 68 reinplace "s| sed | gsed |g" ${worksrcpath}/GDEHELP/MENUS/align.menu \ 69 ${worksrcpath}/util/arb_check_build_env.pl \ 70 ${worksrcpath}/arb_install.sh \ 71 ${worksrcpath}/WINDOW/AW_status.cxx \ 72 ${worksrcpath}/SH/example_batch_probe_match.sh \ 73 ${worksrcpath}/GDEHELP/GDEmenus \ 74 ${worksrcpath}/GDEHELP/genhelp.sh \ 75 ${worksrcpath}/GDEHELP/genhelptree.sh \ 76 ${worksrcpath}/SOURCE_TOOLS/make_java_dependencies.sh \ 77 ${worksrcpath}/HELP_SOURCE/Makefile \ 78 ${worksrcpath}/AISC_COM/AISC/Makefile \ 79 ${worksrcpath}/GDEHELP/Makefile \ 80 ${worksrcpath}/HELP_SOURCE/genhelp/Makefile \ 81 ${worksrcpath}/GDEHELP/Makefile.helpfiles 73 82 file copy ${worksrcpath}/config.makefile.template ${worksrcpath}/config.makefile 74 reinplace "s|@@PREFIX@@|${prefix}|g" ${filespath}/arb_macsetup75 83 file copy ${filespath}/arb_macsetup ${worksrcpath}/bin 76 } 84 reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/PERL2ARB/DARWIN.PL \ 85 ${worksrcpath}/bin/arb_macsetup 77 86 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 } 87 reinplace "s|OSX_SDK:=/Developer/SDKs/MacOSX10.5.sdk|OSX_SDK:=${configure.sdkroot}|g" ${worksrcpath}/Makefile 88 89 reinplace "s|@@64BIT@@|${is64bit}|g" ${worksrcpath}/config.makefile 82 90 } 83 91 84 build.env-append ${configure.env} 85 build.env-append PREFIX=${prefix} 92 build.env-append PREFIX=${prefix} \ 93 ARBHOME=${worksrcpath} \ 94 PATH=${worksrcpath}/bin:$env(PATH) 95 96 build.args GCC=${configure.cc} \ 97 GPP=${configure.cxx} \ 98 CPPreal=${configure.cpp} 86 99 87 100 destroot.keepdirs ${destroot}${prefix}/share/arb/lib/pts 88 101 89 102 destroot { 90 103 eval xinstall -m 0755 [glob ${worksrcpath}/bin/*] ${destroot}${prefix}/bin 91 file mkdir ${destroot}${prefix}/share/arb92 104 file mkdir ${destroot}${prefix}/share/arb/bin 93 105 file copy ${worksrcpath}/lib ${destroot}${prefix}/share/arb/lib 94 106 file copy ${worksrcpath}/GDEHELP ${destroot}${prefix}/share/arb/GDEHELP … … 97 109 file copy ${worksrcpath}/PERL_SCRIPTS ${destroot}${prefix}/share/arb/PERL_SCRIPTS 98 110 file copy ${worksrcpath}/SH ${destroot}${prefix}/share/arb/SH 99 111 file copy ${worksrcpath}/demo.arb ${destroot}${prefix}/share/arb 100 }101 102 post-destroot {103 112 system "chmod a+w ${destroot}${prefix}/share/arb/lib/arb_tcp.dat" 104 113 system "chmod a+w ${destroot}${prefix}/share/arb/lib/pts" 105 114 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" 115 ln -s ${prefix}/bin/arb_pt_server ${destroot}${prefix}/share/arb/bin/arb_pt_server 116 ln -s ${prefix}/bin/arb_name_server ${destroot}${prefix}/share/arb/bin/arb_name_server 117 system "rm -rf `find ${destroot}${prefix}/share/arb -type d -name .svn`" 108 118 } 109 110 post-activate {111 system "rm -rf `find ${prefix}/share/arb -type d -name .svn`"112 119 113 ui_msg " 120 universal_variant no 121 122 notes " 114 123 **************************************************************** 115 124 Before running ARB you must set ARBHOME and add ARB to your PATH 116 125 **************************************************************** 117 126 118 127 You have two options (A is easier, B is more difficult): 119 128 120 A) Open a new terminal window and type arb_macsetup to set up your environment automatically129 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 130 122 131 or 123 132 124 B) Follow the steps below:133 B) More difficult - follow the steps below: 125 134 126 1 a)135 1) 127 136 bash users add the following lines to your ~/.profile or to your ~/.bashrc 128 137 129 138 ARBHOME=${prefix}/share/arb;export ARBHOME … … 132 141 133 142 enter the following command: 134 143 . ~/.profile 135 1b)144 2) 136 145 tcsh users add the following lines to your ~/.cshrc 137 146 setenv ARBHOME ${prefix}/share/arb 138 147 setenv PATH ${prefix}/share/arb\:\$PATH 139 148 140 149 enter the following command: 141 150 source ~/.cshrc 142 2) 151 3) 152 create a text file in your home folder called .xmodmap that contains the text below: 153 154 clear Mod1 155 clear Mod2 156 keycode 63 = Mode_switch 157 keycode 66 = Meta_L 158 keycode 69 = Meta_R 159 add Mod1 = Meta_L Meta_R 160 add Mod2 = Mode_switch 161 162 C) 163 to set up ARB for another user on this computer log into their account and type ${prefix}/bin/arb_macsetup 164 165 D) 143 166 type arb to start ARB 144 167 145 168 A demo data base is located at ${prefix}/share/arb.demo.arb 146 169 147 170 Please cite: Wolfgang Ludwig, et al. (2004) ARB: a software environment for sequence data. Nucleic Acids Research. 32:1363-1371 148 171 " 149 }150 No newline at end of file -
files/arb_intro.fig.diff
diff -urN arb.orig/files/arb_intro.fig.diff arb/files/arb_intro.fig.diff
1 --- arb_intro.fig.orig 2011-02-04 01:01:34.000000000 -0300 2 +++ lib/pictures/arb_intro.fig 2010-10-24 18:34:25.000000000 -0300 3 @@ -1,4 +1,4 @@ 4 -#FIG 3.2 5 +#FIG 3.2 Produced by xfig version 3.2.5 6 Landscape 7 Center 8 Metric 9 @@ -8,18 +8,18 @@ 10 -2 11 1200 2 12 6 8010 5175 9315 5445 13 -4 0 -1 0 0 18 12 0.0000 4 135 495 8025 5340 Suffix\001 14 -4 0 -1 0 0 18 12 0.0000 4 180 495 8550 5415 $filter\001 15 -4 2 -1 0 0 18 12 0.0000 4 180 720 9300 5415 $to:filter\001 16 +4 0 -1 0 0 18 12 0.0000 4 165 570 8025 5340 Suffix\001 17 +4 0 -1 0 0 18 12 0.0000 4 210 585 8550 5415 $filter\001 18 +4 2 -1 0 0 18 12 0.0000 4 210 870 9300 5415 $to:filter\001 19 -6 20 6 2655 2025 8235 2295 21 2 1 0 2 -1 -1 0 0 -1 0.000 0 0 -1 0 0 2 22 2700 2250 8190 2250 23 -4 1 -1 0 0 18 14 0.0000 4 210 5070 5400 2175 ARB - A Software Environment for Sequence Data\001 24 +4 1 -1 0 0 18 14 0.0000 4 240 5925 5400 2175 ARB - A Software Environment for Sequence Data\001 25 -6 26 6 1800 10890 9090 11250 27 -4 0 -1 0 0 18 10 0.0000 4 135 7095 1800 11025 Y:Wolfgang Ludwig, Oliver Strunk, Ralf Westram, Lothar Richter, Harald Meier, Yadhukumar et al.\001 28 -4 0 -1 0 0 18 10 0.0000 4 135 7260 1800 11205 Y:ARB: a software environment for sequence data. Nucleic Acids Research. 2004. 32(4):1363-1371.\001 29 +4 0 -1 0 0 18 10 0.0000 4 150 7335 1800 11025 Y:Wolfgang Ludwig, Oliver Strunk, Ralf Westram, Lothar Richter, Harald Meier, Yadhukumar et al.\001 30 +4 0 -1 0 0 18 10 0.0000 4 150 7395 1800 11205 Y:ARB: a software environment for sequence data. Nucleic Acids Research. 2004. 32(4):1363-1371.\001 31 -6 32 2 1 0 1 0 7 100 0 -1 0.000 0 0 -1 0 0 1 33 1170 540 34 @@ -29,28 +29,29 @@ 35 1350 4950 1350 4230 9090 4230 36 2 1 0 1 0 7 100 0 -1 0.000 0 0 -1 0 0 1 37 9630 11340 38 -4 0 -1 0 0 18 12 0.0000 4 180 570 1425 1050 $close\001 39 -4 2 -1 0 0 18 12 0.0000 4 195 465 9450 1050 $help\001 40 -4 2 -1 0 0 18 12 0.0000 4 180 945 9375 9990 $to:XY:box\001 41 -4 0 -1 0 0 18 12 0.0000 4 195 840 9150 10440 $Y:expert\001 42 -4 0 -1 0 0 18 12 0.0000 4 180 420 1500 5865 $box\001 43 -4 0 -1 0 0 18 12 0.0000 4 195 2970 1500 5340 Existing Files (f) and Directories (D)\001 44 -4 0 -1 0 0 18 12 0.0000 4 180 540 1620 10395 $Y:old\001 45 -4 0 -1 0 0 18 12 0.0000 4 180 540 4725 10388 $Y:del\001 46 -4 0 -1 0 0 18 12 0.0000 4 195 1290 1620 4725 $new_complex\001 47 -4 0 -1 0 0 18 12 0.0000 4 195 660 4455 4725 $merge\001 48 -4 1 -1 0 0 18 12 0.0000 4 150 750 7140 2865 Authors:\001 49 -4 1 -1 0 0 18 12 0.0000 4 195 465 5265 945 $logo\001 50 -4 1 -1 0 0 18 12 0.0000 4 195 2055 2745 3870 http://www.arb-home.de/\001 51 -4 1 -1 0 0 18 12 0.0000 4 195 915 2745 2970 $copyright\001 52 -4 1 -1 0 0 18 12 0.0000 4 195 2370 2745 3150 Department of Microbiology\001 53 -4 1 -1 0 0 18 10 0.0000 4 135 2265 2745 3375 Technical University of Munich\001 54 -4 1 -1 0 0 18 10 0.0000 4 135 675 2745 3555 Germany\001 55 -4 1 -1 0 0 18 11 0.0000 4 150 2070 7140 3345 Harald Meier, Yadhukumar\001 56 -4 1 -1 0 0 18 12 0.0000 4 195 3915 7140 3135 Ralf Westram, Oliver Strunk, Wolfgang Ludwig\001 57 -4 1 -1 0 0 18 10 0.0000 4 105 2070 7140 3960 Lead tester: F. O. Gloeckner\001 58 -4 1 -1 0 0 18 10 0.0000 4 135 3615 7140 3780 L. Richter, T.Ginhart, S.Gerbers, J. Huber, R.Jost,\001 59 -4 1 -1 0 0 18 10 0.0000 4 135 3285 7140 3555 K. Bader, E. Pruesse, C. Hodges, J. Boehnel,\001 60 -4 1 -1 0 0 18 12 0.0000 4 180 750 5265 2610 $version\001 61 -4 0 -1 0 0 18 12 0.0000 4 195 1890 7350 10365 Y:Enable Expert Mode\001 62 -4 0 -1 0 0 18 10 0.0000 4 135 2130 1440 10800 Y:If you use ARB, please cite\001 63 +4 0 -1 0 0 18 12 0.0000 4 210 675 1425 1050 $close\001 64 +4 2 -1 0 0 18 12 0.0000 4 225 570 9450 1050 $help\001 65 +4 2 -1 0 0 18 12 0.0000 4 210 1140 9375 9990 $to:XY:box\001 66 +4 0 -1 0 0 18 12 0.0000 4 225 990 9150 10440 $Y:expert\001 67 +4 0 -1 0 0 18 12 0.0000 4 210 495 1500 5865 $box\001 68 +4 0 -1 0 0 18 12 0.0000 4 210 3690 1500 5340 Existing Files (f) and Directories (D)\001 69 +4 0 -1 0 0 18 12 0.0000 4 210 675 1620 10395 $Y:old\001 70 +4 0 -1 0 0 18 12 0.0000 4 210 660 4725 10388 $Y:del\001 71 +4 0 -1 0 0 18 12 0.0000 4 225 1500 1620 4725 $new_complex\001 72 +4 0 -1 0 0 18 12 0.0000 4 225 765 4455 4725 $merge\001 73 +4 1 -1 0 0 18 12 0.0000 4 165 915 7140 2865 Authors:\001 74 +4 1 -1 0 0 18 12 0.0000 4 225 585 5265 945 $logo\001 75 +4 1 -1 0 0 18 12 0.0000 4 210 2475 2745 3870 http://www.arb-home.de/\001 76 +4 1 -1 0 0 18 12 0.0000 4 210 2910 2745 3150 Department of Microbiology\001 77 +4 1 -1 0 0 18 10 0.0000 4 150 2295 2745 3375 Technical University of Munich\001 78 +4 1 -1 0 0 18 10 0.0000 4 150 675 2745 3555 Germany\001 79 +4 1 -1 0 0 18 11 0.0000 4 165 2340 7140 3345 Harald Meier, Yadhukumar\001 80 +4 1 -1 0 0 18 12 0.0000 4 210 4800 7140 3135 Ralf Westram, Oliver Strunk, Wolfgang Ludwig\001 81 +4 1 -1 0 0 18 10 0.0000 4 150 3660 7140 3780 L. Richter, T.Ginhart, S.Gerbers, J. Huber, R.Jost,\001 82 +4 1 -1 0 0 18 10 0.0000 4 150 3285 7140 3555 K. Bader, E. Pruesse, C. Hodges, J. Boehnel,\001 83 +4 1 -1 0 0 18 12 0.0000 4 210 900 5265 2610 $version\001 84 +4 0 -1 0 0 18 12 0.0000 4 210 2295 7350 10365 Y:Enable Expert Mode\001 85 +4 0 -1 0 0 18 10 0.0000 4 150 2190 1440 10800 Y:If you use ARB, please cite\001 86 +4 1 -1 0 0 18 10 0.0000 4 120 2085 7110 3960 Lead tester: F. O. Gloeckner\001 87 +4 1 -1 0 0 18 12 0.0000 4 225 1125 2745 2970 $copyright\001 88 +4 1 -1 0 0 18 12 0.0000 4 210 3600 7155 4185 Mac OS X port: Matthew T. Cottrell\001 -
files/arb_macsetup
diff -urN arb.orig/files/arb_macsetup arb/files/arb_macsetup
29 29 # 30 30 31 31 # This is the arb_macsetup script 32 # Use it to set the ARBHOME and PATH variables a fter installing ARB using MacPorts.32 # Use it to set the ARBHOME and PATH variables and to install a .xmodmap file after installing ARB using MacPorts. 33 33 34 34 # Derived from the MacPorts postflight script 35 35 # Provided by: Matthew Cottrell 36 # October 1, 200936 # January 31, 2011 37 37 38 38 # Abstraction variables: 39 # The MacPorts PREFIX is typicaly /opt/local 40 PREFIX=/opt/local 39 PREFIX=@@PREFIX@@ 41 40 BINPATH=${PREFIX}/bin 42 41 SBINPATH=${PREFIX}/sbin 43 42 MANPAGES=${PREFIX}/share/man 44 43 TIMESTAMP=$(date +"%Y-%m-%d_at_%H:%M:%S") 45 44 BACKUP_SUFFIX=macports-saved_${TIMESTAMP} 45 XMODMAP_FILE=xmodmap 46 46 OUR_STRING="ARB Installer addition on ${TIMESTAMP}" 47 47 48 48 # Determine the user's shell, in order to choose an appropriate configuration file we'll be tweaking. … … 105 105 echo "An appropriate ${1} variable has been added to your shell environment by the ${3} installer." 106 106 } 107 107 108 function write_xmodmap_setting () { 109 if [ -f ${HOME}/.${XMODMAP_FILE} ] && ! grep "${OUR_STRING}" ${HOME}/.${XMODMAP_FILE} > /dev/null; then 110 echo "Backing up your ${HOME}/.${XMODMAP_FILE} keyboard confguration file as ${HOME}/.${XMODMAP_FILE}.${BACKUP_SUFFIX} before adapting it for ARB." 111 /bin/cp -fp ${HOME}/.${XMODMAP_FILE} "${HOME}/.${XMODMAP_FILE}.${BACKUP_SUFFIX}" || { 112 echo "An attempt to backup your original configuration file failed! Please set your ARB compatible environment manually." 113 114 exit 1 115 } 116 echo -e "\n##\n# Your previous ${HOME}/.${XMODMAP_FILE} file was backed up as ${HOME}/.${XMODMAP_FILE}.${BACKUP_SUFFIX}\n##" >> ${HOME}/.${XMODMAP_FILE} 117 fi 118 echo -e "\n# ${OUR_STRING}: adding an appropriate ${1} variable for use with ${3}." >> ${HOME}/.${XMODMAP_FILE} 119 echo "${1}\n ${2}\n ${3}\n ${4}\n ${5}\n ${6}\n ${7}\n" >> ${HOME}/.${XMODMAP_FILE} 120 echo -e "# Finished adapting your xmodmap file for use with ARB.\n" >> ${HOME}/.${XMODMAP_FILE} 121 chown ${USER} ${HOME}/.${XMODMAP_FILE} || echo "Warning: unable to adapt permissions on your ${HOME}/.${XMODMAP_FILE} shell configuration file!" 122 echo "An appropriate xmodmap file has been added to your home folder by the ${8} installer." 123 } 124 108 125 # Confirm that MacPorts has been configured for this user: 109 126 if ${SHELL} ${LOGIN_FLAG} -c "/usr/bin/printenv PATH" | grep ${PREFIX} > /dev/null; then 110 127 echo "Your shell already has the right PATH environment variable for use with MacPorts!" … … 149 166 write_setting ARBHOME "${PREFIX}/share/arb" ARB 150 167 fi 151 168 169 #write the .xmodmap file for easy keyboard shortcutsin the ARB sequence editor 170 write_xmodmap_setting "clear Mod1" "clear Mod2" "keycode 63 = Mode_switch" "keycode 66 = Meta_L" "keycode 69 = Meta_R" "add Mod1 = Meta_L Meta_R" "add Mod2 = Mode_switch" ARB 171 152 172 # arb_setenv script is done with its job - exit gracefully! 153 173 echo "" 154 174 echo "You have succesfully installed ARB" -
files/patch-ARB-config.makefile.diff
diff -urN arb.orig/files/patch-ARB-config.makefile.diff arb/files/patch-ARB-config.makefile.diff
5 5 PTPAN := 0 6 6 7 7 -ARB_64 := 0# compile 64bit ARB version 8 +ARB_64 := 1# compile 64bit ARB version8 +ARB_64 := @@64BIT@@# compile 64bit ARB version 9 9 #BUILDHOST_64 := 1# whether build host is 64bit (value defaults to ARB_64). Needed for cross-compile 10 10 11 11 # -------------------------------------------------------------------------------- -
files/patch-ARB-glpng.diff
diff -urN arb.orig/files/patch-ARB-glpng.diff arb/files/patch-ARB-glpng.diff
1 --- GL/glpng/glpng.c 2008-07-22 05:11:32.000000000 -0400 2 +++ GL/glpng/glpng.c 2011-02-12 22:24:54.000000000 -0500 3 @@ -35,7 +35,7 @@ 4 #include <GL/glpng.h> 5 #include <stdlib.h> 6 #include <math.h> 7 -#include <png.h> 8 +#include <libpng14/png.h> 9 10 /* Used to decide if GL/gl.h supports the paletted extension */ 11 #ifdef GL_COLOR_INDEX1_EXT 12 @@ -270,15 +270,15 @@ 13 png_bytep *row_p; 14 double fileGamma; 15 16 - png_uint_32 width, height; 17 + png_size_t width, height; 18 int depth, color; 19 20 - png_uint_32 i; 21 + png_size_t i; 22 23 if (pinfo == NULL) return 0; 24 25 fread(header, 1, 8, fp); 26 - if (!png_check_sig(header, 8)) return 0; 27 + if (!png_sig_cmp(header, 0, 8)) return 0; 28 29 png = png_create_read_struct(PNG_LIBPNG_VER_STRING, NULL, NULL, NULL); 30 info = png_create_info_struct(png); 31 @@ -377,13 +377,13 @@ 32 png_bytep *row_p; 33 double fileGamma; 34 35 - png_uint_32 width, height, rw, rh; 36 + png_size_t width, height, rw, rh; 37 int depth, color; 38 39 - png_uint_32 i; 40 + png_size_t i; 41 42 fread(header, 1, 8, fp); 43 - if (!png_check_sig(header, 8)) return 0; 44 + if (!png_sig_cmp(header, 0, 8)) return 0; 45 46 png = png_create_read_struct(PNG_LIBPNG_VER_STRING, NULL, NULL, NULL); 47 info = png_create_info_struct(png); -
files/patch-ARB-makefile.diff
diff -urN arb.orig/files/patch-ARB-makefile.diff arb/files/patch-ARB-makefile.diff
1 --- Makefile (revision 6192) 2 +++ Makefile (working copy) 3 @@ -202,11 +202,11 @@ 1 --- Makefile.orig 2010-09-05 12:00:58.000000000 -0400 2 +++ Makefile 2011-02-12 20:18:20.000000000 -0500 3 @@ -31,11 +31,12 @@ 4 # configurable in config.makefile 5 # 6 # ----------------------------------------------------- 7 + 8 # Read configuration 9 include config.makefile 10 11 ifeq ($(LD_LIBRARY_PATH),'') 12 -LD_LIBRARY_PATH:=${ARBHOME}/lib 13 + LD_LIBRARY_PATH:=${ARBHOME}/lib 14 endif 15 16 FORCEMASK = umask 002 17 @@ -46,8 +47,6 @@ 18 GPP:=g++ 19 CPPreal:=cpp 20 21 - 22 - 23 # ---------------------- compiler version detection 24 25 # supported compiler versions: 26 @@ -203,11 +202,11 @@ 4 27 XINCLUDES:=-I$(XHOME)/include 5 28 6 29 ifdef DARWIN … … 10 33 11 34 ifdef DARWIN 12 35 - XLIBS := -L/usr/OpenMotif/lib -lXm -L$(XHOME)/lib -lpng -lXt -lX11 -lXext -lXp -lc -lXmu -lXi 13 + XLIBS := -L$(PREFIX)/lib -lXm - L$(XHOME)/lib -lpng -lXt -lX11 -lXext -lXp -lc-lXmu -lXi36 + XLIBS := -L$(PREFIX)/lib -lXm -lpng -lz -lXt -lX11 -lXext -lXp -lXmu -lXi 14 37 XLIBS += -lGLU -lGL -Wl,-dylib_file,$(OSX_FW_OPENGL)/libGL.dylib:$(OSX_FW_OPENGL)/libGL.dylib 15 38 else 16 39 XLIBS:=-L$(XHOME)/$(CROSS_LIB) -lXm -lXpm -lXp -lXt -lXext -lX11 17 @@ -22 5,14 +225,9 @@40 @@ -226,14 +225,9 @@ 18 41 19 42 GL_PNGLIBS := -L$(ARBHOME)/GL/glpng -lglpng_arb -lpng 20 43 … … 32 55 GL_LIBS := $(GL_LIB) $(GLEWLIB) $(GLUTLIB) $(GL_PNGLIBS) 33 56 34 57 #XLIBS += $(GL_LIB) 35 @@ -24 7,11 +242,7 @@58 @@ -248,11 +242,7 @@ 36 59 37 60 #---------------------- tiff lib: 38 61 … … 45 68 46 69 #---------------------- basic libs: 47 70 48 @@ -31 8,7 +309,7 @@71 @@ -319,7 +309,7 @@ 49 72 50 73 CTAGS := etags 51 74 ifdef DARWIN … … 53 76 + XMKMF := $(PREFIX)/bin/xmkmf 54 77 else 55 78 XMKMF := /usr/bin/X11/xmkmf 56 endif 57 No newline at end of file 79 endif