the Fink project is an effort to port
popular Unix programs to Mac OS X
Info2: <<
Package: apbs-mpi-%type_pkg[handler]
Version: 1.1.0
Revision: 8
Type: handler (lammpi openmpi)
#Conflicts: apbs, apbs-mpi-lammpi, apbs-mpi-openmpi
#Replaces: apbs, apbs-mpi-lammpi, apbs-mpi-openmpi
BuildConflicts: g77, g95, fort77
Source: http://switch.dl.sourceforge.net/sourceforge/apbs/apbs-%v-source.tar.gz
Source-MD5: ca31ba09714e4fc9acce91e7961569cd
SourceDirectory: apbs-%v-source
Depends: (%type_pkg[handler] = lammpi) lammpi (>= 7.1.2-1000), (%type_pkg[handler] = openmpi) openmpi (>= 1.2.5-1000), readline5-shlibs, gnuplot (>=4.2.0) | gnuplot-nox | gnuplot-nogtk, gcc44-shlibs
BuildDepends: gcc44, (%type_pkg[handler] = lammpi) lammpi-dev (>= 7.1.2-1000), (%type_pkg[handler] = openmpi) openmpi-dev (>= 1.2.5-1000), fink (>= 0.24.12)
Description: Adaptive Poisson-Boltzmann Solver
PatchFile: apbs-mpi.patch
PatchFile-MD5: 3b0dad44146b0547f66b07ce4b31d899
PatchScript: <<
sed 's|@INSTALL_DIR@|%d|g' < %{PatchFile} | sed 's|FINKMPIDIR|%type_pkg[handler]|g' | patch -p1
<<
UseMaxBuildJobs: false
SetCC: %p/bin/mpicc
SetCXX: %p/bin/mpic++
SetCFLAGS: -O3
ConfigureParams: --build=%m-apple-darwin`uname -r|cut -f1 -d.` --host=%m-apple-darwin`uname -r|cut -f1 -d.`
CompileScript: <<
#!/bin/bash -efv
PATH=%p/bin:%p/sbin:${PATH} ; export PATH
source %p/bin/init.sh
#
BLAS_DIR='/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A'
if [[ %type_pkg[handler] == "openmpi" ]]; then
F77=%p/bin/mpif77 ./configure %c --disable-blas \
--with-blas="-L${BLAS_DIR} -lblas -Wl,-framework -Wl,vecLib -Wl,-undefined -Wl,dynamic_lookup" FFLAGS="-O3" -with-openmpi=%p
else
F77=%p/bin/mpif77 ./configure %c --disable-blas \
--with-blas="-L${BLAS_DIR} -lblas -Wl,-framework -Wl,vecLib -Wl,-undefined -Wl,dynamic_lookup" FFLAGS="-O3"
fi
perl -pi -e 's|\$\(DESTDIR\)\$\(libdir\)|share/apbs/lib|g' contrib/blas/Makefile
make
<<
InstallScript: <<
#!/bin/zsh -efv
rm -Rf **/CVS # fink validate complains if this junk is left behind.
rm -f **/*.o
#
# make install DESTDIR=%d
# install it ourselves:
mkdir -p %i/bin
/bin/cp bin/apbs %i/bin/%n
#
mkdir -p %i/share/%n
/bin/cp -r examples %i/share/%n/.
/bin/cp -r tools %i/share/%n/.
/bin/cp -r doc %i/share/%n/.
#
mkdir -p %i/share/doc
ln -s %p/share/%n/doc %i/share/doc/%n
#
mkdir -p %i/include/%n
/bin/cp **/*.h %i/include/%n/.
#
mkdir -p %i/lib/%n
/bin/rm -rf contrib
/bin/cp **/.*/*.a %i/lib/%n/.
/bin/cp **/*.la %i/lib/%n/.
ranlib %i/lib/%n/*.a
<<
PostInstScript: <<
# per request of software's author
echo ""
echo "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
echo "Please issue \"open http://agave.wustl.edu/apbs/download/\","
echo "to register your use of this software to help the author"
echo "maintain funding for apbs. apbs is released under the GPL and this is"
echo "not required, but would be very helpful."
echo "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
echo ""
sleep 5
<<
################################################################################
SplitOff: <<
Package: %N-dev
BuildDependsOnly: true
Description: apbs headers, static libraries and libtool files
Files:<<
include/%N
lib/%N/*.a
lib/%N/*.la
<<
<<
################################################################################
Homepage: http://apbs.sourceforge.net/
RunTimeVars: <<
APBS_PSIZE:%p/share/%n/tools/manip
<<
DescDetail: <<
APBS is a software package for the numerical solution of the
Poisson-Boltzmann equation, a popular continuum model for describing
electrostatic interactions between molecular solutes over a wide range
of length scales. The Fink pymol package is pre-configured to permit
apbs to be used as a plug-in.
.
The software is released under the GPL, but the author requests that you
register your use with him to aid him in obtaining funding to continue to
develop the code. Most electrostatics software is payware, so please help
him continue to support this free software. You can do so at this URL:
http://agave.wustl.edu/apbs/download/
<<
License: GPL
Maintainer: W. G. Scott
<<