the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: mbsystem
Version: 5.3.1917
Revision: 1
Distribution: 10.5, 10.6
# Warning: have to go with a beta to get it working with latest GMT
Source: ftp://ftp.ldeo.columbia.edu/pub/MB-System/mbsystem-%v.tar.gz
Source-MD5: 137715321ed2a1bac8a0d850fd6b462e
Source2: ftp://ftp.ldeo.columbia.edu/pub/MB-System/annual.gz
Source2-MD5: d7b2f67c411c80b9e0018cfa149a64ef
BuildDepends: gmt-dev (>=4.5.0-1), openmotif4, netcdf, x11-dev, proj, fftw3
BuildConflicts: lesstif, openmotif3
Depends: gmt (>=4.5.0-1) , openmotif4-shlibs, netcdf-shlibs, x11, gv, proj, proj-shlibs
PatchScript: <<
#!/bin/bash -v
# NOTE: do not set -e for bash in the line above. That will break the grep
perl -pi.bak -e 's|\@FINKPREFIX\@|%p|g' install_makefiles
cpp -dM /dev/null | grep __LITTLE_ENDIAN__
if [ $? == 0 ] ; then
echo Found an Little Endian machine. Turning on byteswapping
perl -pi -e 's|\$BYTESWAPPED = \"NO\"\;|\$BYTESWAPPED = \"YES\"\;|g' install_makefiles
else
echo Leaving byteswapping set to off
fi
perl -pi -e 's|-lGLU -lGL|-lGLU -lGL -Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib|g' install_makefiles
# In case we need to disable opengl in the future
#perl -pi -e 's|cd mbview\; make all|\#cd mbview\; make all|g' src/Makefile.template
#
# Handle GMT 4.5 API change. Remove these when mbsystem catches to to GMT
#
# Default to BILINEAR interpolation
perl -pi.bak -e 's|GMT_grd_setregion \(\&header, xmin, xmax, ymin, ymax\)\;|GMT_grd_setregion \(\&header, xmin, xmax, ymin, ymax, BCR_BILINEAR\)\;|g' ./src/mbaux/mb_readgrd.c ./src/mbview/mbgrdviz_callbacks.c
perl -pi.bak -e 's|GMT_grd_setregion \(\&header, \&bounds\[0\], \&bounds\[1\], \&bounds\[2\], &bounds\[3\]\)\;|GMT_grd_setregion \(\&header, \&bounds\[0\], \&bounds\[1\], \&bounds\[2\], &bounds\[3\], BCR_BILINEAR\)\;|g' src/gmt/mbgrdtiff.c
# remove last arg - split was unused
perl -pi.bak -e 's|ps_line\(xl,yl,4,3,0,0\)\;|ps_line\(xl,yl,4,3,0\)\;|g' src/utilities/mbps.c
<<
GCC: 4.0
CompileScript: <<
chmod +x install_makefiles
./install_makefiles -P macosxfink
pwd
make all
<<
InstallScript: <<
#!/bin/bash -v
gunzip ../annual.gz
mkdir -p %i/share/mbsystem && mv ../annual %i/share/mbsystem/LevitusAnnual82.dat
#strip bin/*
mkdir -p %i/bin && mv bin/* %i/bin
mkdir -p %i/share && mv man %i/share
mkdir -p %i/share/mbsystem && mv share/Projections.dat %i/share/mbsystem
echo "Initial dev idea"
mkdir -p %i/lib
#mv lib/libproj.a lib/libmbproj.a
#mv lib/libgsf.a lib/libmbgsf.a
cp lib/*.a %i/lib
ranlib %i/lib/lib*.a
mkdir -p %i/include/mbsystem
cp include/*.h %i/include/mbsystem
# These are part of the custom proj build. Use proj package instead
rm %i/bin/{proj,geod}
rm %i/share/man/man1/{geod,proj}.1
rm %i/share/man/man3/pj_init.3
<<
SplitOff: <<
Package: %N-dev
BuildDependsOnly: True
Files: include lib
DocFiles: README GPL
<<
DocFiles: README GPL
Description: Processing and Displaying Swath Sonar Data
DescDetail: <<
MB-System is an open source software package for the processing and
display of bathymetry and backscatter imagery data derived from
multibeam, interferometry, and sidescan sonars. This software is
distributed freely (and for free) in the form of source code for Unix
platforms. The heart of the system is an input/output library called
MBIO which allows programs to work transparently with any of a number
of supported swath sonar data formats. This approach has allowed the
creation of "generic" utilities which can be applied in a uniform
manner to sonar data from a variety of sources. Most of the programs
are command-line tools, but the package does include graphical tools
for editing swath bathymetry, editing navigation, modeling bathymetry
calculation, and adjusting survey navigation.
Has its own internal proj library that will not be installed so that
it will not conflict with the standard proj.
<<
DescPort: <<
The betas are production code, just missing some documentation.
Enough bugs are fixed such that it makes sense to package the
beta as final. Support for Mac OSX 10.4 dropped on 20-Jul-2009.
<<
DescUsage: <<
Take a look at the MB-Cookbook:
http://www.mbari.org/data/mbsystem/mb-cookbook/index.html
Also, if you want the scripts to open the Apple Preview application,
set your MB_PS_VIEWER to open or you can use mbdefaults to set a viewer:
mbdefaults -D open
<<
License: GPL
Homepage: http://www.mbari.org/data/mbsystem/html/mbsystem_home.html
Maintainer: Kurt Schwehr