the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: apbs
Version: 1.0.0
Revision: 2
Source: mirror:sourceforge:%n/%n-%v-source.tar.gz
#SourceRename: %n-%v.tar.gz
Source-MD5: dc9c383ddaf3cd022f4a09f2cb9f1795
#SourceDirectory: %n-%v
Depends: readline-shlibs (>= 4.3-1028), gnuplot (>= 4.0.0-1002), pdb2pqr, gcc43-shlibs
BuildDepends: gcc43
Conflicts: apbs-mpi, maloc, maloc-mpi-lammpi, maloc-mpi-openmpi
Replaces: apbs-mpi, maloc, maloc-mpi-lammpi, maloc-mpi-openmpi
ConfigureParams: py_path=/usr/bin/python
SetCFLAGS: -O3
Description: Adaptive Poisson-Boltzmann Solver
CompileScript: <<
#!/bin/zsh -efv
PATH=/usr/bin:$PATH
BLAS_DIR='/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A'
if [[ $(sw_vers -productVersion) < 10.5 ]]; then
F77=gfortran ./configure %c --with-blas="-L${BLAS_DIR} -lblas -Wl,-framework -Wl,vecLib -Wl,-undefined -Wl,dynamic_lookup" FFLAGS="-O3"
else
py_path=/usr/bin/python F77=gfortran ./configure %c \
--enable-python \
--with-blas="-L${BLAS_DIR} -lblas -Wl,-framework -Wl,vecLib -Wl,-undefined -Wl,dynamic_lookup" FFLAGS="-O3"
fi
perl -pi -e 's|cp -Rf tools \${prefix}||g' Makefile
perl -pi -e 's|cp -Rf examples \${prefix}||g' Makefile
perl -pi -e 's|cp -Rf doc \${prefix}||g' Makefile
perl -pi -e 's|\$\(DESTDIR\)\$\(libdir\)|share/apbs/lib|g' contrib/blas/Makefile
make
<<
InstallScript: <<
#!/bin/zsh -efv
make install DESTDIR=%d
rm -Rf **/CVS # fink validate complains if this junk is left behind.
# rm -Rf **/.svn # fink validate complains if this junk is left behind.
mkdir -p %i/share/%n
mkdir -p %i/lib
perl -pi -e 's|/usr/bin/env python|/usr/bin/python|g' examples/**/*.py
perl -pi -e 's|/usr/bin/env python|/usr/bin/python|g' tools/**/*.py
mv examples %i/share/%n
mv tools %i/share/%n
mv doc %i/share/%n
rm -Rf %i/src
rm -f **/*.o
<<
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/apbs
lib/libapbs.a
lib/libapbsmainroutines.a
lib/libapbs.la
lib/libapbsmainroutines.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