Info2: <<

Package:  ifeffit
Version:  1.2.13
Revision: 6
Type: gcc (12)
Description: Analysis of XAFS data
BuildDepends: <<
  gcc%type_pkg[gcc]-compiler,
  aquaterm-dev,
  libncurses5,
  libpng16,
  readline8,
  x11-dev
<<
Depends: <<
	%N-shlibs (>= %v-%r),
	gcc%type_pkg[gcc]-shlibs,
	readline8-shlibs
<<
License: GPL

Source: https://github.com/newville/%n/archive/%v.tar.gz
Source-Checksum: SHA256(46d8ea1b02ea81794c2afee41dd9d3d05fe1178cbd358ef6b9ecf2a77076d909)
SourceRename: %n-%v.tar.gz

# Fixes for external libs, thanks to Debian ifeffit-2:1.2.11d-11:
#  * configuration_patches
#  * readline_6.3_patch
# Fixes for compiler strictness.
PatchFile: %n.patch
PatchFile-MD5: 9038b1dccc840acb90d0e75b70e9e9aa
PatchScript: <<
	%{default_script}
	mv readline readline_UNUSED
<<

SetCPPFLAGS: -MD
# Our libpgplot is static-only, not the expected libname, and in a
# buried subdir, so we have patched out the autodetection and here we
# also specify all the deplibs.
ConfigureParams: <<
   F77=gfortran-fsf-%type_raw[gcc] \
  --enable-dependency-tracking     \
  --with-pgplot                    \
  --with-pgplot-link="-L%p/lib/pgplot -lpgplot  -lcpgplot -lpng -lz \
                      -L/opt/X11/lib/ -lX11                         \
                      -Wl,-F%p/Library/Frameworks,-framework,AquaTerm,-framework,Foundation"
<<

CompileScript: <<
	%{default_script}
	fink-package-precedence --depfile-ext='\.d' --prohibit-bdep=%n-dev .
<<

InstallScript: <<
  %{default_script}
  mv %i/share/ifeffit/libifeffit.so %i/lib/libifeffit.dylib
  install_name_tool -id %p/lib/libifeffit.dylib %i/lib/libifeffit.dylib
<<

DocFiles: <<
  AUTHORS
  ChangeLog
  COPYING
  INSTALL
  KNOWN_BUGS
  NEWS
  README
  README.MACOSX
  README.PGPLOT
  THANKS
<<

SplitOff: <<
  Package:  %N-shlibs
  Depends:  <<
    gcc%type_pkg[gcc]-shlibs,
    aquaterm-shlibs,
    libncurses5-shlibs,
    libpng16-shlibs,
    pgplot,
    x11-shlibs
  <<
  Files:    lib/libifeffit.dylib
  Shlibs:   %p/lib/libifeffit.dylib   0.0.0 %n (>= 1.2.13-1)
  DocFiles: AUTHORS COPYING README
<<

SplitOff2: <<
  Package: %N-dev
  Replaces: %N (<< 1.2.13-5)
  BuildDependsOnly: true
  Depends:  %N-shlibs (= %v-%r)
  Files:    include lib
  DocFiles: AUTHORS COPYING README
<<

DescDetail: <<
  As its name may suggest, IFEFFIT1 gives an interactive method for fitting
  XAFS data using calculations from FEFF, and is based on the fitting
  program FEFFIT of the UWXAFS3.0 Analysis Package.
<<

DescPort: <<
  IMPORTANT BUILD NOTES

  p5-ifeffit is configured using a Makefile.PL that is generated when
  ifeffit is built.  Since the paths to the compiler libraries contain
  compiler version information, if the compiler version changes then both
  ifeffit and p5-ifeffit need to be rebuilt so that the Makefile.PL in use
  contains the correct paths.

  If in doubt rebuild everything.
<<

Homepage: http://cars.uchicago.edu/ifeffit
Maintainer: Karl-Michael Schindler <karl-michael.schindler@web.de>

<<