Building Davinci for Mac
From DavinciWiki
|
Procedure for building davinci under MAC OS X 10.4.X
Subversion locations
- davinci
svn checkout file:///tes/svn/dev/davinci/trunk/ davinci
- iomedley
svn checkout file:///tes/svn/dev/iomedley/trunk davinci/iomedley
- readline
svn checkout file:///tes/svn/dev/readline/trunk davinci/readline
File Locations and Directory Structure
Compile Directory
- /u/cedwards/davinci_mac_package/compile/cfitsio
./configure --prefix=/usr/local/davinci make sudo make install
- /u/cedwards/davinci_mac_package/compile/openmotif-2.3.0
./configure --enable-static=no --prefix=/usr/local/davinci make sudo make install
- /u/cedwards/davinci_mac_package/compile/hdf-1.6.5
./configure --enable-hdf5v1_4 --enable-static=no --prefix=/usr/local/davinci make sudo make install sudo rm -rf /usr/local/davinci/bin /usr/local/davinci/man /usr/local/davinci/share /usr/local/davinci/doc
- /u/cedwards/davinci_mac_package/compile/davinci (svn newest version no changes)
./configure --prefix=/usr/local/davinci \ --with-hdf5=/usr/local/davinci --with-motif=/usr/local/davinci --with-cfitsio=/usr/local/davinci \ --without-library --without-examples --enable-aqua make sudo make install sudo rm -rf /usr/local/davinci/man /usr/local/davinci/info add a --without-x to make the non-x11 dependant version puts the apporpirate files/directories in the /usr/local/davinci directory (including non-static libraries and includes) make sure to alias the thm.0.0.0 to thm.so.0.0.0 or it will break
the --enable-aqua command can be overwritten with the DV_AQUA=1 environment variable for use of X11 environment
Install Directory
- /u/cedwards/davinci_mac_package/install/davinci.app
- A copy of the current binary of davinci can be used and components should be updated as necessary
- /usr/local/davinci
Making Packages
Static Packages
- /u/cedwards/davinci_mac_package/
- AquaTerm.pkg - used to plot without X11
- This has one small change to the postflight operation which links a shared library to one version earlier because that is the only version gnuplot.pkg will accept.
- gnuplot.pkg - plotting package for mac
- AquaTerm.pkg - used to plot without X11
Changing (Dynamic) Packages
All of these directories are associated with individual PackageMaker projects and require the specified paths to generate the packages.
- /u/cedwards/davinci_mac_package/
- library.pkg - davinci library dvrc files (repository in /themis/lib/dav_lib/library/*)
Directory: /u/cedwards/davinci_mac_package/library Simply update the files in the sub-directory (davinci_library) and open the packagemaker file (library.pmproj) and re-build the package. This creates the library.pkg file which includes preflight operations.
- dvrc-inputrc-components.pkg - .dvrc and .inputrc files required to make the standalone version work
Directory: /u/cedwards/davinci_mac_package/dvrc-inputrc_components/
Simply update the files in this directory (.dvrc and .inputrc) and open the packagemaker file (dvrc-inputrc_components.pmproj) and re-build the package. This creates the dvrc-inputrc_components.pkg file which includes postflight operations
- davinci_app.pkg - compiled davinci app which has a bunch of stuff done to it to make it double-clickable
Directory: /u/cedwards/davinci_mac_package/davinci_app/
Simply update the files in the sub-directory (davinci/davinci.app/) from the newly compiled version (install/davinci.app/) and open the packagemaker file (davinci_app.pmproj) and re-build the package. This creates the davinci_app.pkg file which includes postflight operations
Distribution Package
- /u/cedwards/davinci_mac_package/
- Davinci_for_Mac.pkg - combined installer which installs all of the previous packages by the user's specifications
Simply open the open the packagemaker file (Davinci_for_Mac.pmproj) and re-build the package. This creates the Davinci_for_Mac.pkg file which includes all of the previously mentioned packages
Disk Image
- Make a new directory anywhere following this naming scheme (davinci_beta_macosx-1.xx)
- Open the DiskUtility Application located in /Applications/Utilities
- The File->New->Disk Image from Folder
- Select the folder you created in the step above and click Image
- Leave the title the same as the folder you created and make sure Image Format = compressed
- Click Ok
- Move the new copy to the ftp server and update the wiki (Download Davinci) page